mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-09 20:58:31 +09:00
[Feat] (...): Add ProgramState while implementing these gl functions. Rename some functions in MG_State.
This commit is contained in:
@@ -8,7 +8,20 @@
|
||||
#include "../../../../Includes.h"
|
||||
|
||||
namespace MG_GL::GL {
|
||||
void GetProgramiv(GLuint program, GLenum pname, GLint *params);
|
||||
GLuint CreateShader(GLenum type);
|
||||
GLuint CreateProgram();
|
||||
void DeleteShader(GLuint shader);
|
||||
void DeleteProgram(GLuint program);
|
||||
void AttachShader(GLuint program, GLuint shader);
|
||||
void ShaderSource(GLuint shader, GLsizei count, const GLchar *const*string, const GLint* length);
|
||||
void CompileShader(GLuint shader);
|
||||
void LinkProgram(GLuint program);
|
||||
void UseProgram(GLuint program);
|
||||
void BindAttribLocation(GLuint program, GLuint index, const GLchar* name);
|
||||
GLint GetAttribLocation(GLuint program, const GLchar* name);
|
||||
GLint GetUniformLocation(GLuint program, const GLchar* name);
|
||||
void GetProgramiv(GLuint program, GLenum pname, GLint* params);
|
||||
void GetShaderiv(GLuint shader, GLenum pname, GLint* params);
|
||||
}
|
||||
|
||||
#endif //MOBILEGL_GL_PROGRAM_H
|
||||
|
||||
Reference in New Issue
Block a user