Moved bits parameters from glfwOpenWindow to glfwOpenWindowHint.

This commit is contained in:
Camilla Berglund
2010-09-09 19:58:51 +02:00
parent 5fd3fc71de
commit 950a3beda2
16 changed files with 59 additions and 28 deletions
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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();