mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Moved bits parameters from glfwOpenWindow to glfwOpenWindowHint.
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ int main(void)
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
window = glfwOpenWindow(window_width, window_height, 0, 0, 0, 0, 0, 0, GLFW_WINDOW);
|
||||
window = glfwOpenWindow(window_width, window_height, GLFW_WINDOW);
|
||||
if (!window)
|
||||
{
|
||||
glfwTerminate();
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ int main(void)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
window = glfwOpenWindow(0, 0, 0, 0, 0, 0, 0, 0, GLFW_WINDOW);
|
||||
window = glfwOpenWindow(0, 0, GLFW_WINDOW);
|
||||
if (!window)
|
||||
{
|
||||
glfwTerminate();
|
||||
|
||||
+1
-1
@@ -274,7 +274,7 @@ int main(void)
|
||||
|
||||
printf("Library initialized\n");
|
||||
|
||||
window = glfwOpenWindow(0, 0, 0, 0, 0, 0, 0, 0, GLFW_WINDOW);
|
||||
window = glfwOpenWindow(0, 0, GLFW_WINDOW);
|
||||
if (!window)
|
||||
{
|
||||
glfwTerminate();
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@ int main(void)
|
||||
|
||||
glfwOpenWindowHint(GLFW_FSAA_SAMPLES, 4);
|
||||
|
||||
window = glfwOpenWindow(400, 400, 0, 0, 0, 0, 0, 0, GLFW_WINDOW);
|
||||
window = glfwOpenWindow(400, 400, GLFW_WINDOW);
|
||||
if (!window)
|
||||
{
|
||||
glfwTerminate();
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@ static GLboolean open_window(void)
|
||||
{
|
||||
int x, y;
|
||||
|
||||
window_handle = glfwOpenWindow(0, 0, 0, 0, 0, 0, 0, 0, GLFW_WINDOW);
|
||||
window_handle = glfwOpenWindow(0, 0, GLFW_WINDOW);
|
||||
if (!window_handle)
|
||||
return GL_FALSE;
|
||||
|
||||
|
||||
+3
-1
@@ -84,7 +84,9 @@ static int open_window(int width, int height, int mode)
|
||||
{
|
||||
double base = glfwGetTime();
|
||||
|
||||
window_handle = glfwOpenWindow(width, height, 0, 0, 0, 0, 16, 0, mode);
|
||||
glfwOpenWindowHint(GLFW_DEPTH_BITS, 16);
|
||||
|
||||
window_handle = glfwOpenWindow(width, height, mode);
|
||||
if (!window_handle)
|
||||
{
|
||||
fprintf(stderr, "Failed to create %s mode GLFW window\n", get_mode_name(mode));
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ int main(void)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
window = glfwOpenWindow(0, 0, 0, 0, 0, 0, 0, 0, GLFW_WINDOW);
|
||||
window = glfwOpenWindow(0, 0, GLFW_WINDOW);
|
||||
if (!window)
|
||||
{
|
||||
glfwTerminate();
|
||||
|
||||
+1
-1
@@ -183,7 +183,7 @@ int main(int argc, char** argv)
|
||||
// We assume here that we stand a better chance of success by leaving all
|
||||
// possible details of pixel format selection to GLFW
|
||||
|
||||
if (!glfwOpenWindow(0, 0, 0, 0, 0, 0, 0, 0, GLFW_WINDOW))
|
||||
if (!glfwOpenWindow(0, 0, GLFW_WINDOW))
|
||||
{
|
||||
glfwTerminate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user