summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRafael Vasco <rafaelvasco87@gmail.com>2012-06-13 15:11:50 -0300
committerRafael Vasco <rafaelvasco87@gmail.com>2012-06-13 15:11:50 -0300
commit0c353876a166b1852276443110b8e995dd816b92 (patch)
treecf45bbe8c6d9d5d669ef3ef3cd0f4ab54a1ca12c
parent5fba5a7c011aaf9787e8b343b422eab3d31847bc (diff)
downloadNim-0c353876a166b1852276443110b8e995dd816b92.tar.gz
Fixed other procedures that used PPGLChar.
They are now using cstringArray as glShaderSource since they are
semantic compatible with it.
-rw-r--r--lib/wrappers/opengl/opengl.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/wrappers/opengl/opengl.nim b/lib/wrappers/opengl/opengl.nim
index 10abb9c3f..cdec0b0f7 100644
--- a/lib/wrappers/opengl/opengl.nim
+++ b/lib/wrappers/opengl/opengl.nim
@@ -5928,7 +5928,7 @@ proc glBindBufferRange*(target: GLenum, index: GLuint, buffer: GLuint,
                         offset: GLintptr, size: GLsizeiptr){.stdcall, importc, ogl.}

 proc glBindBufferBase*(target: GLenum, index: GLuint, buffer: GLuint){.stdcall, importc, ogl.}

 proc glTransformFeedbackVaryings*(prog: GLuint, count: GLsizei, 

-                                  varyings: PPGLchar, bufferMode: GLenum){.

+                                  varyings: cstringArray, bufferMode: GLenum){.

     stdcall, importc, ogl.}

 proc glGetTransformFeedbackVarying*(prog: GLuint, index: GLuint, 

                                     bufSize: GLsizei, len: PGLsizei, 

@@ -6363,7 +6363,7 @@ proc glGetHandleARB*(pname: GlEnum): GLHandleARB{.stdcall, importc, ogl.}
 proc glDetachObjectARB*(container, attached: GLHandleARB){.stdcall, importc, ogl.}

 proc glCreateShaderObjectARB*(shaderType: glenum): GLHandleARB{.stdcall, importc, ogl.}

 proc glShaderSourceARB*(shaderObj: GLHandleARB, count: glsizei, 

-                        string: PPGLCharARB, lengths: pglint){.stdcall, importc, ogl.}

+                        string: cstringArray, lengths: pglint){.stdcall, importc, ogl.}

 proc glCompileShaderARB*(shaderObj: GLHandleARB){.stdcall, importc, ogl.}

 proc glCreateProgramObjectARB*(): GLHandleARB{.stdcall, importc, ogl.}

 proc glAttachObjectARB*(programObj, shaderObj: GLhandleARB){.stdcall, importc, ogl.}

@@ -6493,7 +6493,7 @@ proc glGenVertexArrays*(n: GLsizei, arrays: PGLuint){.stdcall, importc, ogl.}
 proc glIsVertexArray*(arr: GLuint): GLboolean{.stdcall, importc, ogl.}

   # GL_ARB_uniform_buffer_object

 proc glGetUniformIndices*(prog: GLuint, uniformCount: GLsizei, 

-                          uniformNames: PPGLchar, uniformIndices: PGLuint){.

+                          uniformNames: cstringArray, uniformIndices: PGLuint){.

     stdcall, importc, ogl.}

 proc glGetActiveUniformsiv*(prog: GLuint, uniformCount: GLsizei, 

                             uniformIndices: PGLuint, pname: GLenum, 

@@ -6745,7 +6745,7 @@ proc glProgramParameteri*(prog: GLuint, pname: GLenum, value: GLint){.stdcall, i
 proc glUseProgramStages*(pipeline: GLuint, stages: GLbitfield, prog: GLuint){.

     stdcall, importc, ogl.}

 proc glActiveShaderProgram*(pipeline: GLuint, prog: GLuint){.stdcall, importc, ogl.}

-proc glCreateShaderProgramv*(typ: GLenum, count: GLsizei, strings: PPGLchar): GLuint{.

+proc glCreateShaderProgramv*(typ: GLenum, count: GLsizei, strings: cstringArray): GLuint{.

     stdcall, importc, ogl.}

 proc glBindProgramPipeline*(pipeline: GLuint){.stdcall, importc, ogl.}

 proc glDeleteProgramPipelines*(n: GLsizei, pipelines: PGLuint){.stdcall, importc, ogl.}