Rev 8408 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8408 | Rev 8442 | ||
---|---|---|---|
Line 649... | Line 649... | ||
649 | GL_TEXTURE_BIT = 0x00040000, |
649 | GL_TEXTURE_BIT = 0x00040000, |
650 | GL_SCISSOR_BIT = 0x00080000, |
650 | GL_SCISSOR_BIT = 0x00080000, |
651 | GL_ALL_ATTRIB_BITS = 0x000fffff |
651 | GL_ALL_ATTRIB_BITS = 0x000fffff |
652 | }; |
652 | }; |
Line -... | Line 653... | ||
- | 653 | ||
- | 654 | /* some types */ |
|
- | 655 | ||
- | 656 | typedef int GLenum; |
|
- | 657 | typedef void GLvoid; |
|
- | 658 | typedef unsigned char GLboolean; |
|
- | 659 | typedef signed char GLbyte; /* 1-byte signed */ |
|
- | 660 | typedef short int GLshort; /* 2-byte signed */ |
|
- | 661 | typedef long int GLint; /* 4-byte signed */ |
|
- | 662 | typedef unsigned char GLubyte; /* 1-byte unsigned */ |
|
- | 663 | typedef unsigned short int GLushort; /* 2-byte unsigned */ |
|
- | 664 | typedef unsigned long int GLuint; /* 4-byte unsigned */ |
|
- | 665 | typedef float GLfloat; /* single precision float */ |
|
- | 666 | typedef double GLdouble; /* double precision float */ |
|
- | 667 | typedef int GLsizei; |
|
653 | 668 | ||
654 | struct ZBuffer |
669 | struct ZBuffer |
655 | { |
670 | { |
656 | long int xsize, ysize; |
671 | long int xsize, ysize; |
657 | int linesize; //line size, in bytes |
672 | int linesize; //line size, in bytes |
Line 699... | Line 714... | ||
699 | void (__stdcall* glVertex4f)(float x, float y, float z, float w) = (void (__stdcall*)(float, float, float, float))&"glVertex4f"; |
714 | void (__stdcall* glVertex4f)(float x, float y, float z, float w) = (void (__stdcall*)(float, float, float, float))&"glVertex4f"; |
700 | void (__stdcall* glVertex4d)(double x, double y, double z, double w) = (void (__stdcall*)(double, double, double, double))&"glVertex4d"; |
715 | void (__stdcall* glVertex4d)(double x, double y, double z, double w) = (void (__stdcall*)(double, double, double, double))&"glVertex4d"; |
701 | void (__stdcall* glVertex4fv)(float* v) = (void (__stdcall*)(float*))&"glVertex4fv"; |
716 | void (__stdcall* glVertex4fv)(float* v) = (void (__stdcall*)(float*))&"glVertex4fv"; |
702 | void (__stdcall* glVertex4dv)(double* v) = (void (__stdcall*)(double*))&"glVertex4dv"; |
717 | void (__stdcall* glVertex4dv)(double* v) = (void (__stdcall*)(double*))&"glVertex4dv"; |
703 | void (__stdcall* glColor3f)(float r, float g, float b) = (void (__stdcall*)(float, float, float))&"glColor3f"; |
718 | void (__stdcall* glColor3f)(float r, float g, float b) = (void (__stdcall*)(float, float, float))&"glColor3f"; |
704 | //void (__stdcall* glColor3d)(...) = (void (__stdcall*)(...))&"glColor3d"; |
719 | void (__stdcall* glColor3d)(double r, double g, double b) = (void (__stdcall*)(double, double, double))&"glColor3d"; |
705 | //void (__stdcall* glColor3fv)(...) = (void (__stdcall*)(...))&"glColor3fv"; |
720 | void (__stdcall* glColor3fv)(float* v) = (void (__stdcall*)(float*))&"glColor3fv"; |
706 | //void (__stdcall* glColor3dv)(...) = (void (__stdcall*)(...))&"glColor3dv"; |
721 | void (__stdcall* glColor3dv)(double* v) = (void (__stdcall*)(double*))&"glColor3dv"; |
707 | void (__stdcall* glColor3ub)(unsigned char r, unsigned char g, unsigned char b) = (void (__stdcall*)(unsigned char, unsigned char, unsigned char))&"glColor3ub"; |
722 | void (__stdcall* glColor3ub)(unsigned char r, unsigned char g, unsigned char b) = (void (__stdcall*)(unsigned char, unsigned char, unsigned char))&"glColor3ub"; |
708 | //void (__stdcall* glColor4f)(...) = (void (__stdcall*)(...))&"glColor4f"; |
723 | void (__stdcall* glColor4f)(float r, float g, float b, float a) = (void (__stdcall*)(float, float, float, float))&"glColor4f"; |
709 | //void (__stdcall* glColor4d)(...) = (void (__stdcall*)(...))&"glColor4d"; |
724 | void (__stdcall* glColor4d)(double r, double g, double b, double a) = (void (__stdcall*)(double, double, double, double))&"glColor4d"; |
710 | //void (__stdcall* glColor4fv)(...) = (void (__stdcall*)(...))&"glColor4fv"; |
725 | void (__stdcall* glColor4fv)(float* v) = (void (__stdcall*)(float*))&"glColor4fv"; |
711 | //void (__stdcall* glColor4dv)(...) = (void (__stdcall*)(...))&"glColor4dv"; |
726 | void (__stdcall* glColor4dv)(double* v) = (void (__stdcall*)(double*))&"glColor4dv"; |
712 | void (__stdcall* glNormal3f)(float x, float y, float z) = (void (__stdcall*)(float, float, float))&"glNormal3f"; |
727 | void (__stdcall* glNormal3f)(float x, float y, float z) = (void (__stdcall*)(float, float, float))&"glNormal3f"; |
713 | //void (__stdcall* glNormal3d)(...) = (void (__stdcall*)(...))&"glNormal3d"; |
728 | void (__stdcall* glNormal3d)(double x, double y, double z) = (void (__stdcall*)(double, double, double))&"glNormal3d"; |
714 | //void (__stdcall* glNormal3fv)(...) = (void (__stdcall*)(...))&"glNormal3fv"; |
729 | void (__stdcall* glNormal3fv)(float* v) = (void (__stdcall*)(float*))&"glNormal3fv"; |
715 | //void (__stdcall* glNormal3dv)(...) = (void (__stdcall*)(...))&"glNormal3dv"; |
730 | void (__stdcall* glNormal3dv)(double* v) = (void (__stdcall*)(double*))&"glNormal3dv"; |
716 | //void (__stdcall* glTexCoord1f)(...) = (void (__stdcall*)(...))&"glTexCoord1f"; |
731 | void (__stdcall* glTexCoord1f)(float s) = (void (__stdcall*)(float))&"glTexCoord1f"; |
717 | //void (__stdcall* glTexCoord1d)(...) = (void (__stdcall*)(...))&"glTexCoord1d"; |
732 | void (__stdcall* glTexCoord1d)(double s) = (void (__stdcall*)(double))&"glTexCoord1d"; |
718 | //void (__stdcall* glTexCoord1fv)(...) = (void (__stdcall*)(...))&"glTexCoord1fv"; |
733 | void (__stdcall* glTexCoord1fv)(float* v) = (void (__stdcall*)(float*))&"glTexCoord1fv"; |
719 | //void (__stdcall* glTexCoord1dv)(...) = (void (__stdcall*)(...))&"glTexCoord1dv"; |
734 | void (__stdcall* glTexCoord1dv)(double* v) = (void (__stdcall*)(double*))&"glTexCoord1dv"; |
720 | void (__stdcall* glTexCoord2f)(float s, float t) = (void (__stdcall*)(float, float))&"glTexCoord2f"; |
735 | void (__stdcall* glTexCoord2f)(float s, float t) = (void (__stdcall*)(float, float))&"glTexCoord2f"; |
721 | //void (__stdcall* glTexCoord2d)(...) = (void (__stdcall*)(...))&"glTexCoord2d"; |
736 | void (__stdcall* glTexCoord2d)(double s, double t) = (void (__stdcall*)(double, double))&"glTexCoord2d"; |
722 | void (__stdcall* glTexCoord2fv)(float* v) = (void (__stdcall*)(float*))&"glTexCoord2fv"; |
737 | void (__stdcall* glTexCoord2fv)(float* v) = (void (__stdcall*)(float*))&"glTexCoord2fv"; |
723 | //void (__stdcall* glTexCoord2dv)(...) = (void (__stdcall*)(...))&"glTexCoord2dv"; |
738 | void (__stdcall* glTexCoord2dv)(double* v) = (void (__stdcall*)(double*))&"glTexCoord2dv"; |
724 | //void (__stdcall* glTexCoord3f)(...) = (void (__stdcall*)(...))&"glTexCoord3f"; |
739 | void (__stdcall* glTexCoord3f)(float s, float t, float r) = (void (__stdcall*)(float, float, float))&"glTexCoord3f"; |
725 | //void (__stdcall* glTexCoord3d)(...) = (void (__stdcall*)(...))&"glTexCoord3d"; |
740 | void (__stdcall* glTexCoord3d)(double s, double t, double r) = (void (__stdcall*)(double, double, double))&"glTexCoord3d"; |
726 | //void (__stdcall* glTexCoord3fv)(...) = (void (__stdcall*)(...))&"glTexCoord3fv"; |
741 | void (__stdcall* glTexCoord3fv)(float* v) = (void (__stdcall*)(float*))&"glTexCoord3fv"; |
727 | //void (__stdcall* glTexCoord3dv)(...) = (void (__stdcall*)(...))&"glTexCoord3dv"; |
742 | void (__stdcall* glTexCoord3dv)(double* v) = (void (__stdcall*)(double*))&"glTexCoord3dv"; |
728 | void (__stdcall* glTexCoord4f)(float s, float t, float r, float q) = (void (__stdcall*)(float, float, float, float))&"glTexCoord4f"; |
743 | void (__stdcall* glTexCoord4f)(float s, float t, float r, float q) = (void (__stdcall*)(float, float, float, float))&"glTexCoord4f"; |
729 | //void (__stdcall* glTexCoord4d)(...) = (void (__stdcall*)(...))&"glTexCoord4d"; |
744 | void (__stdcall* glTexCoord4d)(double s, double t, double r, double q) = (void (__stdcall*)(double, double, double, double))&"glTexCoord4d"; |
730 | //void (__stdcall* glTexCoord4fv)(...) = (void (__stdcall*)(...))&"glTexCoord4fv"; |
745 | void (__stdcall* glTexCoord4fv)(float* v) = (void (__stdcall*)(float*))&"glTexCoord4fv"; |
731 | //void (__stdcall* glTexCoord4dv)(...) = (void (__stdcall*)(...))&"glTexCoord4dv"; |
746 | void (__stdcall* glTexCoord4dv)(double* v) = (void (__stdcall*)(double*))&"glTexCoord4dv"; |
732 | void (__stdcall* glEdgeFlag)(int flag) = (void (__stdcall*)(int))&"glEdgeFlag"; |
747 | void (__stdcall* glEdgeFlag)(int flag) = (void (__stdcall*)(int))&"glEdgeFlag"; |
733 | void (__stdcall* glMatrixMode)(int mode) = (void (__stdcall*)(int))&"glMatrixMode"; |
748 | void (__stdcall* glMatrixMode)(int mode) = (void (__stdcall*)(int))&"glMatrixMode"; |
734 | void (__stdcall* glLoadMatrixf)(const float* m) = (void (__stdcall*)(const float*))&"glLoadMatrixf"; |
749 | void (__stdcall* glLoadMatrixf)(const float* m) = (void (__stdcall*)(const float*))&"glLoadMatrixf"; |
735 | void (__stdcall* glLoadIdentity)() = (void (__stdcall*)())&"glLoadIdentity"; |
750 | void (__stdcall* glLoadIdentity)() = (void (__stdcall*)())&"glLoadIdentity"; |
736 | //void (__stdcall* glMultMatrixf)(...) = (void (__stdcall*)(...))&"glMultMatrixf"; |
751 | //void (__stdcall* glMultMatrixf)(...) = (void (__stdcall*)(...))&"glMultMatrixf"; |
Line 759... | Line 774... | ||
759 | //void (__stdcall* glDeleteTextures)(...) = (void (__stdcall*)(...))&"glDeleteTextures"; |
774 | //void (__stdcall* glDeleteTextures)(...) = (void (__stdcall*)(...))&"glDeleteTextures"; |
760 | void (__stdcall* glBindTexture)(int target, int texture) = (void (__stdcall*)(int, int))&"glBindTexture"; |
775 | void (__stdcall* glBindTexture)(int target, int texture) = (void (__stdcall*)(int, int))&"glBindTexture"; |
761 | void (__stdcall* glTexImage2D)(int target, int level, int components, int width, int height, int border, int format, int type, void *pixels) = (void (__stdcall*)(int, int, int, int, int, int, int, int, void*))&"glTexImage2D"; |
776 | void (__stdcall* glTexImage2D)(int target, int level, int components, int width, int height, int border, int format, int type, void *pixels) = (void (__stdcall*)(int, int, int, int, int, int, int, int, void*))&"glTexImage2D"; |
762 | void (__stdcall* glTexEnvi)(int target, int pname, int param) = (void (__stdcall*)(int, int, int))&"glTexEnvi"; |
777 | void (__stdcall* glTexEnvi)(int target, int pname, int param) = (void (__stdcall*)(int, int, int))&"glTexEnvi"; |
763 | void (__stdcall* glTexParameteri)(int target, int pname, int param) = (void (__stdcall*)(int, int, int))&"glTexParameteri"; |
778 | void (__stdcall* glTexParameteri)(int target, int pname, int param) = (void (__stdcall*)(int, int, int))&"glTexParameteri"; |
764 | //void (__stdcall* glPixelStorei)(...) = (void (__stdcall*)(...))&"glPixelStorei"; |
779 | void (__stdcall* glPixelStorei)(int pname, int param) = (void (__stdcall*)(int, int))&"glPixelStorei"; |
765 | void (__stdcall* glMaterialfv)(int mode, int type, float* v) = (void (__stdcall*)(int, int, float*))&"glMaterialfv"; |
780 | void (__stdcall* glMaterialfv)(int mode, int type, float* v) = (void (__stdcall*)(int, int, float*))&"glMaterialfv"; |
766 | void (__stdcall* glMaterialf)(int mode, int type, float v) = (void (__stdcall*)(int, int, float))&"glMaterialf"; |
781 | void (__stdcall* glMaterialf)(int mode, int type, float v) = (void (__stdcall*)(int, int, float))&"glMaterialf"; |
767 | void (__stdcall* glColorMaterial)(int mode, int type) = (void (__stdcall*)(int, int))&"glColorMaterial"; |
782 | void (__stdcall* glColorMaterial)(int mode, int type) = (void (__stdcall*)(int, int))&"glColorMaterial"; |
768 | void (__stdcall* glLightfv)(int light, int type, float* v) = (void (__stdcall*)(int, int, float*))&"glLightfv"; |
783 | void (__stdcall* glLightfv)(int light, int type, float* v) = (void (__stdcall*)(int, int, float*))&"glLightfv"; |
769 | //void (__stdcall* glLightf)(...) = (void (__stdcall*)(...))&"glLightf"; |
784 | void (__stdcall* glLightf)(int light, int type, float v) = (void (__stdcall*)(int, int, float))&"glLightf"; |
770 | //void (__stdcall* glLightModeli)(...) = (void (__stdcall*)(...))&"glLightModeli"; |
785 | void (__stdcall* glLightModeli)(int pname, int param) = (void (__stdcall*)(int, int))&"glLightModeli"; |
771 | void (__stdcall* glLightModelfv)(int pname, float* param) = (void (__stdcall*)(int, float*))&"glLightModelfv"; |
786 | void (__stdcall* glLightModelfv)(int pname, float* param) = (void (__stdcall*)(int, float*))&"glLightModelfv"; |
772 | //void (__stdcall* glFlush)(...) = (void (__stdcall*)(...))&"glFlush"; |
787 | void (__stdcall* glFlush)() = (void (__stdcall*)())&"glFlush"; |
773 | //void (__stdcall* glHint)(...) = (void (__stdcall*)(...))&"glHint"; |
788 | void (__stdcall* glHint)(int target, int mode) = (void (__stdcall*)(int, int))&"glHint"; |
774 | //void (__stdcall* glGetIntegerv)(...) = (void (__stdcall*)(...))&"glGetIntegerv"; |
789 | void (__stdcall* glGetIntegerv)(int pname, int *params) = (void (__stdcall*)(int, int*))&"glGetIntegerv"; |
775 | //void (__stdcall* glGetFloatv)(...) = (void (__stdcall*)(...))&"glGetFloatv"; |
790 | //void (__stdcall* glGetFloatv)(...) = (void (__stdcall*)(...))&"glGetFloatv"; |
776 | //void (__stdcall* glFrontFace)(...) = (void (__stdcall*)(...))&"glFrontFace"; |
791 | void (__stdcall* glFrontFace)(int mode) = (void (__stdcall*)(int))&"glFrontFace"; |
777 | //void (__stdcall* glEnableClientState)(...) = (void (__stdcall*)(...))&"glEnableClientState"; |
792 | void (__stdcall* glEnableClientState)(GLenum array) = (void (__stdcall*)(GLenum))&"glEnableClientState"; |
778 | //void (__stdcall* glDisableClientState)(...) = (void (__stdcall*)(...))&"glDisableClientState"; |
793 | void (__stdcall* glDisableClientState)(GLenum array) = (void (__stdcall*)(GLenum))&"glDisableClientState"; |
779 | //void (__stdcall* glArrayElement)(...) = (void (__stdcall*)(...))&"glArrayElement"; |
794 | void (__stdcall* glArrayElement)(GLint index) = (void (__stdcall*)(GLint))&"glArrayElement"; |
780 | //void (__stdcall* glDrawArrays)(...) = (void (__stdcall*)(...))&"glDrawArrays"; |
795 | void (__stdcall* glDrawArrays)(GLenum mode, GLint first, GLsizei count) = (void (__stdcall*)(GLenum, GLint, GLsizei))&"glDrawArrays"; |
781 | //void (__stdcall* glDrawElements)(...) = (void (__stdcall*)(...))&"glDrawElements"; |
796 | void (__stdcall* glDrawElements)(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) = (void (__stdcall*)(GLenum, GLsizei, GLenum, const GLvoid*))&"glDrawElements"; |
782 | //void (__stdcall* glVertexPointer)(...) = (void (__stdcall*)(...))&"glVertexPointer"; |
797 | void (__stdcall* glVertexPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer) = (void (__stdcall*)(GLint, GLenum, GLsizei, const GLvoid*))&"glVertexPointer"; |
783 | //void (__stdcall* glColorPointer)(...) = (void (__stdcall*)(...))&"glColorPointer"; |
798 | void (__stdcall* glColorPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer) = (void (__stdcall*)(GLint, GLenum, GLsizei, const GLvoid*))&"glColorPointer"; |
784 | //void (__stdcall* glNormalPointer)(...) = (void (__stdcall*)(...))&"glNormalPointer"; |
799 | void (__stdcall* glNormalPointer)(GLenum type, GLsizei stride, const GLvoid* pointer) = (void (__stdcall*)(GLenum, GLsizei, const GLvoid*))&"glNormalPointer"; |
785 | //void (__stdcall* glTexCoordPointer)(...) = (void (__stdcall*)(...))&"glTexCoordPointer"; |
800 | void (__stdcall* glTexCoordPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer) = (void (__stdcall*)(GLint, GLenum, GLsizei, const GLvoid*))&"glTexCoordPointer"; |
786 | //void (__stdcall* glPolygonOffset)(...) = (void (__stdcall*)(...))&"glPolygonOffset"; |
801 | //void (__stdcall* glPolygonOffset)(...) = (void (__stdcall*)(...))&"glPolygonOffset"; |
787 | //void (__stdcall* glOrtho)(...) = (void (__stdcall*)(...))&"glOrtho"; |
802 | //void (__stdcall* glOrtho)(...) = (void (__stdcall*)(...))&"glOrtho"; |
788 | //void (__stdcall* glDebug)(...) = (void (__stdcall*)(...))&"glDebug"; |
803 | //void (__stdcall* glDebug)(...) = (void (__stdcall*)(...))&"glDebug"; |
789 | //void (__stdcall* glInit)(...) = (void (__stdcall*)(...))&"glInit"; |
804 | //void (__stdcall* glInit)(...) = (void (__stdcall*)(...))&"glInit"; |
790 | //void (__stdcall* glClose)(...) = (void (__stdcall*)(...))&"glClose"; |
805 | //void (__stdcall* glClose)(...) = (void (__stdcall*)(...))&"glClose"; |