Update rlgl.h
This commit is contained in:
parent
81667d165b
commit
7eaf4f58f1
12
src/rlgl.h
12
src/rlgl.h
|
|
@ -666,7 +666,7 @@ RLAPI void rlglInit(int width, int height); // Initialize rlgl (buff
|
|||
RLAPI void rlglClose(void); // De-initialize rlgl (buffers, shaders, textures)
|
||||
RLAPI void rlLoadExtensions(void *loader); // Load OpenGL extensions (loader function required)
|
||||
RLAPI int rlGetVersion(void); // Get current OpenGL version
|
||||
RLAPI GLFWglproc rlGetProcAddress(const char* procname) // Get current Proc address
|
||||
RLAPI GLFWglproc rlGetProcAddress(const char* procname); // Get current Proc address
|
||||
RLAPI void rlSetFramebufferWidth(int width); // Set current framebuffer width
|
||||
RLAPI int rlGetFramebufferWidth(void); // Get default framebuffer width
|
||||
RLAPI void rlSetFramebufferHeight(int height); // Set current framebuffer height
|
||||
|
|
@ -2517,16 +2517,16 @@ int rlGetVersion(void)
|
|||
return glVersion;
|
||||
}
|
||||
|
||||
GLFWglproc rlGetProcAddress(const char* procname)
|
||||
int rlGetProcAddress(const char* procname)
|
||||
{
|
||||
GLFWglproc procAddress = 0;
|
||||
int procAddress = 0;
|
||||
|
||||
#if defined(PLATFORM_DESKTOP_SDL)
|
||||
procAddress = SDL_GL_GetProcAddress(procname);
|
||||
procAddress = (int) SDL_GL_GetProcAddress(procname);
|
||||
#elif defined(PLATFORM_ANDROID)
|
||||
procAddress = eglGetProcAddress(procname);
|
||||
procAddress = (int) eglGetProcAddress(procname);
|
||||
#else
|
||||
procAddress = glfwGetProcAddress(procname);
|
||||
procAddress = (int) glfwGetProcAddress(procname);
|
||||
#endif
|
||||
|
||||
return procAddress;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user