Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc @ 4551

Last change on this file since 4551 was 4551, checked in by patrick, 19 years ago

orxonox/trunk: further work on the test env, cdengine draw functions, debug functions

File size: 1.4 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  CDEngine::getInstance()->drawBV(1,1);
54}
55
56
57void Framework::moduleHelp(void) const
58{
59  PRINT(0)("\n");
60  PRINT(0)("i - print debug information of Collision-detection\n");
61  PRINT(0)("\n");
62}
63
64
65void Framework::moduleInitGui(int argc, char** argv)
66{
67  Window* guiMainWindow = NULL;
68 
69  initGUI(0, NULL);
70 
71  guiMainWindow = new Window("Collision_detection");
72  {
73    // all the Widgets you need
74  }
75  Window::mainWindow->showall();
76  Window::mainWindow->setSize(300, 500);
77}
Note: See TracBrowser for help on using the repository browser.