1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

Renamed context API init/terminate functions.

This commit is contained in:
Camilla Berglund 2013-01-15 20:49:29 +01:00
parent a8ea120cae
commit 38947b37af
7 changed files with 14 additions and 14 deletions

View File

@ -101,7 +101,7 @@ int _glfwPlatformInit(void)
_glfwInitJoysticks();
if (!_glfwInitOpenGL())
if (!_glfwInitContextAPI())
return GL_FALSE;
_glfw.ns.eventSource = CGEventSourceCreate(kCGEventSourceStateHIDSystemState);
@ -141,7 +141,7 @@ void _glfwPlatformTerminate(void)
_glfwTerminateJoysticks();
_glfwTerminateOpenGL();
_glfwTerminateContextAPI();
}

View File

@ -118,8 +118,8 @@ GLboolean _glfwSetVideoMode(_GLFWmonitor* monitor, int* width, int* height, int*
void _glfwRestoreVideoMode(_GLFWmonitor* monitor);
// OpenGL support
int _glfwInitOpenGL(void);
void _glfwTerminateOpenGL(void);
int _glfwInitContextAPI(void);
void _glfwTerminateContextAPI(void);
int _glfwCreateContext(_GLFWwindow* window,
const _GLFWwndconfig* wndconfig,
const _GLFWfbconfig* fbconfig);

View File

@ -61,7 +61,7 @@ static _GLFW_TLS _GLFWwindow* _glfwCurrentWindow = NULL;
// Initialize EGL
//========================================================================
int _glfwInitOpenGL(void)
int _glfwInitContextAPI(void)
{
_glfw.egl.display = eglGetDisplay(_GLFW_EGL_NATIVE_DISPLAY);
if (_glfw.egl.display == EGL_NO_DISPLAY)
@ -89,7 +89,7 @@ int _glfwInitOpenGL(void)
// Terminate EGL
//========================================================================
void _glfwTerminateOpenGL(void)
void _glfwTerminateContextAPI(void)
{
eglTerminate(_glfw.egl.display);
}

View File

@ -113,7 +113,7 @@ static GLXContext createLegacyContext(_GLFWwindow* window,
// Initialize GLX
//========================================================================
int _glfwInitOpenGL(void)
int _glfwInitContextAPI(void)
{
#ifdef _GLFW_DLOPEN_LIBGL
int i;
@ -237,7 +237,7 @@ int _glfwInitOpenGL(void)
// Terminate GLX
//========================================================================
void _glfwTerminateOpenGL(void)
void _glfwTerminateContextAPI(void)
{
// Unload libGL.so if necessary
#ifdef _GLFW_DLOPEN_LIBGL

View File

@ -46,7 +46,7 @@ static pthread_key_t _glfwCurrentTLS;
// Initialize OpenGL support
//========================================================================
int _glfwInitOpenGL(void)
int _glfwInitContextAPI(void)
{
if (pthread_key_create(&_glfwCurrentTLS, NULL) != 0)
{
@ -63,7 +63,7 @@ int _glfwInitOpenGL(void)
// Terminate OpenGL support
//========================================================================
void _glfwTerminateOpenGL(void)
void _glfwTerminateContextAPI(void)
{
pthread_key_delete(_glfwCurrentTLS);
}

View File

@ -632,7 +632,7 @@ int _glfwPlatformInit(void)
_glfwInitGammaRamp();
if (!_glfwInitOpenGL())
if (!_glfwInitContextAPI())
return GL_FALSE;
_glfw.x11.cursor = createNULLCursor();
@ -662,7 +662,7 @@ void _glfwPlatformTerminate(void)
_glfwTerminateJoysticks();
_glfwTerminateOpenGL();
_glfwTerminateContextAPI();
terminateDisplay();

View File

@ -224,8 +224,8 @@ void _glfwInitGammaRamp(void);
void _glfwTerminateGammaRamp(void);
// OpenGL support
int _glfwInitOpenGL(void);
void _glfwTerminateOpenGL(void);
int _glfwInitContextAPI(void);
void _glfwTerminateContextAPI(void);
int _glfwCreateContext(_GLFWwindow* window,
const _GLFWwndconfig* wndconfig,
const _GLFWfbconfig* fbconfig);