source:
orxonox.OLD/orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc
@
4546
Last change on this file since 4546 was 4546, checked in by patrick, 19 years ago | |
---|---|
File size: 1.3 KB |
Rev | Line | |
---|---|---|
[4333] | 1 | /* |
2 | orxonox - the future of 3D-vertical-scrollers | |
3 | ||
4 | Copyright (C) 2004 orx | |
5 | ||
6 | This program is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; either version 2, or (at your option) | |
9 | any later version. | |
10 | ||
11 | ### File Specific: | |
12 | main-programmer: Benjamin Grauer | |
13 | co-programmer: ... | |
14 | ||
15 | this file extends the framework file, so it renders what i want. | |
16 | */ | |
17 | ||
18 | #include "framework.h" | |
19 | ||
[4378] | 20 | #include "fields.h" |
[4381] | 21 | #include "stdlibincl.h" |
[4333] | 22 | |
[4546] | 23 | #include "cd_engine.h" |
[4333] | 24 | |
[4343] | 25 | void Framework::moduleInit(int argc, char** argv) |
[4333] | 26 | { |
[4546] | 27 | CDEngine::getInstance(); |
28 | ||
[4333] | 29 | } |
30 | ||
[4546] | 31 | |
[4334] | 32 | void Framework::moduleEventHandler(SDL_Event* event) |
33 | { | |
34 | switch (event->type) | |
35 | { | |
36 | case SDL_KEYDOWN: | |
37 | switch (event->key.keysym.sym) | |
38 | { | |
39 | case SDLK_i: | |
40 | break; | |
41 | } | |
42 | } | |
[4333] | 43 | } |
44 | ||
[4546] | 45 | |
[4333] | 46 | void Framework::moduleTick(float dt) |
47 | { | |
48 | } | |
49 | ||
[4546] | 50 | |
[4349] | 51 | void Framework::moduleDraw() const |
[4334] | 52 | { |
53 | } | |
[4333] | 54 | |
[4334] | 55 | |
[4333] | 56 | void Framework::moduleHelp(void) const |
57 | { | |
58 | PRINT(0)("\n"); | |
[4530] | 59 | PRINT(0)("i - print debug information of Collision-detection\n"); |
[4336] | 60 | PRINT(0)("\n"); |
[4333] | 61 | } |
62 | ||
[4546] | 63 | |
[4343] | 64 | void Framework::moduleInitGui(int argc, char** argv) |
[4333] | 65 | { |
66 | Window* guiMainWindow = NULL; | |
67 | ||
68 | initGUI(0, NULL); | |
69 | ||
[4530] | 70 | guiMainWindow = new Window("Collision_detection"); |
[4333] | 71 | { |
[4530] | 72 | // all the Widgets you need |
[4333] | 73 | } |
74 | Window::mainWindow->showall(); | |
75 | Window::mainWindow->setSize(300, 500); | |
76 | } |
Note: See TracBrowser
for help on using the repository browser.