summaryrefslogtreecommitdiffstats
path: root/progs
Commit message (Collapse)AuthorAgeFilesLines
* xdemos: Fix xdemos which default to using display :0.0 to default to $DISPLAYJon TURNEY2009-06-304-5/+6
| | | | | | | Fix xdemos which default to using display :0.0 to default to $DISPLAY, this is kind of irritating when testing on a display other than :0.0 Signed-off-by: Jon TURNEY <[email protected]>
* mesa/vbo: fix compile and replay of nodes ending in a FALLBACKKeith Whitwell2009-06-302-0/+160
| | | | | | | | | | | | | | | | | Where vbo save nodes are terminated with a call to DO_FALLBACK(), as in the case of a recursive CallList which is itself within a Begin/End pair, there two problems: 1) The display list node's primitive information was incorrect, stating the cut-off prim had zero vertices 2) On replay, we would get confused by a primitive that started in a node, but was terminated by individual opcodes. This change fixes the first problem by correctly terminating the last primitive on fallback, and the second by forcing the display list to use the Loopback path, converting all nodes into immediate-mode rendering. The loopback fix is a performance hit, but avoiding this would require a fairly large rework of this code.
* progs/trivial: add test case for lighting plus per-vertex materialsKeith Whitwell2009-06-302-0/+150
| | | | Exercise material-within-begin/end case.
* progs/isosurf: add materials mode for glVertex + TRISTRIPKeith Whitwell2009-06-301-5/+20
|
* progs/util: make sure function pointers are initializedKeith Whitwell2009-06-301-1/+6
| | | | | Call Init() from CompileShaderFile, was previously only called for the Text version of this function.
* progs/glsl: link with GLEW libraryBrian Paul2009-06-291-1/+1
|
* progs/glsl: compile with scons and glewKeith Whitwell2009-06-2927-1/+106
| | | | Get most of these working with scons.
* demos: improve argv parsing in fslight.cBrian Paul2009-06-261-2/+6
|
* demos: fix issues in glxcontexts.cBrian Paul2009-06-231-114/+46
| | | | | | | | The reshape() function was called when there was no GLX context so the viewport/modelview/projection setup wasn't doing anything. Move the call to reshape() into draw(). Also, remove -stereo, -fullscreen options and do some general clean-up.
* progs/wgl: Fix shreadtex_mt too.José Fonseca2009-06-171-6/+24
|
* progs/wgl: Tweak the initialization wait in wglthreads.José Fonseca2009-06-171-2/+2
| | | | There was still a non-zero probability for wglShareLists of failing.
* progs/wgl: Get wglShareLists working in wglthreads.José Fonseca2009-06-171-6/+23
| | | | | | | wglShareLists is a little picky -- it seems to check if it has exclusive access to a lock, and fails if it doesn't. This allows the texture to be shared with all windows.
* progs/wgl: Allow resizing wglthreads' windows.José Fonseca2009-06-171-1/+1
|
* progs/wgl: Quit after displaying usage for -h option.José Fonseca2009-06-161-0/+1
|
* progs/wgl: Use appropriate types to silence msvc warnings.José Fonseca2009-06-161-7/+7
|
* progs/wgl: Fix assertion failure in wglthreads' texture creation.José Fonseca2009-06-161-8/+10
|
* progs/tests: Use opaque colors.José Fonseca2009-06-151-2/+2
| | | | | Transparency is not relevant for this example, and leads to distraction due to different results in alpha visuals, when capturing images to disk.
* demos: update fbotexture.c to use EXT or ARB functions exclusivelyBrian Paul2009-06-122-38/+77
| | | | | | | | | When the -arb option is specified we use GL_ARB_framebuffer_object intead of GL_EXT_framebuffer_object. For some vendors' OpenGL it's important to call the ARB entrypoints instead of the EXT entrypoints to get correct behaviour. Use some function pointer tricks to do this (instead of GLEW).
* util: additional function pointersBrian Paul2009-06-121-0/+101
|
* progs: Port fp programs to GLEW.José Fonseca2009-06-1110-26/+50
|
* progs/tests: Add some scissor testsJakob Bornecrantz2009-06-085-0/+312
|
* progs/vpglsl: add similar support for point rendering as progs/vpKeith Whitwell2009-06-013-6/+64
|
* trivial/tri-z: add controls for depthrange min/maxKeith Whitwell2009-06-011-10/+40
| | | | | Also add key to set up quake-1 style ztrick rendering with clear depth 1.0, deptrange(1.0, 0.0) and depthfunc GL_GREATER.
* progs/wgl: Small cleanup to wglinfo.José Fonseca2009-06-011-5/+4
|
* progs/wgl: Use an invisible window in wglinfo.José Fonseca2009-06-011-1/+1
|
* demos: add missing dependencies for util filesBrian Paul2009-06-011-10/+11
|
* demos: fix multitex.c VertCoord attribute mappingBrian Paul2009-05-221-1/+16
| | | | | | | | | | | | If the multitex.vert shader uses the VertCoord generic vertex attribute instead of the pre-defined gl_Vertex attribute, we need to make sure that VertCoord gets bound to generic vertex attribute zero. That's because we need to call glVertexAttrib2fv(0, xy) after all the other vertex attributes have been set since setting generic attribute 0 triggers vertex submission. Before, we wound up issuing the vertex attributes in the order 0, 1, 2 which caused the first vertex to be submitted before all the attributes were set. Now, the attributes are set in 1, 2, 0 order.
* trivial: destroy window upon exitBrian Paul2009-05-111-0/+1
|
* progs/trivial: add test for vertex program invarient transformKeith Whitwell2009-05-083-0/+149
|
* progs/trivial: add vbo-noninterleaved testKeith Whitwell2009-05-083-0/+141
|
* trivial: add line-flat.cKeith Whitwell2009-05-083-0/+149
|
* demos: silence warningBrian Paul2009-04-301-1/+1
|
* progs/tests: Update ignoresJakob Bornecrantz2009-04-291-8/+6
|
* progs/tests: Add mipmap_comp for mipmap testing with compressed texturesJakob Bornecrantz2009-04-294-0/+298
|
* progs: add fflushes for cygwinKeith Whitwell2009-04-282-0/+5
|
* demos: asst. updates, clean-upsBrian Paul2009-04-281-23/+20
|
* demos: Clean up allocated Textures and Display Lists when demo quitShuang He2009-04-274-0/+47
|
* demos: ensure display lists are destroyed for next generationAlan Hourihane2009-04-241-0/+4
|
* shadowtex: fflush stdout for cygwinKeith Whitwell2009-04-241-0/+2
|
* demos/readpix: add option to draw triangle instead of drawpixKeith Whitwell2009-04-241-5/+62
|
* tests/mipmap_view: add a bunch of keystrokes for testing render-to-textureKeith Whitwell2009-04-241-48/+219
| | | | | Move between mipmaps, render a triangle, reload textures with either the original arch (and GenMipmaps) or via straightforward glTexImage.
* demos: check that GL version is 2.0 or higherBrian Paul2009-04-211-0/+8
|
* trivial/tri-viewport: add keys for frustrum/ortho and z coordinateKeith Whitwell2009-04-211-43/+77
|
* trivial/tri-viewport: add more out-of-bounds background quadsKeith Whitwell2009-04-211-1/+27
|
* trivial/tri_viewport: add space==reset keyKeith Whitwell2009-04-211-1/+3
|
* trivial/tri_viewport: add width/height keysKeith Whitwell2009-04-211-18/+49
|
* mesa/progs: fix scons build after recent demo movesKeith Whitwell2009-04-202-10/+9
|
* trivial/tri-viewport.c - add guide lines, more triangles, make interactiveKeith Whitwell2009-04-201-14/+118
| | | | This is becoming more like a test than a trivial/ example.
* tests/mipmap_view: add linear/nearest keyKeith Whitwell2009-04-201-2/+13
|
* progs/demos: Update ignoreJakob Bornecrantz2009-04-191-0/+4
|