include/SDL_opengles.h
changeset 3139 7f684f249ec9
parent 3118 5ba12c32ac6a
child 3407 d3baf5ac4e37
     1.1 --- a/include/SDL_opengles.h	Fri May 15 15:47:37 2009 +0000
     1.2 +++ b/include/SDL_opengles.h	Sat May 23 22:41:08 2009 +0000
     1.3 @@ -50,7 +50,7 @@
     1.4  
     1.5  #ifndef GL_API
     1.6  #define GL_API
     1.7 -#endif /* GL_API */
     1.8 +#endif                          /* GL_API */
     1.9  
    1.10  /*
    1.11  ** License Applicability. Except to the extent portions of this file are
    1.12 @@ -347,10 +347,10 @@
    1.13  /* OpenGL ES 1.0 defines, they gone in 1.1 and 2.0 */
    1.14  #ifndef GL_MAX_ELEMENTS_VERTICES
    1.15  #define GL_MAX_ELEMENTS_VERTICES          0x80E8
    1.16 -#endif /* GL_MAX_ELEMENTS_VERTICES */
    1.17 +#endif                          /* GL_MAX_ELEMENTS_VERTICES */
    1.18  #ifndef GL_MAX_ELEMENTS_INDICES
    1.19  #define GL_MAX_ELEMENTS_INDICES           0x80E9
    1.20 -#endif /* GL_MAX_ELEMENTS_INDICES */
    1.21 +#endif                          /* GL_MAX_ELEMENTS_INDICES */
    1.22  
    1.23  /* GetTextureParameter */
    1.24  /*      GL_TEXTURE_MAG_FILTER */
    1.25 @@ -669,7 +669,7 @@
    1.26  /* GL_OES_draw_texture */
    1.27  #ifndef GL_OES_draw_texture
    1.28  #define GL_TEXTURE_CROP_RECT_OES                                0x8B9D
    1.29 -#endif /* GL_OES_draw_texture */
    1.30 +#endif                          /* GL_OES_draw_texture */
    1.31  
    1.32  /*  GL_OES_vertex_buffer_object */
    1.33  #ifndef GL_OES_vertex_buffer_object
    1.34 @@ -687,7 +687,7 @@
    1.35  #define GL_BUFFER_SIZE_OES                                      0x8764
    1.36  #define GL_BUFFER_USAGE_OES                                     0x8765
    1.37  #define GL_BUFFER_ACCESS_OES                                    0x88BB
    1.38 -#endif /* GL_OES_vertex_buffer_object */
    1.39 +#endif                          /* GL_OES_vertex_buffer_object */
    1.40  
    1.41  /*************************************************************/
    1.42  
    1.43 @@ -973,8 +973,9 @@
    1.44  /* GL_OES_query_matrix */
    1.45  #ifndef GL_OES_query_matrix
    1.46  #define GL_OES_query_matrix 1
    1.47 -    GL_API GLbitfield GL_APIENTRY glQueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]);
    1.48 -#endif /* GL_OES_query_matrix */
    1.49 +    GL_API GLbitfield GL_APIENTRY glQueryMatrixxOES(GLfixed mantissa[16],
    1.50 +                                                    GLint exponent[16]);
    1.51 +#endif                          /* GL_OES_query_matrix */
    1.52  
    1.53  /* GL_OES_point_sprite */
    1.54  #ifndef GL_OES_point_sprite
    1.55 @@ -984,26 +985,35 @@
    1.56  /* GL_OES_draw_texture */
    1.57  #ifndef GL_OES_draw_texture
    1.58  #define GL_OES_draw_texture 1
    1.59 -    GL_API void GL_APIENTRY glDrawTexsOES (GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
    1.60 -    GL_API void GL_APIENTRY glDrawTexiOES (GLint x, GLint y, GLint z, GLint width, GLint height);
    1.61 -    GL_API void GL_APIENTRY glDrawTexxOES (GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
    1.62 -    GL_API void GL_APIENTRY glDrawTexsvOES (const GLshort *coords);
    1.63 -    GL_API void GL_APIENTRY glDrawTexivOES (const GLint *coords);
    1.64 -    GL_API void GL_APIENTRY glDrawTexxvOES (const GLfixed *coords);
    1.65 -    GL_API void GL_APIENTRY glDrawTexfOES (GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
    1.66 -    GL_API void GL_APIENTRY glDrawTexfvOES (const GLfloat *coords);
    1.67 -#endif /* GL_OES_draw_texture */
    1.68 +    GL_API void GL_APIENTRY glDrawTexsOES(GLshort x, GLshort y, GLshort z,
    1.69 +                                          GLshort width, GLshort height);
    1.70 +    GL_API void GL_APIENTRY glDrawTexiOES(GLint x, GLint y, GLint z,
    1.71 +                                          GLint width, GLint height);
    1.72 +    GL_API void GL_APIENTRY glDrawTexxOES(GLfixed x, GLfixed y, GLfixed z,
    1.73 +                                          GLfixed width, GLfixed height);
    1.74 +    GL_API void GL_APIENTRY glDrawTexsvOES(const GLshort * coords);
    1.75 +    GL_API void GL_APIENTRY glDrawTexivOES(const GLint * coords);
    1.76 +    GL_API void GL_APIENTRY glDrawTexxvOES(const GLfixed * coords);
    1.77 +    GL_API void GL_APIENTRY glDrawTexfOES(GLfloat x, GLfloat y, GLfloat z,
    1.78 +                                          GLfloat width, GLfloat height);
    1.79 +    GL_API void GL_APIENTRY glDrawTexfvOES(const GLfloat * coords);
    1.80 +#endif                          /* GL_OES_draw_texture */
    1.81  
    1.82  /* GL_OES_single_precision */
    1.83  #ifndef GL_OES_single_precision
    1.84  #define GL_OES_single_precision 1
    1.85 -    GL_API void GL_APIENTRY glDepthRangefOES (GLclampf zNear, GLclampf zFar);
    1.86 -    GL_API void GL_APIENTRY glFrustumfOES (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
    1.87 -    GL_API void GL_APIENTRY glOrthofOES (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
    1.88 -    GL_API void GL_APIENTRY glClipPlanefOES (GLenum plane, const GLfloat *equation);
    1.89 -    GL_API void GL_APIENTRY glGetClipPlanefOES (GLenum pname, GLfloat eqn[4]);
    1.90 -    GL_API void GL_APIENTRY glClearDepthfOES (GLclampf depth);
    1.91 -#endif /* GL_OES_single_precision */
    1.92 +    GL_API void GL_APIENTRY glDepthRangefOES(GLclampf zNear, GLclampf zFar);
    1.93 +    GL_API void GL_APIENTRY glFrustumfOES(GLfloat left, GLfloat right,
    1.94 +                                          GLfloat bottom, GLfloat top,
    1.95 +                                          GLfloat zNear, GLfloat zFar);
    1.96 +    GL_API void GL_APIENTRY glOrthofOES(GLfloat left, GLfloat right,
    1.97 +                                        GLfloat bottom, GLfloat top,
    1.98 +                                        GLfloat zNear, GLfloat zFar);
    1.99 +    GL_API void GL_APIENTRY glClipPlanefOES(GLenum plane,
   1.100 +                                            const GLfloat * equation);
   1.101 +    GL_API void GL_APIENTRY glGetClipPlanefOES(GLenum pname, GLfloat eqn[4]);
   1.102 +    GL_API void GL_APIENTRY glClearDepthfOES(GLclampf depth);
   1.103 +#endif                          /* GL_OES_single_precision */
   1.104  
   1.105  /* GL_OES_vertex_buffer_object */
   1.106  #ifndef GL_OES_vertex_buffer_object
   1.107 @@ -1012,10 +1022,12 @@
   1.108      GL_API void APIENTRY glDeleteBuffersOES(GLsizei, const GLuint *);
   1.109      GL_API void APIENTRY glGenBuffersOES(GLsizei, GLuint *);
   1.110      GL_API GLboolean APIENTRY glIsBufferOES(GLuint);
   1.111 -    GL_API void APIENTRY glBufferDataOES(GLenum, GLsizeiptr, const GLvoid *, GLenum);
   1.112 -    GL_API void APIENTRY glBufferSubDataOES(GLenum, GLintptr, GLsizeiptr, const GLvoid *);
   1.113 +    GL_API void APIENTRY glBufferDataOES(GLenum, GLsizeiptr, const GLvoid *,
   1.114 +                                         GLenum);
   1.115 +    GL_API void APIENTRY glBufferSubDataOES(GLenum, GLintptr, GLsizeiptr,
   1.116 +                                            const GLvoid *);
   1.117      GL_API void APIENTRY glGetBufferParameterivOES(GLenum, GLenum, GLint *);
   1.118 -#endif /* GL_OES_vertex_buffer_object */
   1.119 +#endif                          /* GL_OES_vertex_buffer_object */
   1.120  
   1.121  #ifdef __cplusplus
   1.122  }