mirror of
https://codeberg.org/ACM/TinyGL-C89.git
synced 2025-08-17 05:03:32 -04:00
Add C89 support
Allow compilation from C89 compilers.
This commit is contained in:
parent
fb4cb83981
commit
9a779bf1a1
66 changed files with 12202 additions and 0 deletions
25
examples/glu.h
Normal file
25
examples/glu.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
void gluPerspective( GLdouble fovy, GLdouble aspect,
|
||||
GLdouble zNear, GLdouble zFar );
|
||||
|
||||
typedef struct {
|
||||
int draw_style;
|
||||
} GLUquadricObj;
|
||||
|
||||
#define GLU_LINE 0
|
||||
|
||||
GLUquadricObj *gluNewQuadric(void);
|
||||
void gluQuadricDrawStyle(GLUquadricObj *obj, int style);
|
||||
|
||||
void gluSphere(GLUquadricObj *qobj,
|
||||
float radius,int slices,int stacks);
|
||||
void gluCylinder( GLUquadricObj *qobj,
|
||||
GLdouble baseRadius, GLdouble topRadius, GLdouble height,
|
||||
GLint slices, GLint stacks );
|
||||
void gluDisk( GLUquadricObj *qobj,
|
||||
GLdouble innerRadius, GLdouble outerRadius,
|
||||
GLint slices, GLint loops );
|
||||
|
||||
void drawTorus(float rc, int numc, float rt, int numt);
|
||||
|
||||
/* --- end of GLU_H --- */
|
||||
Loading…
Add table
Add a link
Reference in a new issue