Skip to content

Commit

Permalink
Updated OpenGL format examples for GLUT, GLFW, Qt4, Qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
MicBosi committed Feb 6, 2017
1 parent 3f450d3 commit f4b50e0
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 10 deletions.
4 changes: 3 additions & 1 deletion src/examples/GLFW_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

using namespace vl;

static void error_callback(int error, const char* description)
static void error_callback(int /*error*/, const char* description)
{
fputs( description, stderr );
}
Expand All @@ -63,6 +63,8 @@ int main(void)
format.setMultisampleSamples(16);
format.setMultisample(false);
format.setFullscreen(false);
//format.setOpenGLProfile( GLP_Core );
//format.setVersion( 3, 3 );

/* create the applet to be run */
ref<Applet> applet = new App_RotatingCube;
Expand Down
2 changes: 2 additions & 0 deletions src/examples/GLFW_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ int main ( int argc, char *argv[] )
format.setMultisampleSamples(16);
format.setMultisample(false);
format.setFullscreen(false);
//format.setOpenGLProfile( GLP_Core );
//format.setVersion( 3, 3 );

TestBatteryGLFW test_battery;
test_battery.run(test, argv[1], format, false);
Expand Down
6 changes: 4 additions & 2 deletions src/examples/GLUT_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ int main ( int argc, char *argv[] )
format.setRGBABits( 8,8,8,0 );
format.setDepthBufferBits(24);
format.setStencilBufferBits(8);
format.setMultisampleSamples(16);
format.setMultisample(false);
format.setFullscreen(false);
//format.setMultisampleSamples(16);
//format.setMultisample(true);
//format.setOpenGLProfile( GLP_Core );
//format.setVersion( 3, 3 );

/* create the applet to be run */
ref<Applet> applet = new App_RotatingCube;
Expand Down
6 changes: 4 additions & 2 deletions src/examples/GLUT_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ int main ( int argc, char *argv[] )
format.setRGBABits( 8,8,8,0 );
format.setDepthBufferBits(24);
format.setStencilBufferBits(8);
format.setMultisampleSamples(16);
format.setMultisample(false);
format.setFullscreen(false);
//format.setMultisampleSamples(16);
//format.setMultisample(true);
//format.setOpenGLProfile( GLP_Core );
//format.setVersion( 3, 3 );

TestBatteryGLUT test_battery;
test_battery.run(test, argv[1], format);
Expand Down
6 changes: 4 additions & 2 deletions src/examples/Qt4_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ int main(int argc, char *argv[])
format.setRGBABits( 8,8,8,0 );
format.setDepthBufferBits(24);
format.setStencilBufferBits(8);
format.setMultisampleSamples(16);
format.setMultisample(false);
format.setFullscreen(false);
//format.setMultisampleSamples(16);
//format.setMultisample(true);
//format.setOpenGLProfile( GLP_Core );
//format.setVersion( 3, 3 );

/* create the applet to be run */
ref<Applet> applet = new App_RotatingCube;
Expand Down
6 changes: 4 additions & 2 deletions src/examples/Qt5_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ int main(int argc, char *argv[])
format.setRGBABits( 8,8,8,0 );
format.setDepthBufferBits(24);
format.setStencilBufferBits(8);
format.setMultisampleSamples(16);
format.setMultisample(false);
format.setFullscreen(false);
//format.setMultisampleSamples(16);
//format.setMultisample(true);
//format.setOpenGLProfile( GLP_Core );
//format.setVersion( 3, 3 );

/* create the applet to be run */
ref<Applet> applet = new App_RotatingCube;
Expand Down
5 changes: 4 additions & 1 deletion src/examples/Qt5_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@ int main(int argc, char *argv[])
format.setDoubleBuffer(true);
format.setRGBABits( 8,8,8,0 );
format.setDepthBufferBits(24);
format.setFullscreen(false);
format.setStencilBufferBits(8);
format.setMultisampleSamples(16);
format.setMultisample(false);
format.setFullscreen(false);
//format.setOpenGLProfile( GLP_Core );
//format.setVersion( 3, 3 );

TestBatteryQt5 test_battery(app);
test_battery.run(test, argv[1], format);
Expand Down

0 comments on commit f4b50e0

Please sign in to comment.