Advertisement
captmicro

Untitled

Sep 6th, 2010
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.51 KB | None | 0 0
  1. struct RENDER
  2. {
  3.     /*Program*/
  4.     PFNGLCREATEPROGRAMPROC glCreateProgram;
  5.     PFNGLDELETEPROGRAMPROC glDeleteProgram;
  6.     PFNGLUSEPROGRAMPROC glUseProgram;
  7.     PFNGLATTACHSHADERPROC glAttachShader;
  8.     PFNGLDETACHSHADERPROC glDetachShader;
  9.     PFNGLLINKPROGRAMPROC glLinkProgram;
  10.     PFNGLGETPROGRAMIVPROC glGetProgramiv;
  11.     PFNGLGETSHADERINFOLOGPROC glGetShaderInfoLog;
  12.     PFNGLGETUNIFORMLOCATIONPROC glGetUniformLocation;
  13.     PFNGLUNIFORM1IPROC glUniform1i;
  14.     PFNGLUNIFORM1IVPROC glUniform1iv;
  15.     PFNGLUNIFORM2IVPROC glUniform2iv;
  16.     PFNGLUNIFORM3IVPROC glUniform3iv;
  17.     PFNGLUNIFORM4IVPROC glUniform4iv;
  18.     PFNGLUNIFORM1FPROC glUniform1f;
  19.     PFNGLUNIFORM1FVPROC glUniform1fv;
  20.     PFNGLUNIFORM2FVPROC glUniform2fv;
  21.     PFNGLUNIFORM3FVPROC glUniform3fv;
  22.     PFNGLUNIFORM4FVPROC glUniform4fv;
  23.     PFNGLUNIFORMMATRIX4FVPROC glUniformMatrix4fv;
  24.     PFNGLVERTEXATTRIB1FPROC glVertexAttrib1f;
  25.     PFNGLVERTEXATTRIB1FVPROC glVertexAttrib1fv;
  26.     PFNGLVERTEXATTRIB2FVPROC glVertexAttrib2fv;
  27.     PFNGLVERTEXATTRIB3FVPROC glVertexAttrib3fv;
  28.     PFNGLVERTEXATTRIB4FVPROC glVertexAttrib4fv;
  29.     PFNGLENABLEVERTEXATTRIBARRAYPROC glEnableVertexAttribArray;
  30.     PFNGLBINDATTRIBLOCATIONPROC glBindAttribLocation;
  31.  
  32.     /*Shader*/
  33.     PFNGLCREATESHADERPROC glCreateShader;
  34.     PFNGLDELETESHADERPROC glDeleteShader;
  35.     PFNGLSHADERSOURCEPROC glShaderSource;
  36.     PFNGLCOMPILESHADERPROC glCompileShader;
  37.     PFNGLGETSHADERIVPROC glGetShaderiv;
  38.  
  39.     /*VBO*/
  40.     PFNGLGENBUFFERSPROC glGenBuffers;
  41.     PFNGLBINDBUFFERPROC glBindBuffer;
  42.     PFNGLBUFFERDATAPROC glBufferData;
  43.     PFNGLVERTEXATTRIBPOINTERPROC glVertexAttribPointer;
  44. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement