Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 4534 was 4530, checked in by bensch, 19 years ago

orxonox/trunk: subproject collision_detection cleaned

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
24void Framework::moduleInit(int argc, char** argv)
25{
26}
27
28void Framework::moduleEventHandler(SDL_Event* event)
29{
30  switch (event->type)
31    {
32    case SDL_KEYDOWN:
33      switch (event->key.keysym.sym)
34        {
35        case SDLK_i:
36          break;
37        }
38    }
39}
40
41void Framework::moduleTick(float dt)
42{
43}
44
45void Framework::moduleDraw() const
46{
47}
48
49
50void Framework::moduleHelp(void) const
51{
52  PRINT(0)("\n");
53  PRINT(0)("i - print debug information of Collision-detection\n");
54  PRINT(0)("\n");
55}
56
57void Framework::moduleInitGui(int argc, char** argv)
58{
59  Window* guiMainWindow = NULL;
60 
61  initGUI(0, NULL);
62 
63  guiMainWindow = new Window("Collision_detection");
64  {
65    // all the Widgets you need
66  }
67  Window::mainWindow->showall();
68  Window::mainWindow->setSize(300, 500);
69}
Note: See TracBrowser for help on using the repository browser.