| 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 | |
|---|
| 11 | using namespace std; |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | Orxonox::Orxonox() {} |
|---|
| 16 | Orxonox::~Orxonox() {} |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | int 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 | |
|---|
| 36 | int Orxonox::menuInit() |
|---|
| 37 | { |
|---|
| 38 | glClearColor(0.0, 0.0, 0.0, 0.0); |
|---|
| 39 | glShadeModel(GL_FLAT); |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | int Orxonox::gameInit() |
|---|
| 44 | { |
|---|
| 45 | |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | int 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.