rs_gl.h

Go to the documentation of this file.
00001 /*
00002     RenderStack  Support library for OpenGL 3+
00003     Copyright (C) 2010  Timo Suoranta
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Lesser General Public
00007     License as published by the Free Software Foundation; either
00008     version 2.1 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Lesser General Public License for more details.
00014 
00015     You should have received a copy of the GNU Lesser General Public
00016     License along with this library; if not, write to the Free Software
00017     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00018 */
00019 
00027 #include "renderstack/rs.h"
00028 #include "renderstack/rs_platform_opengl.h"
00029 
00030 
00031 RS_BEGIN_EXTERN_C
00032 
00033 void        rs_check_error      (void);
00034 const char *rs_gl_enum_string   (GLenum e);
00035 
00036 /*  GL_H  */ 
00037 void rs_gl_array_element(GLint i);
00038 void rs_gl_bind_texture(GLenum target, GLuint texture);
00039 void rs_gl_blend_func(GLenum sfactor, GLenum dfactor);
00040 void rs_gl_clear(GLbitfield mask);
00041 void rs_gl_clear_color(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
00042 void rs_gl_clear_depth(GLclampd depth);
00043 void rs_gl_clear_stencil(GLint s);
00044 void rs_gl_color_mask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
00045 void rs_gl_copy_tex_image_1d(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
00046 void rs_gl_copy_tex_image_2d(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
00047 void rs_gl_copy_tex_sub_image_1d(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
00048 void rs_gl_copy_tex_sub_image_2d(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
00049 void rs_gl_cull_face(GLenum mode);
00050 void rs_gl_delete_textures(GLsizei n, const GLuint *textures);
00051 void rs_gl_depth_func(GLenum func);
00052 void rs_gl_depth_mask(GLboolean flag);
00053 void rs_gl_depth_range(GLclampd zNear, GLclampd zFar);
00054 void rs_gl_disable(GLenum cap);
00055 void rs_gl_draw_arrays(GLenum mode, GLint first, GLsizei count);
00056 void rs_gl_draw_buffer(GLenum mode);
00057 void rs_gl_draw_elements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
00058 void rs_gl_enable(GLenum cap);
00059 void rs_gl_finish(void);
00060 void rs_gl_flush(void);
00061 void rs_gl_front_face(GLenum mode);
00062 void rs_gl_gen_textures(GLsizei n, GLuint *textures);
00063 void rs_gl_get_boolean_v(GLenum pname, GLboolean *params);
00064 void rs_gl_get_double_v(GLenum pname, GLdouble *params);
00065 GLenum rs_gl_get_error(void);
00066 void rs_gl_get_float_v(GLenum pname, GLfloat *params);
00067 void rs_gl_get_integer_v(GLenum pname, GLint *params);
00068 void rs_gl_get_pointer_v(GLenum pname, GLvoid* *params);
00069 const GLubyte * rs_gl_get_string(GLenum name);
00070 void rs_gl_get_tex_env_fv(GLenum target, GLenum pname, GLfloat *params);
00071 void rs_gl_get_tex_env_iv(GLenum target, GLenum pname, GLint *params);
00072 void rs_gl_get_tex_image(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
00073 void rs_gl_get_tex_level_parameter_fv(GLenum target, GLint level, GLenum pname, GLfloat *params);
00074 void rs_gl_get_tex_level_parameter_iv(GLenum target, GLint level, GLenum pname, GLint *params);
00075 void rs_gl_get_tex_parameter_fv(GLenum target, GLenum pname, GLfloat *params);
00076 void rs_gl_get_tex_parameter_iv(GLenum target, GLenum pname, GLint *params);
00077 void rs_gl_hint(GLenum target, GLenum mode);
00078 GLboolean rs_gl_is_enabled(GLenum cap);
00079 GLboolean rs_gl_is_texture(GLuint texture);
00080 void rs_gl_line_width(GLfloat width);
00081 void rs_gl_logic_op(GLenum opcode);
00082 void rs_gl_pixel_store_f(GLenum pname, GLfloat param);
00083 void rs_gl_pixel_store_i(GLenum pname, GLint param);
00084 void rs_gl_pixel_transfer_f(GLenum pname, GLfloat param);
00085 void rs_gl_pixel_transfer_i(GLenum pname, GLint param);
00086 void rs_gl_point_size(GLfloat size);
00087 void rs_gl_polygon_mode(GLenum face, GLenum mode);
00088 void rs_gl_polygon_offset(GLfloat factor, GLfloat units);
00089 void rs_gl_read_buffer(GLenum mode);
00090 void rs_gl_read_pixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
00091 void rs_gl_scissor(GLint x, GLint y, GLsizei width, GLsizei height);
00092 void rs_gl_stencil_func(GLenum func, GLint ref, GLuint mask);
00093 void rs_gl_stencil_mask(GLuint mask);
00094 void rs_gl_stencil_op(GLenum fail, GLenum zfail, GLenum zpass);
00095 void rs_gl_tex_env_f(GLenum target, GLenum pname, GLfloat param);
00096 void rs_gl_tex_env_fv(GLenum target, GLenum pname, const GLfloat *params);
00097 void rs_gl_tex_env_i(GLenum target, GLenum pname, GLint param);
00098 void rs_gl_tex_env_iv(GLenum target, GLenum pname, const GLint *params);
00099 void rs_gl_tex_image_1d(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
00100 void rs_gl_tex_image_2d(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
00101 void rs_gl_tex_parameter_f(GLenum target, GLenum pname, GLfloat param);
00102 void rs_gl_tex_parameter_fv(GLenum target, GLenum pname, const GLfloat *params);
00103 void rs_gl_tex_parameter_i(GLenum target, GLenum pname, GLint param);
00104 void rs_gl_tex_parameter_iv(GLenum target, GLenum pname, const GLint *params);
00105 void rs_gl_tex_sub_image_1d(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
00106 void rs_gl_tex_sub_image_2d(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
00107 void rs_gl_viewport(GLint x, GLint y, GLsizei width, GLsizei height);
00108 
00109 /*  GL_VERSION_1_2  */ 
00110 void rs_gl_blend_color(GLclampf a, GLclampf b, GLclampf c, GLclampf d);
00111 void rs_gl_blend_equation(GLenum a);
00112 void rs_gl_draw_range_elements(GLenum a, GLuint b, GLuint c, GLsizei d, GLenum e, const GLvoid *f);
00113 void rs_gl_tex_image_3d(GLenum a, GLint b, GLint c, GLsizei d, GLsizei e, GLsizei f, GLint g, GLenum h, GLenum i, const GLvoid *j);
00114 void rs_gl_tex_sub_image_3d(GLenum a, GLint b, GLint c, GLint d, GLint e, GLsizei f, GLsizei g, GLsizei h, GLenum i, GLenum j, const GLvoid *k);
00115 void rs_gl_copy_tex_sub_image_3d(GLenum a, GLint b, GLint c, GLint d, GLint e, GLint f, GLint g, GLsizei h, GLsizei i);
00116 
00117 
00118 /*  GL_VERSION_1_3  */ 
00119 void rs_gl_active_texture(GLenum a);
00120 void rs_gl_sample_coverage(GLclampf a, GLboolean b);
00121 void rs_gl_compressed_tex_image_3d(GLenum a, GLint b, GLenum c, GLsizei d, GLsizei e, GLsizei f, GLint g, GLsizei h, const GLvoid *i);
00122 void rs_gl_compressed_tex_image_2d(GLenum a, GLint b, GLenum c, GLsizei d, GLsizei e, GLint f, GLsizei g, const GLvoid *h);
00123 void rs_gl_compressed_tex_image_1d(GLenum a, GLint b, GLenum c, GLsizei d, GLint e, GLsizei f, const GLvoid *g);
00124 void rs_gl_compressed_tex_sub_image_3d(GLenum a, GLint b, GLint c, GLint d, GLint e, GLsizei f, GLsizei g, GLsizei h, GLenum i, GLsizei j, const GLvoid *k);
00125 void rs_gl_compressed_tex_sub_image_2d(GLenum a, GLint b, GLint c, GLint d, GLsizei e, GLsizei f, GLenum g, GLsizei h, const GLvoid *i);
00126 void rs_gl_compressed_tex_sub_image_1d(GLenum a, GLint b, GLint c, GLsizei d, GLenum e, GLsizei f, const GLvoid *g);
00127 void rs_gl_get_compressed_tex_image(GLenum a, GLint b, GLvoid *c);
00128 
00129 
00130 /*  GL_VERSION_1_4  */ 
00131 void rs_gl_blend_func_separate(GLenum a, GLenum b, GLenum c, GLenum d);
00132 void rs_gl_multi_draw_arrays(GLenum a, GLint *b, GLsizei *c, GLsizei d);
00133 void rs_gl_multi_draw_elements(GLenum a, const GLsizei *b, GLenum c, const GLvoid* *d, GLsizei e);
00134 void rs_gl_point_parameter_f(GLenum a, GLfloat b);
00135 void rs_gl_point_parameter_fv(GLenum a, const GLfloat *b);
00136 void rs_gl_point_parameter_i(GLenum a, GLint b);
00137 void rs_gl_point_parameter_iv(GLenum a, const GLint *b);
00138 
00139 
00140 /*  GL_VERSION_1_5  */ 
00141 void rs_gl_gen_queries(GLsizei a, GLuint *b);
00142 void rs_gl_delete_queries(GLsizei a, const GLuint *b);
00143 GLboolean rs_gl_is_query(GLuint a);
00144 void rs_gl_begin_query(GLenum a, GLuint b);
00145 void rs_gl_end_query(GLenum a);
00146 void rs_gl_get_query_iv(GLenum a, GLenum b, GLint *c);
00147 void rs_gl_get_query_object_iv(GLuint a, GLenum b, GLint *c);
00148 void rs_gl_get_query_object_uiv(GLuint a, GLenum b, GLuint *c);
00149 void rs_gl_bind_buffer(GLenum a, GLuint b);
00150 void rs_gl_delete_buffers(GLsizei a, const GLuint *b);
00151 void rs_gl_gen_buffers(GLsizei a, GLuint *b);
00152 GLboolean rs_gl_is_buffer(GLuint a);
00153 void rs_gl_buffer_data(GLenum a, GLsizeiptr b, const GLvoid *c, GLenum d);
00154 void rs_gl_buffer_sub_data(GLenum a, GLintptr b, GLsizeiptr c, const GLvoid *d);
00155 void rs_gl_get_buffer_sub_data(GLenum a, GLintptr b, GLsizeiptr c, GLvoid *d);
00156 GLvoid* rs_gl_map_buffer(GLenum a, GLenum b);
00157 GLboolean rs_gl_unmap_buffer(GLenum);
00158 void rs_gl_get_buffer_parameter_iv(GLenum a, GLenum b, GLint *c);
00159 void rs_gl_get_buffer_pointer_v(GLenum a, GLenum b, GLvoid* *c);
00160 
00161 /*  GL_VERSION_2_0  */ 
00162 void rs_gl_blend_equation_separate(GLenum a, GLenum b);
00163 void rs_gl_draw_buffers(GLsizei a, const GLenum * b);
00164 void rs_gl_stencil_op_separate(GLenum a, GLenum b, GLenum c, GLenum d);
00165 void rs_gl_stencil_func_Separate(GLenum a, GLenum b, GLint c, GLuint d);
00166 void rs_gl_stencil_mask_separate(GLenum a, GLuint b);
00167 void rs_gl_attach_shader(GLuint a, GLuint b);
00168 void rs_gl_bind_attrib_location(GLuint a, GLuint b, const GLchar * c);
00169 void rs_gl_compile_shader(GLuint a);
00170 GLuint rs_gl_create_program(void);
00171 GLuint rs_gl_create_shader(GLenum a);
00172 void rs_gl_delete_program(GLuint a);
00173 void rs_gl_delete_shader(GLuint a);
00174 void rs_gl_detach_shader(GLuint a, GLuint b);
00175 void rs_gl_disable_vertex_attrib_array(GLuint a);
00176 void rs_gl_enable_vertex_attrib_array(GLuint a);
00177 void rs_gl_get_active_attrib(GLuint a, GLuint b, GLsizei c, GLsizei *d, GLint *e, GLenum *f, GLchar *g);
00178 void rs_gl_get_active_uniform(GLuint a, GLuint b , GLsizei c, GLsizei *d, GLint *e, GLenum *f, GLchar *g);
00179 void rs_gl_get_attached_shaders(GLuint a, GLsizei b, GLsizei *c, GLuint *d);
00180 GLint rs_gl_get_attrib_location(GLuint a, const GLchar *b);
00181 void rs_gl_get_program_iv(GLuint a, GLenum b, GLint *c);
00182 void rs_gl_get_program_info_log(GLuint a, GLsizei b, GLsizei *c, GLchar *d);
00183 void rs_gl_get_shader_iv(GLuint a, GLenum b, GLint *c);
00184 void rs_gl_get_shader_info_log(GLuint a, GLsizei b, GLsizei *c, GLchar *d);
00185 void rs_gl_get_shader_source(GLuint a, GLsizei b, GLsizei *c, GLchar *d);
00186 GLint rs_gl_get_uniform_location(GLuint a, const GLchar *b);
00187 void rs_gl_get_uniform_fv(GLuint a, GLint b, GLfloat *c);
00188 void rs_gl_get_uniform_iv(GLuint a, GLint b, GLint *c);
00189 void rs_gl_get_vertex_attrib_dv(GLuint a, GLenum b, GLdouble *c);
00190 void rs_gl_get_vertex_attrib_fv(GLuint a, GLenum b, GLfloat *c);
00191 void rs_gl_get_vertex_attrib_iv(GLuint a, GLenum b, GLint *c);
00192 void rs_gl_get_vertex_attrib_pointer_v(GLuint a, GLenum b, GLvoid* *c);
00193 GLboolean rs_gl_is_program(GLuint a);
00194 GLboolean rs_gl_is_shader(GLuint a);
00195 void rs_gl_link_program(GLuint a);
00196 void rs_gl_shader_source(GLuint a, GLsizei b, const GLchar* *c, const GLint *d);
00197 void rs_gl_use_program(GLuint a);
00198 void rs_gl_uniform_1f(GLint a, GLfloat b);
00199 void rs_gl_uniform_2f(GLint a, GLfloat b, GLfloat c);
00200 void rs_gl_uniform_3f(GLint a, GLfloat b, GLfloat c, GLfloat d);
00201 void rs_gl_uniform_4f(GLint a, GLfloat b, GLfloat c, GLfloat d, GLfloat e);
00202 void rs_gl_uniform_1i(GLint a, GLint b);
00203 void rs_gl_uniform_2i(GLint a, GLint b, GLint c);
00204 void rs_gl_uniform_3i(GLint a, GLint b, GLint c, GLint d);
00205 void rs_gl_uniform_4i(GLint a, GLint b, GLint c, GLint d, GLint e);
00206 void rs_gl_uniform_1fv(GLint a, GLsizei b, const GLfloat *c);
00207 void rs_gl_uniform_2fv(GLint a, GLsizei b, const GLfloat *c);
00208 void rs_gl_uniform_3fv(GLint a, GLsizei b, const GLfloat *c);
00209 void rs_gl_uniform_4fv(GLint a, GLsizei b, const GLfloat *c);
00210 void rs_gl_uniform_1iv(GLint a, GLsizei b, const GLint *c);
00211 void rs_gl_uniform_2iv(GLint a, GLsizei b, const GLint *c);
00212 void rs_gl_uniform_3iv(GLint a, GLsizei b, const GLint *c);
00213 void rs_gl_uniform_4iv(GLint a, GLsizei b, const GLint *c);
00214 void rs_gl_uniform_matrix_2fv(GLint a, GLsizei b, GLboolean c, const GLfloat *d);
00215 void rs_gl_uniform_matrix_3fv(GLint a, GLsizei b, GLboolean c, const GLfloat *d);
00216 void rs_gl_uniform_matrix_4fv(GLint a, GLsizei b, GLboolean c, const GLfloat *d);
00217 void rs_gl_validate_program(GLuint a);
00218 void rs_gl_vertex_attrib_1d(GLuint a, GLdouble b);
00219 void rs_gl_vertex_attrib_1dv(GLuint a, const GLdouble *b);
00220 void rs_gl_vertex_attrib_1f(GLuint a, GLfloat b);
00221 void rs_gl_vertex_attrib_1fv(GLuint a, const GLfloat *b);
00222 void rs_gl_vertex_attrib_1s(GLuint a, GLshort b);
00223 void rs_gl_vertex_attrib_1sv(GLuint a, const GLshort *b);
00224 void rs_gl_vertex_attrib_2d(GLuint a, GLdouble b, GLdouble c);
00225 void rs_gl_vertex_attrib_2dv(GLuint a, const GLdouble *b);
00226 void rs_gl_vertex_attrib_2f(GLuint a, GLfloat b, GLfloat c);
00227 void rs_gl_vertex_attrib_2fv(GLuint a, const GLfloat *b);
00228 void rs_gl_vertex_attrib_2s(GLuint a, GLshort b, GLshort c);
00229 void rs_gl_vertex_attrib_2sv(GLuint a, const GLshort *b);
00230 void rs_gl_vertex_attrib_3d(GLuint a, GLdouble b, GLdouble c, GLdouble d);
00231 void rs_gl_vertex_attrib_3dv(GLuint a, const GLdouble *b);
00232 void rs_gl_vertex_attrib_3f(GLuint a, GLfloat b, GLfloat c, GLfloat d);
00233 void rs_gl_vertex_attrib_3fv(GLuint a, const GLfloat *b);
00234 void rs_gl_vertex_attrib_3s(GLuint a, GLshort b, GLshort c, GLshort d);
00235 void rs_gl_vertex_attrib_3sv(GLuint a, const GLshort *b);
00236 void rs_gl_vertex_attrib_4Nbv(GLuint a, const GLbyte *b);
00237 void rs_gl_vertex_attrib_4Niv(GLuint a, const GLint *b);
00238 void rs_gl_vertex_attrib_4Nsv(GLuint a, const GLshort *b);
00239 void rs_gl_vertex_attrib_4Nub(GLuint a, GLubyte b, GLubyte c, GLubyte d, GLubyte e);
00240 void rs_gl_vertex_attrib_4Nubv(GLuint a, const GLubyte *b);
00241 void rs_gl_vertex_attrib_4Nuiv(GLuint a, const GLuint *b);
00242 void rs_gl_vertex_attrib_4Nusv(GLuint a, const GLushort *b);
00243 void rs_gl_vertex_attrib_4bv(GLuint a, const GLbyte *b);
00244 void rs_gl_vertex_attrib_4d(GLuint a, GLdouble b, GLdouble c, GLdouble d, GLdouble e);
00245 void rs_gl_vertex_attrib_4dv(GLuint a, const GLdouble *b);
00246 void rs_gl_vertex_attrib_4f(GLuint a, GLfloat b, GLfloat c, GLfloat d, GLfloat e);
00247 void rs_gl_vertex_attrib_4fv(GLuint a, const GLfloat *b);
00248 void rs_gl_vertex_attrib_4iv(GLuint a, const GLint *b);
00249 void rs_gl_vertex_attrib_4s(GLuint a, GLshort b, GLshort c, GLshort d, GLshort e);
00250 void rs_gl_vertex_attrib_4sv(GLuint a, const GLshort *b);
00251 void rs_gl_vertex_attrib_4ubv(GLuint a, const GLubyte *b);
00252 void rs_gl_vertex_attrib_4uiv(GLuint a, const GLuint *b);
00253 void rs_gl_vertex_attrib_4usv(GLuint a, const GLushort *b);
00254 void rs_gl_vertex_attrib_pointer(GLuint a, GLint b, GLenum c, GLboolean d, GLsizei e, const GLvoid *f);
00255 
00256 /*  GL_VERSION_2_1  */ 
00257 void rs_gl_uniform_matrix_2x3fv(GLint a, GLsizei b, GLboolean c, const GLfloat *d);
00258 void rs_gl_uniform_matrix_3x2fv(GLint a, GLsizei b, GLboolean c, const GLfloat *d);
00259 void rs_gl_niform_matrix_2x4fv(GLint a, GLsizei b, GLboolean c, const GLfloat *d);
00260 void rs_gl_uniform_matrix_4x2fv(GLint a, GLsizei b, GLboolean c, const GLfloat *d);
00261 void rs_gl_uniform_matrix_fv(GLint a, GLsizei b, GLboolean c, const GLfloat *d);
00262 void rs_gl_uniform_matrix_fv(GLint a, GLsizei b, GLboolean c, const GLfloat *d);
00263 
00264 /*  GL_VERSION_3_0  */ 
00265 void rs_gl_color_mask_i(GLuint a, GLboolean b, GLboolean c, GLboolean d, GLboolean e);
00266 void rs_gl_get_boolean_i_v(GLenum a, GLuint b, GLboolean *c);
00267 void rs_gl_get_integer_i_v(GLenum a, GLuint b, GLint *c);
00268 void rs_gl_enable_i(GLenum a, GLuint b);
00269 void rs_gl_disable_i(GLenum a, GLuint b);
00270 GLboolean rs_gl_is_enabled_i(GLenum a, GLuint b);
00271 void rs_gl_begin_transform_feedback(GLenum a);
00272 void rs_gl_end_transform_feedback(void);
00273 void rs_gl_bind_buffer_range(GLenum a, GLuint b, GLuint c, GLintptr d, GLsizeiptr e);
00274 void rs_gl_bind_buffer_base(GLenum a, GLuint b, GLuint c);
00275 void rs_gl_transform_feedback_varyings(GLuint a, GLsizei b, const GLchar* *c, GLenum d);
00276 void rs_gl_get_transform_feedback_varying(GLuint a, GLuint b, GLsizei c, GLsizei *d, GLsizei *e, GLenum *f, GLchar *g);
00277 void rs_gl_clamp_color(GLenum a, GLenum b);
00278 void rs_gl_begin_conditional_render(GLuint a, GLenum b);
00279 void rs_gl_end_conditional_render(void);
00280 void rs_gl_vertex_attrib_i_pointer(GLuint a, GLint b, GLenum c, GLsizei d, const GLvoid *e);
00281 void rs_gl_get_vertex_attrib_iiv(GLuint a, GLenum b, GLint *c);
00282 void rs_gl_get_vertex_attrib_iuiv(GLuint a, GLenum b, GLuint *c);
00283 void rs_gl_vertex_attrib_i1i(GLuint a, GLint b);
00284 void rs_gl_vertex_attrib_i2i(GLuint a, GLint b, GLint c);
00285 void rs_gl_vertex_attrib_i3i(GLuint a, GLint b, GLint c, GLint d);
00286 void rs_gl_vertex_attrib_i4i(GLuint a, GLint b, GLint c, GLint d, GLint e); 
00287 void rs_gl_vertex_attrib_i1ui(GLuint a, GLuint b);
00288 void rs_gl_vertex_attrib_i2ui(GLuint a, GLuint b, GLuint c);
00289 void rs_gl_vertex_attrib_i3ui(GLuint a, GLuint b, GLuint c, GLuint d);
00290 void rs_gl_vertex_attrib_i4ui(GLuint a, GLuint b, GLuint c, GLuint d, GLuint e);
00291 void rs_gl_vertex_attrib_i1iv(GLuint a, const GLint *b);
00292 void rs_gl_vertex_attrib_i2iv(GLuint a, const GLint *b);
00293 void rs_gl_vertex_attrib_i3iv(GLuint a, const GLint *b);
00294 void rs_gl_vertex_attrib_i4iv(GLuint a, const GLint *b);
00295 void rs_gl_vertex_attrib_i1uiv(GLuint a, const GLuint *b);
00296 void rs_gl_vertex_attrib_i2uiv(GLuint a, const GLuint *b);
00297 void rs_gl_vertex_attrib_i3uiv(GLuint a, const GLuint *b);
00298 void rs_gl_vertex_attrib_i4uiv(GLuint a, const GLuint *b);
00299 void rs_gl_vertex_attrib_i4bv(GLuint a, const GLbyte *b);
00300 void rs_gl_vertex_attrib_i4sv(GLuint a, const GLshort *b);
00301 void rs_gl_vertex_attrib_i4ubv(GLuint a, const GLubyte *b);
00302 void rs_gl_vertex_attrib_i4usv(GLuint a, const GLushort *b);
00303 void rs_gl_get_uniform_uiv(GLuint a, GLint b, GLuint *c);
00304 void rs_gl_bind_frag_data_location(GLuint a, GLuint b, const GLchar *c);
00305 GLint rs_gl_get_frag_data_location(GLuint a, const GLchar *b);
00306 void rs_gl_uniform_1ui(GLint a, GLuint b);
00307 void rs_gl_uniform_2ui(GLint a, GLuint b, GLuint c);
00308 void rs_gl_uniform_3ui(GLint a, GLuint b, GLuint c, GLuint d);
00309 void rs_gl_uniform_4ui(GLint a, GLuint b, GLuint c, GLuint d, GLuint e);
00310 void rs_gl_uniform_1uiv(GLint a, GLsizei b, const GLuint *c);
00311 void rs_gl_uniform_2uiv(GLint a, GLsizei b, const GLuint *c);
00312 void rs_gl_uniform_3uiv(GLint a, GLsizei b, const GLuint *c);
00313 void rs_gl_uniform_4uiv(GLint a, GLsizei b, const GLuint *c);
00314 void rs_gl_tex_parameter_iiv(GLenum a, GLenum b, const GLint *c);
00315 void rs_gl_tex_parameter_iuiv(GLenum a, GLenum b, const GLuint *c);
00316 void rs_gl_get_tex_parameter_iiv(GLenum a, GLenum b, GLint *c);
00317 void rs_gl_get_tex_parameter_iuiv(GLenum a, GLenum b, GLuint *c);
00318 void rs_gl_clear_buffer_iv(GLenum a, GLint b, const GLint *c);
00319 void rs_gl_clear_buffer_uiv(GLenum a, GLint b, const GLuint *c);
00320 void rs_gl_clear_buffer_fv(GLenum a, GLint b, const GLfloat *c);
00321 void rs_gl_clear_buffer_fi(GLenum a, GLint b, GLfloat c, GLint d);
00322 const GLubyte * rs_gl_get_string_i(GLenum a, GLuint b);
00323 
00324 /*  GL_VERSION_3_1  */ 
00325 void rs_gl_draw_arrays_instanced(GLenum a, GLint b, GLsizei c, GLsizei d);
00326 void rs_gl_draw_elements_instanced(GLenum a, GLsizei b, GLenum c, const GLvoid *d, GLsizei e);
00327 void rs_gl_tex_buffer(GLenum a, GLenum b, GLuint c);
00328 void rs_gl_primitive_restart_index(GLuint a);
00329 
00330 /*  GL_VERSION_3_2  */ 
00331 void rs_gl_get_integer_64i_v(GLenum a, GLuint b, GLint64 *c);
00332 void rs_gl_get_buffer_parameter_i64v(GLenum a, GLenum b, GLint64 *c);
00333 void rs_gl_program_parameter_i(GLuint a, GLenum b, GLint c);
00334 void rs_gl_framebuffer_texture(GLenum a, GLenum b, GLuint c, GLint d);
00335 void rs_gl_framebuffer_texture_face(GLenum a, GLenum b, GLuint c, GLint d, GLenum e);
00336 
00337 /*  3.0  */ 
00338 /*  ARB_framebuffer_object  */ 
00339 GLboolean rs_gl_is_renderbuffer(GLuint a);
00340 void rs_gl_bind_renderbuffer(GLenum a, GLuint b);
00341 void rs_gl_delete_renderbuffers(GLsizei a, const GLuint *b);
00342 void rs_gl_gen_renderbuffers(GLsizei a, GLuint *b);
00343 void rs_gl_renderbuffer_storage(GLenum a, GLenum b, GLsizei c, GLsizei d);
00344 void rs_gl_get_renderbuffer_parameter_iv(GLenum a, GLenum b, GLint *c);
00345 GLboolean rs_gl_is_framebuffer(GLuint a);
00346 void rs_gl_bind_framebuffer(GLenum a, GLuint b);
00347 void rs_gl_delete_framebuffers(GLsizei a, const GLuint *b);
00348 void rs_gl_gen_framebuffers(GLsizei, GLuint *);
00349 GLenum rs_gl_check_framebuffer_status(GLenum a);
00350 void rs_gl_framebuffer_rexture_1d(GLenum a, GLenum b, GLenum c, GLuint d, GLint e);
00351 void rs_gl_framebuffer_texture_2d(GLenum a, GLenum b, GLenum c, GLuint d, GLint e);
00352 void rs_gl_framebuffer_texture_3d(GLenum a, GLenum b, GLenum c, GLuint d, GLint e, GLint f);
00353 void rs_gl_framebuffer_renderbuffer(GLenum a, GLenum b, GLenum c, GLuint d);
00354 void rs_gl_get_framebuffer_attachment_parameter_iv(GLenum a, GLenum b, GLenum c, GLint *d);
00355 void rs_gl_generate_mipmap(GLenum a);
00356 void rs_gl_blit_framebuffer(GLint a, GLint b, GLint c, GLint d, GLint e, GLint f, GLint g, GLint h, GLbitfield i, GLenum j);
00357 void rs_gl_renderbuffer_storage_multisample(GLenum a, GLsizei b, GLenum c, GLsizei d, GLsizei e);
00358 void rs_gl_framebuffer_texture_layer(GLenum a, GLenum b, GLuint c, GLint d, GLint e);
00359 
00360 /*  ARB_map_buffer_range  */ 
00361 GLvoid* rs_gl_map_buffer_range(GLenum a, GLintptr b, GLsizeiptr c, GLbitfield d);
00362 void rs_gl_flush_mapped_buffer_range(GLenum a, GLintptr b, GLsizeiptr c);
00363 
00364 /*  ARB_vertex_array_object  */ 
00365 void rs_gl_bind_vertex_array(GLuint a);
00366 void rs_gl_delete_vertex_arrays(GLsizei a, const GLuint *b);
00367 void rs_gl_gen_vertex_arrays(GLsizei a, GLuint *b);
00368 GLboolean rs_gl_is_vertex_array(GLuint a);
00369 
00370 /*  3.1  */ 
00371 /*  ARB_copy_buffer  */ 
00372 void rs_gl_copy_buffer_sub_data(GLenum a, GLenum b, GLintptr c, GLintptr d, GLsizeiptr e);
00373 
00374 /*  ARB_uniform_buffer_object  */ 
00375 
00376 /*  3.2  */ 
00377 /*  ARB_draw_elements_base_vertex  */ 
00378 void rs_gl_draw_elements_base_vertex(GLenum a, GLsizei b, GLenum c, const GLvoid *d, GLint e);
00379 void rs_gl_draw_range_elements_base_vertex(GLenum a, GLuint b, GLuint c, GLsizei d, GLenum e, const GLvoid *f, GLint g);
00380 void rs_gl_draw_elements_instanced_base_vertex(GLenum a, GLsizei b, GLenum c, const GLvoid *d, GLsizei e, GLint f);
00381 void rs_gl_multi_draw_elements_base_vertex(GLenum a, const GLsizei *b, GLenum c, const GLvoid* *d, GLsizei e, const GLint *f);
00382 
00383 /*  ARB_provoking_vertex  */ 
00384 void rs_gl_provoking_vertex(GLenum a);
00385 
00386 /*  ARB_sync  */ 
00387 GLsync rs_gl_fence_sync(GLenum a, GLbitfield b);
00388 GLboolean rs_gl_is_sync(GLsync a);
00389 void rs_gl_delete_sync(GLsync a);
00390 GLenum rs_gl_client_wait_sync(GLsync a, GLbitfield b, GLuint64 c);
00391 void rs_gl_wait_sync(GLsync a, GLbitfield b, GLuint64 c);
00392 void rs_gl_get_integer_64v(GLenum a, GLint64 *b);
00393 void rs_gl_get_sync_iv(GLsync a, GLenum b, GLsizei c, GLsizei *d, GLint *e);
00394 
00395 /*  ARB_texture_multisample  */ 
00396 void rs_gl_tex_image_2d_multisample(GLenum a, GLsizei b, GLint c, GLsizei d, GLsizei e, GLboolean f);
00397 void rs_gl_tex_image_3d_multisample(GLenum a, GLsizei b, GLint c, GLsizei d, GLsizei e, GLsizei f, GLboolean g);
00398 void rs_gl_get_multisample_fv(GLenum a, GLuint b, GLfloat *c);
00399 void rs_gl_sample_mask_i(GLuint a, GLbitfield b);
00400 
00401 RS_END_EXTERN_C
00402 
Generated on Sun Apr 11 12:23:09 2010 for RenderStack by  doxygen 1.6.3