mirror of
https://github.com/glfw/glfw.git
synced 2024-11-23 02:25:10 +00:00
Finished confusion for code completion systems.
This commit is contained in:
parent
a66a4cd1e4
commit
508e76e53d
12
src/window.c
12
src/window.c
@ -632,7 +632,7 @@ GLFWAPI GLFWwindow glfwOpenWindow(int width, int height,
|
|||||||
// Make the OpenGL context associated with the specified window current
|
// Make the OpenGL context associated with the specified window current
|
||||||
//========================================================================
|
//========================================================================
|
||||||
|
|
||||||
GLFWAPI void glfwMakeWindowCurrent(GLFWwindow window)
|
GLFWAPI void glfwMakeWindowCurrent(GLFWwindow handle)
|
||||||
{
|
{
|
||||||
if (!_glfwInitialized)
|
if (!_glfwInitialized)
|
||||||
{
|
{
|
||||||
@ -640,6 +640,8 @@ GLFWAPI void glfwMakeWindowCurrent(GLFWwindow window)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_GLFWwindow* window = (_GLFWwindow*) handle;
|
||||||
|
|
||||||
if (_glfwLibrary.currentWindow == window)
|
if (_glfwLibrary.currentWindow == window)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -652,7 +654,7 @@ GLFWAPI void glfwMakeWindowCurrent(GLFWwindow window)
|
|||||||
// Returns GL_TRUE if the specified window handle is an actual window
|
// Returns GL_TRUE if the specified window handle is an actual window
|
||||||
//========================================================================
|
//========================================================================
|
||||||
|
|
||||||
GLFWAPI int glfwIsWindow(GLFWwindow window)
|
GLFWAPI int glfwIsWindow(GLFWwindow handle)
|
||||||
{
|
{
|
||||||
_GLFWwindow* entry;
|
_GLFWwindow* entry;
|
||||||
|
|
||||||
@ -662,6 +664,8 @@ GLFWAPI int glfwIsWindow(GLFWwindow window)
|
|||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_GLFWwindow* window = (_GLFWwindow*) handle;
|
||||||
|
|
||||||
if (window == NULL)
|
if (window == NULL)
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
|
|
||||||
@ -817,7 +821,7 @@ GLFWAPI void glfwCloseWindow(GLFWwindow handle)
|
|||||||
// Set the window title
|
// Set the window title
|
||||||
//========================================================================
|
//========================================================================
|
||||||
|
|
||||||
GLFWAPI void glfwSetWindowTitle(GLFWwindow window, const char* title)
|
GLFWAPI void glfwSetWindowTitle(GLFWwindow handle, const char* title)
|
||||||
{
|
{
|
||||||
if (!_glfwInitialized)
|
if (!_glfwInitialized)
|
||||||
{
|
{
|
||||||
@ -825,6 +829,8 @@ GLFWAPI void glfwSetWindowTitle(GLFWwindow window, const char* title)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_GLFWwindow* window = (_GLFWwindow*) handle;
|
||||||
|
|
||||||
_glfwPlatformSetWindowTitle(window, title);
|
_glfwPlatformSetWindowTitle(window, title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user