Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/core/orxonox.cc @ 1819

Last change on this file since 1819 was 1803, checked in by patrick, 21 years ago

doc update

File size: 801 bytes
Line 
1/* class definition header */
2#include "orxonox.h"
3
4/* standard headers */
5#include <iostream>
6#include <cstdio>
7
8/* openGL Headers */
9#include <GL/glut.h>
10
11using namespace std;
12
13
14
15Orxonox::Orxonox() {}
16Orxonox::~Orxonox() {}
17
18
19int Orxonox::globalInit(int argc, char** argv) 
20{
21  glutInit(&argc, argv);
22  glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
23  glutInitWindowSize(500, 500);
24  glutInitWindowPosition(100, 100);
25  glutCreateWindow("orxOnox");
26 
27  /* window event dispatchers */
28  /*
29    glutDisplayFunc(display);
30    glutReshapeFunc(resphape);
31    glutMainLoop();
32  */
33}
34
35
36int Orxonox::menuInit()
37{
38  glClearColor(0.0, 0.0, 0.0, 0.0);
39  glShadeModel(GL_FLAT);
40}
41
42
43int Orxonox::gameInit() 
44{
45
46}
47
48
49int main( int argc, char** argv ) 
50{ 
51  Orxonox orx;
52  orx.globalInit(argc, argv);
53  return 0;
54}
Note: See TracBrowser for help on using the repository browser.