Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

orxonox/trunk: implemented some test functions, that don't work untils now: some link error when compiling the collision_detection/framework

File size: 1.3 KB
Line 
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
20#include "fields.h"
21#include "stdlibincl.h"
22
23#include "cd_engine.h"
24
25void Framework::moduleInit(int argc, char** argv)
26{
27  CDEngine::getInstance();
28 
29}
30
31
32void 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    }
43}
44
45
46void Framework::moduleTick(float dt)
47{
48}
49
50
51void Framework::moduleDraw() const
52{
53}
54
55
56void Framework::moduleHelp(void) const
57{
58  PRINT(0)("\n");
59  PRINT(0)("i - print debug information of Collision-detection\n");
60  PRINT(0)("\n");
61}
62
63
64void Framework::moduleInitGui(int argc, char** argv)
65{
66  Window* guiMainWindow = NULL;
67 
68  initGUI(0, NULL);
69 
70  guiMainWindow = new Window("Collision_detection");
71  {
72    // all the Widgets you need
73  }
74  Window::mainWindow->showall();
75  Window::mainWindow->setSize(300, 500);
76}
Note: See TracBrowser for help on using the repository browser.