summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-03-02Fix forced function inlining for G++HEADmasterIan Romanick1-1/+1
2011-02-02GLUshape: Add a torus shape generatorIan Romanick5-1/+200
2010-11-30GLUshape: Correct the element count calculation for meshesIan Romanick1-1/+1
The parenthesis were in the wrong place, so the element count was much too large. As a result, users of the mesh interfaces tried to draw elements that were not initialized by the producer. This caused various failure modes on different drivers.
2010-10-03GLUshape: Add the ability to generate meshes with a non-zero base vertexIan Romanick2-3/+12
2010-10-03GLUshape: Fix off-by-one error in mesh generationIan Romanick1-2/+2
2010-10-03GLUshape: Make the mesh producer publicly availableIan Romanick3-111/+97
Derive GLUsphereProducer from GLUmeshProducer. This simplifies the implementation somewhat.
2010-10-03Rename mesh.c as mesh.cppIan Romanick2-1/+1
2010-10-03GLUshape: Provide default implementations of some methodsIan Romanick3-6/+67
2010-10-03GLUshape: Add missing implementation of GLUshapeProducer::orientationIan Romanick1-1/+4
2010-10-03GLUshape: Make consumer index interface batch oriented as wellIan Romanick5-19/+37
2010-10-02GLUshape: Pass element count as a parameter to begin_primitive methodIan Romanick5-8/+10
2010-10-02GLUshape: Simplify / optimize GLUshapeConsumer interfaceIan Romanick8-54/+271
Now applications can supply buffers in the GLUshapeConsumer object that the producer routines will automatically fill in. In addition, the vertex handler method in GLUshapeConsumer will receive a batch of vertices instead of one at a time.
2010-10-02GLUshape: Initial work towards making GLUshapeConsumer interface batch orientedIan Romanick5-73/+77
2010-10-02Fix bugs in vargs handlingIan Romanick1-2/+2
Prevously gluAttachShaders would process the first shader twice. Even worse, gluBindAttributes would just process things wrong.
2010-10-02Fix numerous GCC pointer signedness warningsIan Romanick1-3/+5
2010-10-02GLUshape: Implement single primitive NxM mesh generationIan Romanick2-14/+23
2010-07-21Add header files previously missing in Makefile.amglu3-0.9.1Ian Romanick1-1/+3
2010-07-21Set default HAVE_ macros for Windows buildsglu3-0.9Ian Romanick1-0/+5
2010-07-21Work around systems that don't have stdbool.hIan Romanick2-17/+15
2010-07-21Check for existance of strtofIan Romanick2-0/+5
2010-07-21Use correct internal includes to work around compiler issuesIan Romanick1-2/+2
2010-07-21Add missing return in gluInitializeCompilerIan Romanick1-0/+2
2010-07-21Use correct cast for assignment to GetProgramInfoLogIan Romanick1-1/+2
2010-07-21Use size_t instead of unsigned to silence VisualStudio warningIan Romanick1-1/+1
2010-07-21Use wglext.h instead of wgl.hIan Romanick2-1/+879
Also add wglext.h to the repository.
2010-07-21Bump version to 0.9 in anticipation of releaseIan Romanick2-1/+2
2010-07-18Add initial version of shading language helper functionsshader_helperIan Romanick3-1/+371
2010-07-18Add checks to configure.ac for the window systemIan Romanick1-0/+55
Soon the library will need to call the window system depenedent GetProcAddress funtion.
2010-07-17Measure all angles in radiansIan Romanick2-7/+5
This differs from fixed-function GL (and classic GLU), but it matches GLSL and the standard C library. It turns out that gluRotate4v and gluRotate were already assuming the angle was in radians, in spite of what the documentation said.
2010-04-20Build fixes for WindowsIan Romanick1-2/+8
2010-04-19GLUshape: Remove GLUshapeProducer::normals interfaceIan Romanick1-7/+1
None of the existing shape producers support the per-polygon normals, and it will require quite a bit more code to support it. Until that code is written, just remove the interface.
2010-04-19Add Producer to the names of all the shape producer classesGLUshapeIan Romanick4-32/+34
The shape consumer class already has Consumer on the name. Adding Producer to the names of the producer classes makes the producer / consumer nature a little more apparent.
2010-03-02GLUshape: Fix off-by-one error in an increment calculation in revolveIan Romanick1-1/+1
2010-02-16GLUshape: Add GLUcube class to generate cubesIan Romanick3-1/+190
2010-02-16GLUshape: Split GLUshape into GLUshapeConsumer and GLUshapeIan Romanick3-82/+92
Put the responsibility for storing the data in a separate consumer class. As a result, applications that want to store data from n GLUshape subclasses in the same manner need only create one subclass (of GLUshapeConsumer) instead of n (of GLUshape).
2010-02-15GLUshape: Add simple test for GLUsphere shape generatorIan Romanick3-1/+178
2010-02-15GLUshape: Add GLUsphere class for generating sphere shapesIan Romanick3-1/+197
2010-02-15Add generic routines to generate triangle strip elements for rectangular meshesIan Romanick3-1/+128
2010-02-15Add generic routines to generate surfaces of revolution.Ian Romanick4-1/+208
2010-02-15GLUshape: Initial interface for GLUshapeIan Romanick1-0/+117
This is the abstract base class for all classes that are used to generate shapes. This is roughly analogous to the GLUquadric in classic GLU.
2010-02-13Add see-also links for gluLoadTextFile and gluUnloadTextFileIan Romanick1-0/+4
2010-02-10Bump version to 0.1-20100210.Ian Romanick1-1/+1
2010-02-10Change internal version define.Ian Romanick1-1/+1
This isn't GLU 3.x. It's GLU for OpenGL 3.x. Change the define token to GLU3_VERSION_#_# to refelct that.
2010-02-10Silence a Visual Studio double-to-float warning.Ian Romanick1-1/+1
2010-02-10Ensure that functions are inlinedIan Romanick1-36/+44
When optimizations are disabled, functions that only exist in header files ended up being undefined. The desired behavior is to force the function to be inlined, and never compile it stand-alone. None of the C or C++ standards give a way to do this, but every compiler seems to have a way.
2010-02-10Include GL/glext.h to get GLchar and other types on all platforms.Ian Romanick1-0/+1
2010-02-10Import glext.h from opengl.orgIan Romanick1-0/+9480
2010-02-10Include windows.h before including GL/gl.h on Windows.Ian Romanick1-0/+5
2010-02-10Use fopen_s on Win32.Ian Romanick1-3/+1
2010-02-10Disable useless double-to-float conversion warnings in Visual Stuido.Ian Romanick2-0/+5