summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNicolas Bruguier <nicolas.bruguier@supersonicimagine.fr>2008-11-29 14:10:23 +0100
committerNicolas Bruguier <nicolas.bruguier@supersonicimagine.fr>2008-11-29 14:10:23 +0100
commit13f5d77fa51eabf015d92bd9e3003c2a307ba942 (patch)
tree2fb55b717e698979354dbbfa9c1f32b37cabe48d /examples
parent4b8cd59f2757a63bec982a96b7c8112d75b410b8 (diff)
[glitz] Add scanline order in glitz_format_drawable_t.
Add scanline order settings in drawable format to indicate the y coordinate order of drawable framebuffer.
Diffstat (limited to 'examples')
-rw-r--r--examples/glitzinfo/glitzinfo.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/glitzinfo/glitzinfo.c b/examples/glitzinfo/glitzinfo.c
index 0b7719f..2824738 100644
--- a/examples/glitzinfo/glitzinfo.c
+++ b/examples/glitzinfo/glitzinfo.c
@@ -99,7 +99,7 @@ print_format (glitz_drawable_format_t *format)
{
if (format)
{
- printf ("0x%x\t%d/%d/%d/%d \t%d\t%d\t%c\t%d\n",
+ printf ("0x%x\t%d/%d/%d/%d \t%d\t%d\t%c\t%d\t%c\n",
(int) format->id,
format->color.red_size,
format->color.green_size,
@@ -108,7 +108,9 @@ print_format (glitz_drawable_format_t *format)
format->depth_size,
format->stencil_size,
(format->doublebuffer) ? 'y' : '.',
- format->samples);
+ format->samples,
+ (format->scanline_order ==
+ GLITZ_PIXEL_SCANLINE_ORDER_TOP_DOWN) ? 't' : 'd');
return 1;
}
return 0;
@@ -275,7 +277,7 @@ main (int argc, char **argv)
print_features (glitz_drawable_get_features (drawable));
printf ("\nWindow formats:\n");
- printf ("id\tr/g/b/a \tdepth\tstencil\tdb\tsamples\n");
+ printf ("id\tr/g/b/a \tdepth\tstencil\tdb\tsamples\tscanline\n");
printf ("-------------------------------------"
"-------------------------------------\n");
@@ -304,7 +306,7 @@ main (int argc, char **argv)
#endif
printf ("\nPbuffer formats:\n");
- printf ("id\tr/g/b/a \tdepth\tstencil\tdb\tsamples\n");
+ printf ("id\tr/g/b/a \tdepth\tstencil\tdb\tsamples\tscanline\n");
printf ("-------------------------------------"
"-------------------------------------\n");
@@ -313,7 +315,7 @@ main (int argc, char **argv)
i++;
printf ("\nOffscreen formats:\n");
- printf ("id\tr/g/b/a \tdepth\tstencil\tdb\tsamples\n");
+ printf ("id\tr/g/b/a \tdepth\tstencil\tdb\tsamples\tscanline\n");
printf ("-------------------------------------"
"-------------------------------------\n");