|
15 | 15 | #include <GL/gl.h>
|
16 | 16 | #include <GL/glext.h>
|
17 | 17 |
|
| 18 | +#include <webgl/webgl1.h> |
18 | 19 | #include <webgl/webgl1_ext.h>
|
19 | 20 |
|
20 | 21 | // Define emscripten_ versions of gl functions, to avoid name collisions
|
|
23 | 24 | * Miscellaneous
|
24 | 25 | */
|
25 | 26 |
|
26 |
| -GLAPI void GLAPIENTRY emscripten_glClearIndex( GLfloat c ); |
27 |
| - |
28 |
| -GLAPI void GLAPIENTRY emscripten_glClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha ); |
29 |
| - |
30 |
| -GLAPI void GLAPIENTRY emscripten_glClear( GLbitfield mask ); |
31 |
| - |
32 |
| -GLAPI void GLAPIENTRY emscripten_glIndexMask( GLuint mask ); |
33 |
| - |
34 |
| -GLAPI void GLAPIENTRY emscripten_glColorMask( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha ); |
35 |
| - |
36 | 27 | GLAPI void GLAPIENTRY emscripten_glAlphaFunc( GLenum func, GLclampf ref );
|
37 | 28 |
|
38 |
| -GLAPI void GLAPIENTRY emscripten_glBlendFunc( GLenum sfactor, GLenum dfactor ); |
39 |
| - |
40 |
| -GLAPI void GLAPIENTRY emscripten_glLogicOp( GLenum opcode ); |
41 |
| - |
42 |
| -GLAPI void GLAPIENTRY emscripten_glCullFace( GLenum mode ); |
43 |
| - |
44 |
| -GLAPI void GLAPIENTRY emscripten_glFrontFace( GLenum mode ); |
45 |
| - |
46 |
| -GLAPI void GLAPIENTRY emscripten_glPointSize( GLfloat size ); |
47 |
| - |
48 |
| -GLAPI void GLAPIENTRY emscripten_glLineWidth( GLfloat width ); |
49 |
| - |
50 |
| -GLAPI void GLAPIENTRY emscripten_glLineStipple( GLint factor, GLushort pattern ); |
51 |
| - |
52 | 29 | GLAPI void GLAPIENTRY emscripten_glPolygonMode( GLenum face, GLenum mode );
|
53 | 30 |
|
54 |
| -GLAPI void GLAPIENTRY emscripten_glPolygonOffset( GLfloat factor, GLfloat units ); |
55 |
| - |
56 |
| -GLAPI void GLAPIENTRY emscripten_glPolygonStipple( const GLubyte *mask ); |
57 |
| - |
58 |
| -GLAPI void GLAPIENTRY emscripten_glGetPolygonStipple( GLubyte *mask ); |
59 |
| - |
60 |
| -GLAPI void GLAPIENTRY emscripten_glEdgeFlag( GLboolean flag ); |
61 |
| - |
62 |
| -GLAPI void GLAPIENTRY emscripten_glEdgeFlagv( const GLboolean *flag ); |
63 |
| - |
64 |
| -GLAPI void GLAPIENTRY emscripten_glScissor( GLint x, GLint y, GLsizei width, GLsizei height); |
65 |
| - |
66 | 31 | GLAPI void GLAPIENTRY emscripten_glClipPlane( GLenum plane, const GLdouble *equation );
|
67 | 32 |
|
68 |
| -GLAPI void GLAPIENTRY emscripten_glGetClipPlane( GLenum plane, GLdouble *equation ); |
69 |
| - |
70 | 33 | GLAPI void GLAPIENTRY emscripten_glDrawBuffer( GLenum mode );
|
71 | 34 |
|
72 | 35 | GLAPI void GLAPIENTRY emscripten_glReadBuffer( GLenum mode );
|
73 | 36 |
|
74 |
| -GLAPI void GLAPIENTRY emscripten_glEnable( GLenum cap ); |
75 |
| - |
76 |
| -GLAPI void GLAPIENTRY emscripten_glDisable( GLenum cap ); |
77 |
| - |
78 |
| -GLAPI GLboolean GLAPIENTRY emscripten_glIsEnabled( GLenum cap ); |
79 |
| - |
80 |
| - |
81 | 37 | GLAPI void GLAPIENTRY emscripten_glEnableClientState( GLenum cap ); /* 1.1 */
|
82 | 38 |
|
83 | 39 | GLAPI void GLAPIENTRY emscripten_glDisableClientState( GLenum cap ); /* 1.1 */
|
84 | 40 |
|
85 |
| - |
86 |
| -GLAPI void GLAPIENTRY emscripten_glGetBooleanv( GLenum pname, GLboolean *params ); |
87 |
| - |
88 |
| -GLAPI void GLAPIENTRY emscripten_glGetDoublev( GLenum pname, GLdouble *params ); |
89 |
| - |
90 |
| -GLAPI void GLAPIENTRY emscripten_glGetFloatv( GLenum pname, GLfloat *params ); |
91 |
| - |
92 |
| -GLAPI void GLAPIENTRY emscripten_glGetIntegerv( GLenum pname, GLint *params ); |
93 |
| - |
94 |
| - |
95 |
| -GLAPI void GLAPIENTRY emscripten_glPushAttrib( GLbitfield mask ); |
96 |
| - |
97 |
| -GLAPI void GLAPIENTRY emscripten_glPopAttrib( void ); |
98 |
| - |
99 |
| - |
100 |
| -GLAPI void GLAPIENTRY emscripten_glPushClientAttrib( GLbitfield mask ); /* 1.1 */ |
101 |
| - |
102 |
| -GLAPI void GLAPIENTRY emscripten_glPopClientAttrib( void ); /* 1.1 */ |
103 |
| - |
104 |
| - |
105 |
| -GLAPI GLint GLAPIENTRY emscripten_glRenderMode( GLenum mode ); |
106 |
| - |
107 |
| -GLAPI GLenum GLAPIENTRY emscripten_glGetError( void ); |
108 |
| - |
109 |
| -GLAPI const GLubyte * GLAPIENTRY emscripten_glGetString( GLenum name ); |
110 |
| - |
111 |
| -GLAPI const GLubyte * GLAPIENTRY emscripten_glGetStringi( GLenum name, GLuint index); |
112 |
| - |
113 |
| -GLAPI void GLAPIENTRY emscripten_glFinish( void ); |
114 |
| - |
115 |
| -GLAPI void GLAPIENTRY emscripten_glFlush( void ); |
116 |
| - |
117 |
| -GLAPI void GLAPIENTRY emscripten_glHint( GLenum target, GLenum mode ); |
118 |
| - |
119 |
| - |
120 |
| -/* |
121 |
| - * Depth Buffer |
122 |
| - */ |
123 |
| - |
124 |
| -GLAPI void GLAPIENTRY emscripten_glClearDepth( GLclampd depth ); |
125 |
| - |
126 |
| -GLAPI void GLAPIENTRY emscripten_glDepthFunc( GLenum func ); |
127 |
| - |
128 |
| -GLAPI void GLAPIENTRY emscripten_glDepthMask( GLboolean flag ); |
129 |
| - |
130 |
| -GLAPI void GLAPIENTRY emscripten_glDepthRange( GLclampd near_val, GLclampd far_val ); |
131 |
| - |
132 |
| - |
133 |
| -/* |
134 |
| - * Accumulation Buffer |
135 |
| - */ |
136 |
| - |
137 |
| -GLAPI void GLAPIENTRY emscripten_glClearAccum( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha ); |
138 |
| - |
139 |
| -GLAPI void GLAPIENTRY emscripten_glAccum( GLenum op, GLfloat value ); |
140 |
| - |
141 |
| - |
142 |
| -/* |
143 |
| - * Transformation |
144 |
| - */ |
145 |
| - |
146 | 41 | GLAPI void GLAPIENTRY emscripten_glMatrixMode( GLenum mode );
|
147 | 42 |
|
148 | 43 | GLAPI void GLAPIENTRY emscripten_glOrtho( GLdouble left, GLdouble right,
|
|
0 commit comments