summaryrefslogtreecommitdiff
path: root/examples/glitzinfo
AgeCommit message (Collapse)AuthorFilesLines
2008-11-29[examples] Add texture from pixmap check in glitzinfoNicolas Bruguier1-1/+4
Add missing texture from pixmap feature in glitzinfo print_features.
2008-11-29[glitz] Add visual depth in drawable format.Nicolas Bruguier1-4/+5
Add visual depth setting in drawable format, because the depth size and depth can be differ. This parameter allow to select more easily a format for a visual depth.
2008-11-29[glitz] Add scanline order in glitz_format_drawable_t.Nicolas Bruguier1-5/+7
Add scanline order settings in drawable format to indicate the y coordinate order of drawable framebuffer.
2008-11-29[cgl] Add glitz-cgl backendPaolo Bonzini2-0/+46
The backend is mostly derived from the AGL backend, but allows creating drawable on Cocoa NSView objects (*not* NSOpenGLView: the latter is mostly a NSView + OpenGL contexts and pixel formats, which glitz manages on its own). All the added files are Objective-C (.m). The only changes with respect to the AGL backend were in the pixel format queries that: 1) need to use CGL directly in order to avoid logging messages for unavailable formats; 2) needed some tweaking in order to find no-depth, no-stencil pbuffer formats (the new pbuffer format discovery code actually does not need it, but it's better to be safe; 3) have a slightly different sort order that is nicer (as seen in the output of glitzinfo). The renderer test's Objective-C bits in glitz_cgl.m has two parts in it. One is the boilerplate that sets up Cocoa without using .nib files; it can be useful only if you want to write a similar example program for Glitz. I split the test-specific code in two (before parsing command line/after parsing command line) to avoid showing the icon in the dock if the program is going to exit very soon. The second part is GlitzOpenGLView, which provides the bits of NSOpenGLView that go beyond storing OpenGL contexts and pixel formats; see the "Custom Cocoa OpenGL View" example from Apple. Programs using Glitz in their UI should be able to recycle it pretty easily as it's just four methods (one caveat: I didn't investigate how to deal with window resizes).
2008-11-29[agl] fix agl buildsPaolo Bonzini2-2/+2
Fix agl build.
2008-11-29[glitz] Add glitzinfo and renderer-test examples.Nicolas Bruguier2-0/+380
Add some examples to test and demonstrate glitz in action.