mirror of
https://github.com/nigels-com/glew.git
synced 2025-04-18 22:52:55 +00:00
added multisample flag
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@244 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
5086e6d974
commit
f7a7fead9c
@ -83,7 +83,8 @@ VisualInfoARB (HDC hDC, int verbose)
|
|||||||
attrib[21] = WGL_NUMBER_OVERLAYS_ARB;
|
attrib[21] = WGL_NUMBER_OVERLAYS_ARB;
|
||||||
attrib[22] = WGL_NUMBER_UNDERLAYS_ARB;
|
attrib[22] = WGL_NUMBER_UNDERLAYS_ARB;
|
||||||
attrib[23] = WGL_SWAP_LAYER_BUFFERS_ARB;
|
attrib[23] = WGL_SWAP_LAYER_BUFFERS_ARB;
|
||||||
n_attrib = 24;
|
attrib[24] = WGL_SAMPLES_ARB;
|
||||||
|
n_attrib = 25;
|
||||||
if (WGLEW_ARB_pbuffer)
|
if (WGLEW_ARB_pbuffer)
|
||||||
{
|
{
|
||||||
attrib[n_attrib] = WGL_DRAW_TO_PBUFFER_ARB;
|
attrib[n_attrib] = WGL_DRAW_TO_PBUFFER_ARB;
|
||||||
@ -100,11 +101,10 @@ VisualInfoARB (HDC hDC, int verbose)
|
|||||||
if (!verbose)
|
if (!verbose)
|
||||||
{
|
{
|
||||||
/* print table header */
|
/* print table header */
|
||||||
fprintf(file, " +-----+-------------------+-----------------+----------+-----------------+----------+\n");
|
fprintf(file, " +-----+----------------------+-----------------+----------+-----------------+----------+\n");
|
||||||
fprintf(file, " | | visual | color | ax dp st | accum | layer |\n");
|
fprintf(file, " | | visual | color | ax dp st | accum | layer |\n");
|
||||||
fprintf(file, " | id | tp ac fm db sw st | sz r g b a | bf th cl | sz r g b a | ov un sw |\n");
|
fprintf(file, " | id | tp ac fm db sw st ms | sz r g b a | bf th cl | sz r g b a | ov un sw |\n");
|
||||||
fprintf(file, " +-----+-------------------+-----------------+----------+-----------------+----------+\n");
|
fprintf(file, " +-----+----------------------+-----------------+----------+-----------------+----------+\n");
|
||||||
|
|
||||||
/* loop through all the pixel formats */
|
/* loop through all the pixel formats */
|
||||||
for(i = 1; i <= maxpf; i++)
|
for(i = 1; i <= maxpf; i++)
|
||||||
{
|
{
|
||||||
@ -141,6 +141,11 @@ VisualInfoARB (HDC hDC, int verbose)
|
|||||||
else if (value[7] == WGL_TYPE_COLORINDEX_ARB) fprintf(file, " c ");
|
else if (value[7] == WGL_TYPE_COLORINDEX_ARB) fprintf(file, " c ");
|
||||||
/* double buffer */
|
/* double buffer */
|
||||||
fprintf(file, " %c ", value[5] ? 'y' : '.');
|
fprintf(file, " %c ", value[5] ? 'y' : '.');
|
||||||
|
/* multisample */
|
||||||
|
if (value[24] > 0)
|
||||||
|
fprintf(file, " %d ", value[24]);
|
||||||
|
else
|
||||||
|
fprintf(file, " . ", value[24]);
|
||||||
/* swap method */
|
/* swap method */
|
||||||
if (value[4] == WGL_SWAP_EXCHANGE_ARB) fprintf(file, " x ");
|
if (value[4] == WGL_SWAP_EXCHANGE_ARB) fprintf(file, " x ");
|
||||||
else if (value[4] == WGL_SWAP_COPY_ARB) fprintf(file, " c ");
|
else if (value[4] == WGL_SWAP_COPY_ARB) fprintf(file, " c ");
|
||||||
@ -199,10 +204,10 @@ VisualInfoARB (HDC hDC, int verbose)
|
|||||||
fprintf(file, "|\n");
|
fprintf(file, "|\n");
|
||||||
}
|
}
|
||||||
/* print table footer */
|
/* print table footer */
|
||||||
fprintf(file, " +-----+-------------------+-----------------+----------+-----------------+----------+\n");
|
fprintf(file, " +-----+----------------------+-----------------+----------+-----------------+----------+\n");
|
||||||
fprintf(file, " | | visual | color | ax dp st | accum | layer |\n");
|
fprintf(file, " | | visual | color | ax dp st | accum | layer |\n");
|
||||||
fprintf(file, " | id | tp ac fm db sw st | sz r g b a | bf th cl | sz r g b a | ov un sw |\n");
|
fprintf(file, " | id | tp ac fm db sw st ms | sz r g b a | bf th cl | sz r g b a | ov un sw |\n");
|
||||||
fprintf(file, " +-----+-------------------+-----------------+----------+-----------------+----------+\n");
|
fprintf(file, " +-----+----------------------+-----------------+----------+-----------------+----------+\n");
|
||||||
}
|
}
|
||||||
else /* verbose */
|
else /* verbose */
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user