include/SDL_opengles.h
changeset 3087 0b6f51c29267
parent 3083 0bc41e0361d3
child 3099 82e60908fab1
     1.1 --- a/include/SDL_opengles.h	Wed Mar 04 09:35:32 2009 +0000
     1.2 +++ b/include/SDL_opengles.h	Wed Mar 04 15:10:47 2009 +0000
     1.3 @@ -40,10 +40,6 @@
     1.4  #include <OpenGLES/ES1/gl.h>    /* Header File For The OpenGL ES Library */
     1.5  #endif
     1.6  
     1.7 -#if defined(__QNXNTO__) && defined(SDL_VIDEO_OPENGL_ES)
     1.8 -#include <GLES/egl.h>
     1.9 -#endif
    1.10 -
    1.11  #ifndef APIENTRY
    1.12  #define APIENTRY
    1.13  #endif
    1.14 @@ -52,6 +48,9 @@
    1.15  #define GL_APIENTRY
    1.16  #endif
    1.17  
    1.18 +#ifndef GL_API
    1.19 +#define GL_API
    1.20 +#endif /* GL_API */
    1.21  
    1.22  /*
    1.23  ** License Applicability. Except to the extent portions of this file are
    1.24 @@ -659,6 +658,29 @@
    1.25  #define GL_COORD_REPLACE_OES                                    0x8862
    1.26  #endif
    1.27  
    1.28 +/* GL_OES_draw_texture */
    1.29 +#ifndef GL_OES_draw_texture
    1.30 +#define GL_TEXTURE_CROP_RECT_OES                                0x8B9D
    1.31 +#endif /* GL_OES_draw_texture */
    1.32 +
    1.33 +/*  GL_OES_vertex_buffer_object */
    1.34 +#ifndef GL_OES_vertex_buffer_object
    1.35 +#define GL_ARRAY_BUFFER                                         0x8892
    1.36 +#define GL_ELEMENT_ARRAY_BUFFER                                 0x8893
    1.37 +#define GL_ARRAY_BUFFER_BINDING                                 0x8894
    1.38 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING                         0x8895
    1.39 +#define GL_VERTEX_ARRAY_BUFFER_BINDING                          0x8896
    1.40 +#define GL_NORMAL_ARRAY_BUFFER_BINDING                          0x8897
    1.41 +#define GL_COLOR_ARRAY_BUFFER_BINDING                           0x8898
    1.42 +#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING                   0x889A
    1.43 +#define GL_STATIC_DRAW                                          0x88E4
    1.44 +#define GL_DYNAMIC_DRAW                                         0x88E8
    1.45 +#define GL_WRITE_ONLY                                           0x88B9
    1.46 +#define GL_BUFFER_SIZE                                          0x8764
    1.47 +#define GL_BUFFER_USAGE                                         0x8765
    1.48 +#define GL_BUFFER_ACCESS                                        0x88BB
    1.49 +#endif /* GL_OES_vertex_buffer_object */
    1.50 +
    1.51  /*************************************************************/
    1.52  
    1.53  /* Available only in Common profile */
    1.54 @@ -945,6 +967,42 @@
    1.55  #define GL_OES_point_sprite 1
    1.56  #endif
    1.57  
    1.58 +/* GL_OES_draw_texture */
    1.59 +#ifndef GL_OES_draw_texture
    1.60 +#define GL_OES_draw_texture 1
    1.61 +    GL_API void GL_APIENTRY glDrawTexsOES (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
    1.62 +    GL_API void GL_APIENTRY glDrawTexiOES (GLint x, GLint y, GLint z, GLint width, GLint height);
    1.63 +    GL_API void GL_APIENTRY glDrawTexxOES (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
    1.64 +    GL_API void GL_APIENTRY glDrawTexsvOES (const GLshort *coords);
    1.65 +    GL_API void GL_APIENTRY glDrawTexivOES (const GLint *coords);
    1.66 +    GL_API void GL_APIENTRY glDrawTexxvOES (const GLfixed *coords);
    1.67 +    GL_API void GL_APIENTRY glDrawTexfOES (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
    1.68 +    GL_API void GL_APIENTRY glDrawTexfvOES (const GLfloat *coords);
    1.69 +#endif /* GL_OES_draw_texture */
    1.70 +
    1.71 +/* GL_OES_single_precision */
    1.72 +#ifndef GL_OES_single_precision
    1.73 +#define GL_OES_single_precision 1
    1.74 +    GL_API void GL_APIENTRY glDepthRangefOES (GLclampf zNear, GLclampf zFar);
    1.75 +    GL_API void GL_APIENTRY glFrustumfOES (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
    1.76 +    GL_API void GL_APIENTRY glOrthofOES (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
    1.77 +    GL_API void GL_APIENTRY glClipPlanefOES (GLenum plane, const GLfloat *equation);
    1.78 +    GL_API void GL_APIENTRY glGetClipPlanefOES (GLenum pname, GLfloat eqn[4]);
    1.79 +    GL_API void GL_APIENTRY glClearDepthfOES (GLclampf depth);
    1.80 +#endif /* GL_OES_single_precision */
    1.81 +
    1.82 +/* GL_OES_vertex_buffer_object */
    1.83 +#ifndef GL_OES_vertex_buffer_object
    1.84 +#define GL_OES_vertex_buffer_object 1
    1.85 +    GL_API void APIENTRY glBindBufferOES(GLenum, GLuint);
    1.86 +    GL_API void APIENTRY glDeleteBuffersOES(GLsizei, const GLuint *);
    1.87 +    GL_API void APIENTRY glGenBuffersOES(GLsizei, GLuint *);
    1.88 +    GL_API GLboolean APIENTRY glIsBufferOES(GLuint);
    1.89 +    GL_API void APIENTRY glBufferDataOES(GLenum, GLsizeiptr, const GLvoid *, GLenum);
    1.90 +    GL_API void APIENTRY glBufferSubDataOES(GLenum, GLintptr, GLsizeiptr, const GLvoid *);
    1.91 +    GL_API void APIENTRY glGetBufferParameterivOES(GLenum, GLenum, GLint *);
    1.92 +#endif /* GL_OES_vertex_buffer_object */
    1.93 +
    1.94  #ifdef __cplusplus
    1.95  }
    1.96  #endif