1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG definitions for the OpenGL wxWindows classes
7 // Created: 15-Mar-1999
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
21 //---------------------------------------------------------------------------
24 %include my_typemaps.i
40 static wxString wxPyEmptyStr("");
41 static wxPoint wxPyDefaultPosition(-1, -1);
42 static wxSize wxPyDefaultSize(-1, -1);
46 %pragma(python) code = "import wx"
48 //---------------------------------------------------------------------------
55 //---------------------------------------------------------------------------
59 wxGLContext(bool isRGB, wxWindow *win, const wxPalette& palette = wxNullPalette);
63 void SetColour(const char *colour);
66 void SetupPixelFormat();
67 void SetupPalette(const wxPalette& palette);
68 wxPalette CreateDefaultPalette();
70 wxPalette* GetPalette();
71 wxWindow* GetWindow();
74 //---------------------------------------------------------------------------
76 class wxGLCanvas : public wxScrolledWindow {
78 wxGLCanvas(wxWindow *parent, wxWindowID id = -1,
79 const wxPoint& pos = wxPyDefaultPosition,
80 const wxSize& size = wxPyDefaultSize, long style = 0,
81 const char* name = "GLCanvas",
83 const wxPalette& palette = wxNullPalette);
85 %pragma(python) addtomethod = "__init__:wx._StdWindowCallbacks(self)"
88 void SetColour(const char *colour);
91 wxGLContext* GetContext();
95 //---------------------------------------------------------------------------
97 typedef unsigned int GLenum;
98 typedef unsigned char GLboolean;
99 typedef unsigned int GLbitfield;
100 typedef signed char GLbyte;
101 typedef short GLshort;
104 typedef unsigned char GLubyte;
105 typedef unsigned short GLushort;
106 typedef unsigned int GLuint;
107 typedef float GLfloat;
108 typedef float GLclampf;
109 typedef double GLdouble;
110 typedef double GLclampd;
114 //---------------------------------------------------------------------------
115 /* EXT_vertex_array */
116 void glArrayElementEXT(GLint i);
117 void glColorPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
118 void glDrawArraysEXT(GLenum mode, GLint first, GLsizei count);
119 void glEdgeFlagPointerEXT(GLsizei stride, GLsizei count, const GLboolean *pointer);
120 void glGetPointervEXT(GLenum pname, GLvoid* *params);
121 void glIndexPointerEXT(GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
122 void glNormalPointerEXT(GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
123 void glTexCoordPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
124 void glVertexPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
127 /* EXT_color_subtable */
128 void glColorSubtableEXT(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *table);
131 /* EXT_color_table */
132 void glColorTableEXT(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
134 void glCopyColorTableEXT(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
136 void glGetColorTableEXT(GLenum target, GLenum format, GLenum type, GLvoid *table);
138 void glGetColorTableParamaterfvEXT(GLenum target, GLenum pname, GLfloat *params);
139 void glGetColorTavleParameterivEXT(GLenum target, GLenum pname, GLint *params);
143 /* SGI_compiled_vertex_array */
144 void glLockArraysSGI(GLint first, GLsizei count);
145 void glUnlockArraysSGI();
147 /* SGI_cull_vertex */
148 void glCullParameterdvSGI(GLenum pname, GLdouble* params);
149 void glCullParameterfvSGI(GLenum pname, GLfloat* params);
152 void glIndexFuncSGI(GLenum func, GLclampf ref);
154 /* SGI_index_material */
155 void glIndexMaterialSGI(GLenum face, GLenum mode);
158 void glAddSwapHintRectWin(GLint x, GLint y, GLsizei width, GLsizei height);
161 //----------------------------------------------------------------------
177 GL_ACCUM_CLEAR_VALUE,
195 GL_AMBIENT_AND_DIFFUSE,
199 GL_ATTRIB_STACK_DEPTH,
230 GL_CLIENT_ALL_ATTRIB_BITS,
231 GL_CLIENT_ATTRIB_STACK_DEPTH,
232 GL_CLIENT_PIXEL_STORE_BIT,
233 GL_CLIENT_VERTEX_ARRAY_BIT,
243 GL_COLOR_ARRAY_COUNT_EXT,
245 GL_COLOR_ARRAY_POINTER,
246 GL_COLOR_ARRAY_POINTER_EXT,
248 GL_COLOR_ARRAY_SIZE_EXT,
249 GL_COLOR_ARRAY_STRIDE,
250 GL_COLOR_ARRAY_STRIDE_EXT,
252 GL_COLOR_ARRAY_TYPE_EXT,
254 GL_COLOR_CLEAR_VALUE,
256 GL_COLOR_INDEX12_EXT,
257 GL_COLOR_INDEX16_EXT,
265 GL_COLOR_MATERIAL_FACE,
266 GL_COLOR_MATERIAL_PARAMETER,
267 GL_COLOR_TABLE_ALPHA_SIZE_EXT,
268 GL_COLOR_TABLE_BLUE_SIZE_EXT,
269 GL_COLOR_TABLE_FORMAT_EXT,
270 GL_COLOR_TABLE_GREEN_SIZE_EXT,
271 GL_COLOR_TABLE_INTENSITY_SIZE_EXT,
272 GL_COLOR_TABLE_LUMINANCE_SIZE_EXT,
273 GL_COLOR_TABLE_RED_SIZE_EXT,
274 GL_COLOR_TABLE_WIDTH_EXT,
277 GL_COMPILE_AND_EXECUTE,
278 GL_CONSTANT_ATTENUATION,
288 GL_CURRENT_RASTER_COLOR,
289 GL_CURRENT_RASTER_DISTANCE,
290 GL_CURRENT_RASTER_INDEX,
291 GL_CURRENT_RASTER_POSITION,
292 GL_CURRENT_RASTER_POSITION_VALID,
293 GL_CURRENT_RASTER_TEXTURE_COORDS,
294 GL_CURRENT_TEXTURE_COORDS,
302 GL_DEPTH_CLEAR_VALUE,
324 GL_EDGE_FLAG_ARRAY_COUNT_EXT,
325 GL_EDGE_FLAG_ARRAY_EXT,
326 GL_EDGE_FLAG_ARRAY_POINTER,
327 GL_EDGE_FLAG_ARRAY_POINTER_EXT,
328 GL_EDGE_FLAG_ARRAY_STRIDE,
329 GL_EDGE_FLAG_ARRAY_STRIDE_EXT,
341 GL_EXT_paletted_texture,
348 GL_FEEDBACK_BUFFER_POINTER,
349 GL_FEEDBACK_BUFFER_SIZE,
350 GL_FEEDBACK_BUFFER_TYPE,
377 GL_INDEX_ARRAY_COUNT_EXT,
379 GL_INDEX_ARRAY_POINTER,
380 GL_INDEX_ARRAY_POINTER_EXT,
381 GL_INDEX_ARRAY_STRIDE,
382 GL_INDEX_ARRAY_STRIDE_EXT,
384 GL_INDEX_ARRAY_TYPE_EXT,
386 GL_INDEX_CLEAR_VALUE,
399 GL_INVALID_OPERATION,
416 GL_LIGHT_MODEL_AMBIENT,
417 GL_LIGHT_MODEL_LOCAL_VIEWER,
418 GL_LIGHT_MODEL_TWO_SIDE,
421 GL_LINEAR_ATTENUATION,
422 GL_LINEAR_MIPMAP_LINEAR,
423 GL_LINEAR_MIPMAP_NEAREST,
431 GL_LINE_STIPPLE_PATTERN,
432 GL_LINE_STIPPLE_REPEAT,
436 GL_LINE_WIDTH_GRANULARITY,
447 GL_LUMINANCE12_ALPHA12,
448 GL_LUMINANCE12_ALPHA4,
450 GL_LUMINANCE16_ALPHA16,
452 GL_LUMINANCE4_ALPHA4,
453 GL_LUMINANCE6_ALPHA2,
455 GL_LUMINANCE8_ALPHA8,
459 GL_MAP1_GRID_SEGMENTS,
462 GL_MAP1_TEXTURE_COORD_1,
463 GL_MAP1_TEXTURE_COORD_2,
464 GL_MAP1_TEXTURE_COORD_3,
465 GL_MAP1_TEXTURE_COORD_4,
470 GL_MAP2_GRID_SEGMENTS,
473 GL_MAP2_TEXTURE_COORD_1,
474 GL_MAP2_TEXTURE_COORD_2,
475 GL_MAP2_TEXTURE_COORD_3,
476 GL_MAP2_TEXTURE_COORD_4,
482 GL_MAX_ATTRIB_STACK_DEPTH,
483 GL_MAX_CLIENT_ATTRIB_STACK_DEPTH,
488 GL_MAX_MODELVIEW_STACK_DEPTH,
489 GL_MAX_NAME_STACK_DEPTH,
490 GL_MAX_PIXEL_MAP_TABLE,
491 GL_MAX_PROJECTION_STACK_DEPTH,
493 GL_MAX_TEXTURE_STACK_DEPTH,
494 GL_MAX_VIEWPORT_DIMS,
497 GL_MODELVIEW_STACK_DEPTH,
504 GL_NEAREST_MIPMAP_LINEAR,
505 GL_NEAREST_MIPMAP_NEAREST,
513 GL_NORMAL_ARRAY_COUNT_EXT,
515 GL_NORMAL_ARRAY_POINTER,
516 GL_NORMAL_ARRAY_POINTER_EXT,
517 GL_NORMAL_ARRAY_STRIDE,
518 GL_NORMAL_ARRAY_STRIDE_EXT,
519 GL_NORMAL_ARRAY_TYPE,
520 GL_NORMAL_ARRAY_TYPE_EXT,
526 GL_ONE_MINUS_DST_ALPHA,
527 GL_ONE_MINUS_DST_COLOR,
528 GL_ONE_MINUS_SRC_ALPHA,
529 GL_ONE_MINUS_SRC_COLOR,
541 GL_PASS_THROUGH_TOKEN,
542 GL_PERSPECTIVE_CORRECTION_HINT,
544 GL_PIXEL_MAP_A_TO_A_SIZE,
546 GL_PIXEL_MAP_B_TO_B_SIZE,
548 GL_PIXEL_MAP_G_TO_G_SIZE,
550 GL_PIXEL_MAP_I_TO_A_SIZE,
552 GL_PIXEL_MAP_I_TO_B_SIZE,
554 GL_PIXEL_MAP_I_TO_G_SIZE,
556 GL_PIXEL_MAP_I_TO_I_SIZE,
558 GL_PIXEL_MAP_I_TO_R_SIZE,
560 GL_PIXEL_MAP_R_TO_R_SIZE,
562 GL_PIXEL_MAP_S_TO_S_SIZE,
568 GL_POINT_SIZE_GRANULARITY,
571 GL_POINT_SMOOTH_HINT,
576 GL_POLYGON_OFFSET_FACTOR,
577 GL_POLYGON_OFFSET_FILL,
578 GL_POLYGON_OFFSET_LINE,
579 GL_POLYGON_OFFSET_POINT,
580 GL_POLYGON_OFFSET_UNITS,
582 GL_POLYGON_SMOOTH_HINT,
584 GL_POLYGON_STIPPLE_BIT,
588 GL_PROJECTION_MATRIX,
589 GL_PROJECTION_STACK_DEPTH,
593 GL_QUADRATIC_ATTENUATION,
631 GL_SELECTION_BUFFER_POINTER,
632 GL_SELECTION_BUFFER_SIZE,
644 GL_SRC_ALPHA_SATURATE,
650 GL_STENCIL_BUFFER_BIT,
651 GL_STENCIL_CLEAR_VALUE,
655 GL_STENCIL_PASS_DEPTH_FAIL,
656 GL_STENCIL_PASS_DEPTH_PASS,
659 GL_STENCIL_VALUE_MASK,
660 GL_STENCIL_WRITEMASK,
674 GL_TEXTURE_ALPHA_SIZE,
675 GL_TEXTURE_BINDING_1D,
676 GL_TEXTURE_BINDING_2D,
678 GL_TEXTURE_BLUE_SIZE,
680 GL_TEXTURE_BORDER_COLOR,
681 GL_TEXTURE_COMPONENTS,
682 GL_TEXTURE_COORD_ARRAY,
683 GL_TEXTURE_COORD_ARRAY_COUNT_EXT,
684 GL_TEXTURE_COORD_ARRAY_EXT,
685 GL_TEXTURE_COORD_ARRAY_POINTER,
686 GL_TEXTURE_COORD_ARRAY_POINTER_EXT,
687 GL_TEXTURE_COORD_ARRAY_SIZE,
688 GL_TEXTURE_COORD_ARRAY_SIZE_EXT,
689 GL_TEXTURE_COORD_ARRAY_STRIDE,
690 GL_TEXTURE_COORD_ARRAY_STRIDE_EXT,
691 GL_TEXTURE_COORD_ARRAY_TYPE,
692 GL_TEXTURE_COORD_ARRAY_TYPE_EXT,
694 GL_TEXTURE_ENV_COLOR,
701 GL_TEXTURE_GREEN_SIZE,
703 GL_TEXTURE_INTENSITY_SIZE,
704 GL_TEXTURE_INTERNAL_FORMAT,
705 GL_TEXTURE_LUMINANCE_SIZE,
706 GL_TEXTURE_MAG_FILTER,
708 GL_TEXTURE_MIN_FILTER,
712 GL_TEXTURE_STACK_DEPTH,
723 GL_UNPACK_ROW_LENGTH,
724 GL_UNPACK_SKIP_PIXELS,
726 GL_UNPACK_SWAP_BYTES,
735 GL_VERTEX_ARRAY_COUNT_EXT,
737 GL_VERTEX_ARRAY_POINTER,
738 GL_VERTEX_ARRAY_POINTER_EXT,
739 GL_VERTEX_ARRAY_SIZE,
740 GL_VERTEX_ARRAY_SIZE_EXT,
741 GL_VERTEX_ARRAY_STRIDE,
742 GL_VERTEX_ARRAY_STRIDE_EXT,
743 GL_VERTEX_ARRAY_TYPE,
744 GL_VERTEX_ARRAY_TYPE_EXT,
754 void glAccum (GLenum op, GLfloat value);
755 void glAlphaFunc (GLenum func, GLclampf ref);
756 GLboolean glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences);
757 void glArrayElement (GLint i);
758 void glBegin (GLenum mode);
759 void glBindTexture (GLenum target, GLuint texture);
760 void glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
761 void glBlendFunc (GLenum sfactor, GLenum dfactor);
762 void glCallList (GLuint list);
763 void glCallLists (GLsizei n, GLenum type, const GLvoid *lists);
764 void glClear (GLbitfield mask);
765 void glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
766 void glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
767 void glClearDepth (GLclampd depth);
768 void glClearIndex (GLfloat c);
769 void glClearStencil (GLint s);
770 void glClipPlane (GLenum plane, const GLdouble *equation);
771 void glColor3b (GLbyte red, GLbyte green, GLbyte blue);
772 void glColor3bv (const GLbyte *v);
773 void glColor3d (GLdouble red, GLdouble green, GLdouble blue);
774 void glColor3dv (const GLdouble *v);
775 void glColor3f (GLfloat red, GLfloat green, GLfloat blue);
776 void glColor3fv (const GLfloat *v);
777 void glColor3i (GLint red, GLint green, GLint blue);
778 void glColor3iv (const GLint *v);
779 void glColor3s (GLshort red, GLshort green, GLshort blue);
780 void glColor3sv (const GLshort *v);
781 void glColor3ub (GLubyte red, GLubyte green, GLubyte blue);
782 void glColor3ubv (const GLubyte *v);
783 void glColor3ui (GLuint red, GLuint green, GLuint blue);
784 void glColor3uiv (const GLuint *v);
785 void glColor3us (GLushort red, GLushort green, GLushort blue);
786 void glColor3usv (const GLushort *v);
787 void glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
788 void glColor4bv (const GLbyte *v);
789 void glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
790 void glColor4dv (const GLdouble *v);
791 void glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
792 void glColor4fv (const GLfloat *v);
793 void glColor4i (GLint red, GLint green, GLint blue, GLint alpha);
794 void glColor4iv (const GLint *v);
795 void glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha);
796 void glColor4sv (const GLshort *v);
797 void glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
798 void glColor4ubv (const GLubyte *v);
799 void glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha);
800 void glColor4uiv (const GLuint *v);
801 void glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha);
802 void glColor4usv (const GLushort *v);
803 void glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
804 void glColorMaterial (GLenum face, GLenum mode);
805 void glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
806 void glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
807 void glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
808 void glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
809 void glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
810 void glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
811 void glCullFace (GLenum mode);
812 void glDeleteLists (GLuint list, GLsizei range);
813 void glDeleteTextures (GLsizei n, const GLuint *textures);
814 void glDepthFunc (GLenum func);
815 void glDepthMask (GLboolean flag);
816 void glDepthRange (GLclampd zNear, GLclampd zFar);
817 void glDisable (GLenum cap);
818 void glDisableClientState (GLenum array);
819 void glDrawArrays (GLenum mode, GLint first, GLsizei count);
820 void glDrawBuffer (GLenum mode);
821 void glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
822 void glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
823 void glEdgeFlag (GLboolean flag);
824 void glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer);
825 void glEdgeFlagv (const GLboolean *flag);
826 void glEnable (GLenum cap);
827 void glEnableClientState (GLenum array);
829 void glEndList (void);
830 void glEvalCoord1d (GLdouble u);
831 void glEvalCoord1dv (const GLdouble *u);
832 void glEvalCoord1f (GLfloat u);
833 void glEvalCoord1fv (const GLfloat *u);
834 void glEvalCoord2d (GLdouble u, GLdouble v);
835 void glEvalCoord2dv (const GLdouble *u);
836 void glEvalCoord2f (GLfloat u, GLfloat v);
837 void glEvalCoord2fv (const GLfloat *u);
838 void glEvalMesh1 (GLenum mode, GLint i1, GLint i2);
839 void glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
840 void glEvalPoint1 (GLint i);
841 void glEvalPoint2 (GLint i, GLint j);
842 void glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer);
843 void glFinish (void);
845 void glFogf (GLenum pname, GLfloat param);
846 void glFogfv (GLenum pname, const GLfloat *params);
847 void glFogi (GLenum pname, GLint param);
848 void glFogiv (GLenum pname, const GLint *params);
849 void glFrontFace (GLenum mode);
850 void glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
851 GLuint glGenLists (GLsizei range);
852 void glGenTextures (GLsizei n, GLuint *textures);
853 void glGetBooleanv (GLenum pname, GLboolean *params);
854 void glGetClipPlane (GLenum plane, GLdouble *equation);
855 void glGetDoublev (GLenum pname, GLdouble *params);
856 GLenum glGetError (void);
857 void glGetFloatv (GLenum pname, GLfloat *params);
858 void glGetIntegerv (GLenum pname, GLint *params);
859 void glGetLightfv (GLenum light, GLenum pname, GLfloat *params);
860 void glGetLightiv (GLenum light, GLenum pname, GLint *params);
861 void glGetMapdv (GLenum target, GLenum query, GLdouble *v);
862 void glGetMapfv (GLenum target, GLenum query, GLfloat *v);
863 void glGetMapiv (GLenum target, GLenum query, GLint *v);
864 void glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params);
865 void glGetMaterialiv (GLenum face, GLenum pname, GLint *params);
866 void glGetPixelMapfv (GLenum map, GLfloat *values);
867 void glGetPixelMapuiv (GLenum map, GLuint *values);
868 void glGetPixelMapusv (GLenum map, GLushort *values);
869 void glGetPointerv (GLenum pname, GLvoid* *params);
870 void glGetPolygonStipple (GLubyte *mask);
871 const GLubyte * glGetString (GLenum name);
872 void glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params);
873 void glGetTexEnviv (GLenum target, GLenum pname, GLint *params);
874 void glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params);
875 void glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params);
876 void glGetTexGeniv (GLenum coord, GLenum pname, GLint *params);
877 void glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
878 void glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
879 void glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
880 void glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
881 void glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
882 void glHint (GLenum target, GLenum mode);
883 void glIndexMask (GLuint mask);
884 void glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
885 void glIndexd (GLdouble c);
886 void glIndexdv (const GLdouble *c);
887 void glIndexf (GLfloat c);
888 void glIndexfv (const GLfloat *c);
889 void glIndexi (GLint c);
890 void glIndexiv (const GLint *c);
891 void glIndexs (GLshort c);
892 void glIndexsv (const GLshort *c);
893 void glIndexub (GLubyte c);
894 void glIndexubv (const GLubyte *c);
895 void glInitNames (void);
896 void glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer);
897 GLboolean glIsEnabled (GLenum cap);
898 GLboolean glIsList (GLuint list);
899 GLboolean glIsTexture (GLuint texture);
900 void glLightModelf (GLenum pname, GLfloat param);
901 void glLightModelfv (GLenum pname, const GLfloat *params);
902 void glLightModeli (GLenum pname, GLint param);
903 void glLightModeliv (GLenum pname, const GLint *params);
904 void glLightf (GLenum light, GLenum pname, GLfloat param);
905 void glLightfv (GLenum light, GLenum pname, const GLfloat *params);
906 void glLighti (GLenum light, GLenum pname, GLint param);
907 void glLightiv (GLenum light, GLenum pname, const GLint *params);
908 void glLineStipple (GLint factor, GLushort pattern);
909 void glLineWidth (GLfloat width);
910 void glListBase (GLuint base);
911 void glLoadIdentity (void);
912 void glLoadMatrixd (const GLdouble *m);
913 void glLoadMatrixf (const GLfloat *m);
914 void glLoadName (GLuint name);
915 void glLogicOp (GLenum opcode);
916 void glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
917 void glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
918 void glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
919 void glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
920 void glMapGrid1d (GLint un, GLdouble u1, GLdouble u2);
921 void glMapGrid1f (GLint un, GLfloat u1, GLfloat u2);
922 void glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
923 void glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
924 void glMaterialf (GLenum face, GLenum pname, GLfloat param);
925 void glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
926 void glMateriali (GLenum face, GLenum pname, GLint param);
927 void glMaterialiv (GLenum face, GLenum pname, const GLint *params);
928 void glMatrixMode (GLenum mode);
929 void glMultMatrixd (const GLdouble *m);
930 void glMultMatrixf (const GLfloat *m);
931 void glNewList (GLuint list, GLenum mode);
932 void glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz);
933 void glNormal3bv (const GLbyte *v);
934 void glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz);
935 void glNormal3dv (const GLdouble *v);
936 void glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
937 void glNormal3fv (const GLfloat *v);
938 void glNormal3i (GLint nx, GLint ny, GLint nz);
939 void glNormal3iv (const GLint *v);
940 void glNormal3s (GLshort nx, GLshort ny, GLshort nz);
941 void glNormal3sv (const GLshort *v);
942 void glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
943 void glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
944 void glPassThrough (GLfloat token);
945 void glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values);
946 void glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values);
947 void glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values);
948 void glPixelStoref (GLenum pname, GLfloat param);
949 void glPixelStorei (GLenum pname, GLint param);
950 void glPixelTransferf (GLenum pname, GLfloat param);
951 void glPixelTransferi (GLenum pname, GLint param);
952 void glPixelZoom (GLfloat xfactor, GLfloat yfactor);
953 void glPointSize (GLfloat size);
954 void glPolygonMode (GLenum face, GLenum mode);
955 void glPolygonOffset (GLfloat factor, GLfloat units);
956 void glPolygonStipple (const GLubyte *mask);
957 void glPopAttrib (void);
958 void glPopClientAttrib (void);
959 void glPopMatrix (void);
960 void glPopName (void);
961 void glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities);
962 void glPushAttrib (GLbitfield mask);
963 void glPushClientAttrib (GLbitfield mask);
964 void glPushMatrix (void);
965 void glPushName (GLuint name);
966 void glRasterPos2d (GLdouble x, GLdouble y);
967 void glRasterPos2dv (const GLdouble *v);
968 void glRasterPos2f (GLfloat x, GLfloat y);
969 void glRasterPos2fv (const GLfloat *v);
970 void glRasterPos2i (GLint x, GLint y);
971 void glRasterPos2iv (const GLint *v);
972 void glRasterPos2s (GLshort x, GLshort y);
973 void glRasterPos2sv (const GLshort *v);
974 void glRasterPos3d (GLdouble x, GLdouble y, GLdouble z);
975 void glRasterPos3dv (const GLdouble *v);
976 void glRasterPos3f (GLfloat x, GLfloat y, GLfloat z);
977 void glRasterPos3fv (const GLfloat *v);
978 void glRasterPos3i (GLint x, GLint y, GLint z);
979 void glRasterPos3iv (const GLint *v);
980 void glRasterPos3s (GLshort x, GLshort y, GLshort z);
981 void glRasterPos3sv (const GLshort *v);
982 void glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
983 void glRasterPos4dv (const GLdouble *v);
984 void glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
985 void glRasterPos4fv (const GLfloat *v);
986 void glRasterPos4i (GLint x, GLint y, GLint z, GLint w);
987 void glRasterPos4iv (const GLint *v);
988 void glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w);
989 void glRasterPos4sv (const GLshort *v);
990 void glReadBuffer (GLenum mode);
991 void glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
992 void glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
993 void glRectdv (const GLdouble *v1, const GLdouble *v2);
994 void glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
995 void glRectfv (const GLfloat *v1, const GLfloat *v2);
996 void glRecti (GLint x1, GLint y1, GLint x2, GLint y2);
997 void glRectiv (const GLint *v1, const GLint *v2);
998 void glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2);
999 void glRectsv (const GLshort *v1, const GLshort *v2);
1000 GLint glRenderMode (GLenum mode);
1001 void glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
1002 void glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
1003 void glScaled (GLdouble x, GLdouble y, GLdouble z);
1004 void glScalef (GLfloat x, GLfloat y, GLfloat z);
1005 void glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
1006 void glSelectBuffer (GLsizei size, GLuint *buffer);
1007 void glShadeModel (GLenum mode);
1008 void glStencilFunc (GLenum func, GLint ref, GLuint mask);
1009 void glStencilMask (GLuint mask);
1010 void glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
1011 void glTexCoord1d (GLdouble s);
1012 void glTexCoord1dv (const GLdouble *v);
1013 void glTexCoord1f (GLfloat s);
1014 void glTexCoord1fv (const GLfloat *v);
1015 void glTexCoord1i (GLint s);
1016 void glTexCoord1iv (const GLint *v);
1017 void glTexCoord1s (GLshort s);
1018 void glTexCoord1sv (const GLshort *v);
1019 void glTexCoord2d (GLdouble s, GLdouble t);
1020 void glTexCoord2dv (const GLdouble *v);
1021 void glTexCoord2f (GLfloat s, GLfloat t);
1022 void glTexCoord2fv (const GLfloat *v);
1023 void glTexCoord2i (GLint s, GLint t);
1024 void glTexCoord2iv (const GLint *v);
1025 void glTexCoord2s (GLshort s, GLshort t);
1026 void glTexCoord2sv (const GLshort *v);
1027 void glTexCoord3d (GLdouble s, GLdouble t, GLdouble r);
1028 void glTexCoord3dv (const GLdouble *v);
1029 void glTexCoord3f (GLfloat s, GLfloat t, GLfloat r);
1030 void glTexCoord3fv (const GLfloat *v);
1031 void glTexCoord3i (GLint s, GLint t, GLint r);
1032 void glTexCoord3iv (const GLint *v);
1033 void glTexCoord3s (GLshort s, GLshort t, GLshort r);
1034 void glTexCoord3sv (const GLshort *v);
1035 void glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q);
1036 void glTexCoord4dv (const GLdouble *v);
1037 void glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q);
1038 void glTexCoord4fv (const GLfloat *v);
1039 void glTexCoord4i (GLint s, GLint t, GLint r, GLint q);
1040 void glTexCoord4iv (const GLint *v);
1041 void glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q);
1042 void glTexCoord4sv (const GLshort *v);
1043 void glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
1044 void glTexEnvf (GLenum target, GLenum pname, GLfloat param);
1045 void glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
1046 void glTexEnvi (GLenum target, GLenum pname, GLint param);
1047 void glTexEnviv (GLenum target, GLenum pname, const GLint *params);
1048 void glTexGend (GLenum coord, GLenum pname, GLdouble param);
1049 void glTexGendv (GLenum coord, GLenum pname, const GLdouble *params);
1050 void glTexGenf (GLenum coord, GLenum pname, GLfloat param);
1051 void glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params);
1052 void glTexGeni (GLenum coord, GLenum pname, GLint param);
1053 void glTexGeniv (GLenum coord, GLenum pname, const GLint *params);
1054 void glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
1055 void glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
1056 void glTexParameterf (GLenum target, GLenum pname, GLfloat param);
1057 void glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
1058 void glTexParameteri (GLenum target, GLenum pname, GLint param);
1059 void glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
1060 void glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
1061 void glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
1062 void glTranslated (GLdouble x, GLdouble y, GLdouble z);
1063 void glTranslatef (GLfloat x, GLfloat y, GLfloat z);
1064 void glVertex2d (GLdouble x, GLdouble y);
1065 void glVertex2dv (const GLdouble *v);
1066 void glVertex2f (GLfloat x, GLfloat y);
1067 void glVertex2fv (const GLfloat *v);
1068 void glVertex2i (GLint x, GLint y);
1069 void glVertex2iv (const GLint *v);
1070 void glVertex2s (GLshort x, GLshort y);
1071 void glVertex2sv (const GLshort *v);
1072 void glVertex3d (GLdouble x, GLdouble y, GLdouble z);
1073 void glVertex3dv (const GLdouble *v);
1074 void glVertex3f (GLfloat x, GLfloat y, GLfloat z);
1075 void glVertex3fv (const GLfloat *v);
1076 void glVertex3i (GLint x, GLint y, GLint z);
1077 void glVertex3iv (const GLint *v);
1078 void glVertex3s (GLshort x, GLshort y, GLshort z);
1079 void glVertex3sv (const GLshort *v);
1080 void glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1081 void glVertex4dv (const GLdouble *v);
1082 void glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
1083 void glVertex4fv (const GLfloat *v);
1084 void glVertex4i (GLint x, GLint y, GLint z, GLint w);
1085 void glVertex4iv (const GLint *v);
1086 void glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w);
1087 void glVertex4sv (const GLshort *v);
1088 void glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
1089 void glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
1091 //---------------------------------------------------------------------------
1092 /////////////////////////////////////////////////////////////////////////////
1095 // Revision 1.2 1999/05/01 04:40:57 RD
1096 // wxPython 2.0b9, second phase (gtk)
1097 // Added gobs of stuff, see wxPython/README.txt for details
1099 // Revision 1.1 1999/04/30 03:29:18 RD
1101 // wxPython 2.0b9, first phase (win32)
1102 // Added gobs of stuff, see wxPython/README.txt for details