*** empty log message ***

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@59 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
ikits 2003-05-02 08:35:19 +00:00
parent b7b9daef89
commit cef4389a43
2 changed files with 40 additions and 32 deletions

20
build/vc6/Makefile Normal file
View File

@ -0,0 +1,20 @@
MSDEV := \msdev
RM := \rm -rf
default:
$(MSDEV) glew.dsw /make \
"glew_static - Win32 Release" \
"glew_shared - Win32 Release" \
"glewinfo - Win32 Release" \
"wglinfo - Win32 Release" /build
debug:
$(MSDEV) glew.dsw /make \
"glew_static - Win32 Debug" \
"glew_shared - Win32 Debug" \
"glewinfo - Win32 Debug" \
"wglinfo - Win32 Debug" /build
clean:
$(MSDEV) glew.dsw /make all /clean
$(RM) static shared *.plg *.ncb *.opt

View File

@ -8,39 +8,29 @@
** wglinfo is a small utility that displays all available visuals, ** wglinfo is a small utility that displays all available visuals,
** aka. pixelformats, in an OpenGL system along with renderer version ** aka. pixelformats, in an OpenGL system along with renderer version
** information. It shows a table of all the visuals that support OpenGL ** information. It shows a table of all the visuals that support OpenGL
** and their capabilities. The format of the table is similar to glxinfo ** along with their capabilities. The format of the table is similar to
** on Unix systems: ** that of glxinfo on Unix systems:
** **
** visual ~= pixel format descriptor ** visual ~= pixel format descriptor
** id = visual id (integer from 1 - max visuals) ** id = visual id (integer from 1 - max visuals)
** dep = cColorBits - color depth ** tp = type (wn: window, pb: pbuffer, wp: window & pbuffer, bm: bitmap)
** tp = dwFlags - visual type (wn: window, pb: pbuffer, bm: bitmap) ** ac = acceleration (ge: generic, fu: full, no: none)
** xsp = no analog - transparent pixel (currently always ".") ** fm = format (i: integer, f: float, c: color index)
** bfsz = cColorBits - framebuffer size ** db = double buffer (y = yes)
** lvl = bReserved - overlay (>0), underlay (<0), main plane (0) ** st = stereo (y = yes)
** rgci = iPixelType - rb = rgba mode, ci = color index mode ** sz = total # bits
** db = dwFlags & PFD_DOUBLEBUFFER - double buffer flag (y = yes) ** r = # bits of red
** stro = dwFlags & PFD_STEREO - stereo flag (y = yes) ** g = # bits of green
** gene = dwFlags & PFD_GENERIC - software generic (y = yes) or ICD ** b = # bits of blue
** geac = dwFlags & PFD_GENERIC_ACCELERATED - generic with hardware (MCD) ** a = # bits of alpha
** rsz = cRedBits - # bits of red ** axbf = # aux buffers
** gsz = cGreenBits - # bits of green ** dpth = # bits of depth
** bsz = cBlueBits - # bits of blue ** stcl = # bits of stencil
** asz = cAlphaBits - # bits of alpha
** axbf = cAuxBuffers - # of aux buffers
** dpth = cDepthBits - # bits of depth
** stcl = cStencilBits - # bits of stencil
** accum sz = cAccumBits - total # of bits in accumulation buffer
** accum r = cAccumRedBits - # bits of red in accumulation buffer
** accum g = cAccumGreenBits - # bits of green in accumulation buffer
** accum b = cAccumBlueBits - # bits of blue in accumulation buffer
** accum a = cAccumAlphaBits - # bits of alpha in accumulation buffer
** ms ns/b = no analog - multisample buffers (currently always ".")
*/ */
#include <stdio.h> #include <stdio.h>
#include <GL/glew.h> /* OpenGL header */ #include <GL/glew.h>
#include <GL/wglew.h> /* GLU header */ #include <GL/wglew.h>
int drawableonly = 0; int drawableonly = 0;
int showall = 0; int showall = 0;
@ -104,7 +94,7 @@ VisualInfoARB (HDC hDC, int verbose)
{ {
/* print table header */ /* print table header */
fprintf(file, " +-----+----------------+-----------------+----------+-----------------+\n"); fprintf(file, " +-----+----------------+-----------------+----------+-----------------+\n");
fprintf(file, " | | visual | color buff | ax dp st | accum buffs |\n"); fprintf(file, " | | visual | color | ax dp st | accum |\n");
fprintf(file, " | id | tp ac fm db st | sz r g b a | bf th cl | sz r g b a |\n"); fprintf(file, " | id | tp ac fm db st | sz r g b a | bf th cl | sz r g b a |\n");
fprintf(file, " +-----+----------------+-----------------+----------+-----------------+\n"); fprintf(file, " +-----+----------------+-----------------+----------+-----------------+\n");
@ -189,7 +179,7 @@ VisualInfoARB (HDC hDC, int verbose)
} }
/* print table footer */ /* print table footer */
fprintf(file, " +-----+----------------+-----------------+----------+-----------------+\n"); fprintf(file, " +-----+----------------+-----------------+----------+-----------------+\n");
fprintf(file, " | | visual | color buff | ax dp st | accum buffs |\n"); fprintf(file, " | | visual | color | ax dp st | accum |\n");
fprintf(file, " | id | tp ac fm db st | sz r g b a | bf th cl | sz r g b a |\n"); fprintf(file, " | id | tp ac fm db st | sz r g b a | bf th cl | sz r g b a |\n");
fprintf(file, " +-----+----------------+-----------------+----------+-----------------+\n"); fprintf(file, " +-----+----------------+-----------------+----------+-----------------+\n");
} }
@ -552,7 +542,6 @@ main (int argc, char** argv)
(char*)wglGetExtensionsStringEXT(hDC)); (char*)wglGetExtensionsStringEXT(hDC));
} }
/* enumerate all the formats */ /* enumerate all the formats */
#if 1
if (wglew.ARB_pixel_format) if (wglew.ARB_pixel_format)
{ {
int attrib[16], value[16], pf; int attrib[16], value[16], pf;
@ -566,7 +555,6 @@ main (int argc, char** argv)
VisualInfoARB(hDC, verbose); VisualInfoARB(hDC, verbose);
} }
else else
#endif
{ {
VisualInfo(hDC, verbose); VisualInfo(hDC, verbose);
} }