summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2013-10-31Fix out of tree builds.HEADmasterKenneth Graunke1-4/+6
This was helpful for packaging on Gentoo, which defaults to out of tree builds for autotools projects. Cc: Ian Romanick <idr@freedesktop.org>
2011-02-02GLUshape: Add a torus shape generatorIan Romanick4-1/+171
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 Romanick1-2/+9
2010-10-03GLUshape: Fix off-by-one error in mesh generationIan Romanick1-2/+2
2010-10-03GLUshape: Make the mesh producer publicly availableIan Romanick2-106/+63
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 Romanick2-1/+58
2010-10-03GLUshape: Make consumer index interface batch oriented as wellIan Romanick4-17/+32
2010-10-02GLUshape: Pass element count as a parameter to begin_primitive methodIan Romanick4-7/+7
2010-10-02GLUshape: Simplify / optimize GLUshapeConsumer interfaceIan Romanick7-54/+246
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 Romanick4-68/+70
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 Romanick1-16/+0
2010-07-21Check for existance of strtofIan Romanick1-0/+4
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 Romanick1-1/+1
Also add wglext.h to the repository.
2010-07-18Add initial version of shading language helper functionsshader_helperIan Romanick2-1/+262
2010-07-17Measure all angles in radiansIan Romanick1-4/+2
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-19Add Producer to the names of all the shape producer classesGLUshapeIan Romanick2-18/+19
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 Romanick2-1/+168
2010-02-16GLUshape: Split GLUshape into GLUshapeConsumer and GLUshapeIan Romanick1-13/+12
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 GLUsphere class for generating sphere shapesIan Romanick2-1/+168
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-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
2010-02-10Word around missing M_PI on some platforms.Ian Romanick1-0/+8
2010-02-10"near" and "far" are magic words in Visual StudioIan Romanick1-15/+15
Thanks for adhering to the C standard, guys.
2010-02-10Pre-C99 compilers can't mix code and declarations.Ian Romanick1-2/+2
2010-01-12Add gluArcball structure and support functionsIan Romanick2-1/+149
This adds basic code to implement the class arcball user interface control.
2009-12-03Add functions to calculate the determinant and inverse of a 4x4 matrixIan Romanick1-0/+106
2009-12-03Fix parameter ordering of projection matrix functionsIan Romanick1-5/+5
The GL and (classic) GLU functions that these emulate have bottom before top. Reorder the parameters to these functions to match.
2009-11-14Add function to load text file (for shaders) from diskIan Romanick2-1/+144
2009-10-25Add several functions to calculate projection matrixes.Ian Romanick1-0/+52
This commit adds: gluFrustum6f, gluOrtho4f, and gluOrtho6f. These functions match glFrustum, gluOrtho2d (from classic GLU), and glOrtho.
2009-08-03Fix function names to match OpenGL naming conventionsIan Romanick1-3/+3
Several functions just had a number specifying the parameter count, but they were missing the type specifier.
2009-07-31Add test for gluLookAt4v and fix a bug it revealed.Eric Anholt1-6/+11
2009-07-28Pass pointer to result instead of returning a structureIan Romanick1-95/+74
Functions that used to return either GLUvec4 or GLUmat4 have been modified to take a pointer to the location to store the result. Any functions where the result pointer could also be a source pointer are coded to calculate to a temporary and copy the result, if necessary.
2009-05-04Numerous small clean-ups and fixes.Ian Romanick2-13/+92
Sorry for the rubbish commit message.
2009-04-17Add missing AM_CFLAGSIan Romanick1-0/+2
2009-04-17Oops.Ian Romanick1-0/+0