Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualD.V.D

Posted 07 October 2012 - 11:05 AM

I used this code to create a blank window and I compiled under VC2010 so I just built my project. Not sure about any command lines being used just the default build and run on VC2010.


#include <GL/freeglut.h>


static void RenderSceneCB()
{
glClear(GL_COLOR_BUFFER_BIT);
glutSwapBuffers();
}

static void InitializeGlutCallbacks()
{
glutDisplayFunc(RenderSceneCB);
}


int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA);
glutInitWindowSize(1024, 768);
glutInitWindowPosition(100, 100);
glutCreateWindow("Tutorial 01");

InitializeGlutCallbacks();

glClearColor(0.0f, 0.0f, 0.0f, 0.0f);

glutMainLoop();

return 0;
}

#2D.V.D

Posted 07 October 2012 - 11:05 AM

I used this code to create a blank window and I compiled under VC2010 so I just built my project. Not sure about any command lines being used just the default build and run on VC2010.

[source lang="cpp"]#include <GL/freeglut.h>static void RenderSceneCB(){ glClear(GL_COLOR_BUFFER_BIT); glutSwapBuffers();}static void InitializeGlutCallbacks(){ glutDisplayFunc(RenderSceneCB);}int main(int argc, char** argv){ glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA); glutInitWindowSize(1024, 768); glutInitWindowPosition(100, 100); glutCreateWindow("Tutorial 01"); InitializeGlutCallbacks(); glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glutMainLoop(); return 0;}[/source]

#1D.V.D

Posted 07 October 2012 - 11:04 AM

I used this code to create a blank window and I compiled under VC2010 so I just built my project. Not sure about any command lines being used just the default build and run on VC2010.

[source lang="cpp"]#include <GL/freeglut.h>static void RenderSceneCB(){ glClear(GL_COLOR_BUFFER_BIT); glutSwapBuffers();}static void InitializeGlutCallbacks(){ glutDisplayFunc(RenderSceneCB);}int main(int argc, char** argv){ glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA); glutInitWindowSize(1024, 768); glutInitWindowPosition(100, 100); glutCreateWindow("Tutorial 01"); InitializeGlutCallbacks(); glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glutMainLoop(); return 0;}[/source]

PARTNERS