Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct RENDER
- {
- /*Program*/
- PFNGLCREATEPROGRAMPROC glCreateProgram;
- PFNGLDELETEPROGRAMPROC glDeleteProgram;
- PFNGLUSEPROGRAMPROC glUseProgram;
- PFNGLATTACHSHADERPROC glAttachShader;
- PFNGLDETACHSHADERPROC glDetachShader;
- PFNGLLINKPROGRAMPROC glLinkProgram;
- PFNGLGETPROGRAMIVPROC glGetProgramiv;
- PFNGLGETSHADERINFOLOGPROC glGetShaderInfoLog;
- PFNGLGETUNIFORMLOCATIONPROC glGetUniformLocation;
- PFNGLUNIFORM1IPROC glUniform1i;
- PFNGLUNIFORM1IVPROC glUniform1iv;
- PFNGLUNIFORM2IVPROC glUniform2iv;
- PFNGLUNIFORM3IVPROC glUniform3iv;
- PFNGLUNIFORM4IVPROC glUniform4iv;
- PFNGLUNIFORM1FPROC glUniform1f;
- PFNGLUNIFORM1FVPROC glUniform1fv;
- PFNGLUNIFORM2FVPROC glUniform2fv;
- PFNGLUNIFORM3FVPROC glUniform3fv;
- PFNGLUNIFORM4FVPROC glUniform4fv;
- PFNGLUNIFORMMATRIX4FVPROC glUniformMatrix4fv;
- PFNGLVERTEXATTRIB1FPROC glVertexAttrib1f;
- PFNGLVERTEXATTRIB1FVPROC glVertexAttrib1fv;
- PFNGLVERTEXATTRIB2FVPROC glVertexAttrib2fv;
- PFNGLVERTEXATTRIB3FVPROC glVertexAttrib3fv;
- PFNGLVERTEXATTRIB4FVPROC glVertexAttrib4fv;
- PFNGLENABLEVERTEXATTRIBARRAYPROC glEnableVertexAttribArray;
- PFNGLBINDATTRIBLOCATIONPROC glBindAttribLocation;
- /*Shader*/
- PFNGLCREATESHADERPROC glCreateShader;
- PFNGLDELETESHADERPROC glDeleteShader;
- PFNGLSHADERSOURCEPROC glShaderSource;
- PFNGLCOMPILESHADERPROC glCompileShader;
- PFNGLGETSHADERIVPROC glGetShaderiv;
- /*VBO*/
- PFNGLGENBUFFERSPROC glGenBuffers;
- PFNGLBINDBUFFERPROC glBindBuffer;
- PFNGLBUFFERDATAPROC glBufferData;
- PFNGLVERTEXATTRIBPOINTERPROC glVertexAttribPointer;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement