Mercurial > projects > dstep
comparison dstep/opengl/glu.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Sep 24, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.opengl.glu; | |
8 | |
9 import dstep.opengl.gl; | |
10 | |
11 struct GLUnurbs; | |
12 struct GLUquadric; | |
13 struct GLUtesselator; | |
14 | |
15 alias GLUnurbs GLUnurbsObj; | |
16 alias GLUquadric GLUquadricObj; | |
17 alias GLUtesselator GLUtesselatorObj; | |
18 alias GLUtesselator GLUtriangulatorObj; | |
19 | |
20 extern (C) | |
21 { | |
22 void gluBeginCurve (GLUnurbs* nurb); | |
23 void gluBeginPolygon (GLUtesselator* tess); | |
24 void gluBeginSurface (GLUnurbs* nurb); | |
25 void gluBeginTrim (GLUnurbs* nurb); | |
26 int gluBuild1DMipmapLevels (uint target, int internalFormat, int width, uint format, uint type, int level, int base, int max, void* data); | |
27 int gluBuild1DMipmaps (uint target, int internalFormat, int width, uint format, uint type, void* data); | |
28 int gluBuild2DMipmapLevels (uint target, int internalFormat, int width, int height, uint format, uint type, int level, int base, int max, void* data); | |
29 int gluBuild2DMipmaps (uint target, int internalFormat, int width, int height, uint format, uint type, void* data); | |
30 int gluBuild3DMipmapLevels (uint target, int internalFormat, int width, int height, int depth, uint format, uint type, int level, int base, int max, void* data); | |
31 int gluBuild3DMipmaps (uint target, int internalFormat, int width, int height, int depth, uint format, uint type, void* data); | |
32 ubyte gluCheckExtension (char* extName, char* extString); | |
33 void gluCylinder (GLUquadric* quad, double base, double top, double height, int slices, int stacks); | |
34 void gluDeleteNurbsRenderer (GLUnurbs* nurb); | |
35 void gluDeleteQuadric (GLUquadric* quad); | |
36 void gluDeleteTess (GLUtesselator* tess); | |
37 void gluDisk (GLUquadric* quad, double inner, double outer, int slices, int loops); | |
38 void gluEndCurve (GLUnurbs* nurb); | |
39 void gluEndPolygon (GLUtesselator* tess); | |
40 void gluEndSurface (GLUnurbs* nurb); | |
41 void gluEndTrim (GLUnurbs* nurb); | |
42 char* gluErrorString (uint error); | |
43 void gluGetNurbsProperty (GLUnurbs* nurb, uint property, GLfloat* data); | |
44 char* gluGetString (uint name); | |
45 void gluGetTessProperty (GLUtesselator* tess, uint which, GLdouble* data); | |
46 void gluLoadSamplingMatrices (GLUnurbs* nurb, GLfloat* model, GLfloat* perspective, GLint* view); | |
47 void gluLookAt (double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ); | |
48 GLUnurbs* gluNewNurbsRenderer (); | |
49 GLUquadric* gluNewQuadric (); | |
50 GLUtesselator* gluNewTess (); | |
51 void gluNextContour (GLUtesselator* tess, uint type); | |
52 void gluNurbsCallbackData (GLUnurbs* nurb, GLvoid* userData); | |
53 void gluNurbsCallbackDataEXT (GLUnurbs* nurb, GLvoid* userData); | |
54 void gluNurbsCurve (GLUnurbs* nurb, int knotCount, GLfloat* knots, int stride, GLfloat* control, int order, uint type); | |
55 void gluNurbsProperty (GLUnurbs* nurb, uint property, float value); | |
56 void gluNurbsSurface (GLUnurbs* nurb, int sKnotCount, GLfloat* sKnots, int tKnotCount, GLfloat* tKnots, int sStride, int tStride, GLfloat* control, int sOrder, int tOrder, uint type); | |
57 void gluOrtho2D (double left, double right, double bottom, double top); | |
58 void gluPartialDisk (GLUquadric* quad, double inner, double outer, int slices, int loops, double start, double sweep); | |
59 void gluPerspective (double fovy, double aspect, double zNear, double zFar); | |
60 void gluPickMatrix (double x, double y, double delX, double delY, GLint* viewport); | |
61 int gluProject (double objX, double objY, double objZ, GLdouble* model, GLdouble* proj, GLint* view, GLdouble* winX, GLdouble* winY, GLdouble* winZ); | |
62 void gluPwlCurve (GLUnurbs* nurb, int count, GLfloat* data, int stride, uint type); | |
63 void gluQuadricDrawStyle (GLUquadric* quad, uint draw); | |
64 void gluQuadricNormals (GLUquadric* quad, uint normal); | |
65 void gluQuadricOrientation (GLUquadric* quad, uint orientation); | |
66 void gluQuadricTexture (GLUquadric* quad, ubyte texture); | |
67 int gluScaleImage (uint format, int wIn, int hIn, uint typeIn, void* dataIn, int wOut, int hOut, uint typeOut, GLvoid* dataOut); | |
68 void gluSphere (GLUquadric* quad, double radius, int slices, int stacks); | |
69 void gluTessBeginContour (GLUtesselator* tess); | |
70 void gluTessBeginPolygon (GLUtesselator* tess, GLvoid* data); | |
71 void gluTessEndContour (GLUtesselator* tess); | |
72 void gluTessEndPolygon (GLUtesselator* tess); | |
73 void gluTessNormal (GLUtesselator* tess, double valueX, double valueY, double valueZ); | |
74 void gluTessProperty (GLUtesselator* tess, uint which, double data); | |
75 void gluTessVertex (GLUtesselator* tess, GLdouble* location, GLvoid* data); | |
76 int gluUnProject (double winX, double winY, double winZ, GLdouble* model, GLdouble* proj, GLint* view, GLdouble* objX, GLdouble* objY, GLdouble* objZ); | |
77 int gluUnProject4 (double winX, double winY, double winZ, double clipW, GLdouble* model, GLdouble* proj, GLint* view, double nearPlane, double farPlane, GLdouble* objX, GLdouble* objY, GLdouble* objZ, GLdouble* objW); | |
78 } |