Last change
on this file since 7023 was
7014,
checked in by bensch, 19 years ago
|
trunk: new algorithm for the Camera-Distance
|
File size:
1.2 KB
|
Rev | Line | |
---|
[4597] | 1 | /* |
---|
[3655] | 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: |
---|
[4293] | 12 | main-programmer: Benjamin Grauer |
---|
[3655] | 13 | co-programmer: ... |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY |
---|
| 17 | |
---|
[4293] | 18 | #include "state.h" |
---|
[3655] | 19 | |
---|
[7014] | 20 | |
---|
| 21 | #include "camera.h" |
---|
| 22 | |
---|
[4381] | 23 | #ifndef NULL |
---|
| 24 | #define NULL 0 |
---|
| 25 | #endif |
---|
| 26 | |
---|
[3655] | 27 | using namespace std; |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | |
---|
[7014] | 31 | Camera* State::camera = NULL; |
---|
| 32 | CameraTarget* State::cameraTarget = NULL; |
---|
[3655] | 33 | |
---|
[7014] | 34 | PNode* State::cameraNode = NULL; |
---|
| 35 | PNode* State::cameraTargetNode = NULL; |
---|
| 36 | |
---|
[6498] | 37 | SkyBox* State::skyBox = NULL; |
---|
[6468] | 38 | |
---|
[6142] | 39 | ObjectManager* State::objectManager = NULL; |
---|
[3655] | 40 | |
---|
[6441] | 41 | |
---|
[6498] | 42 | unsigned int State::resX = 1; |
---|
| 43 | unsigned int State::resY = 1; |
---|
| 44 | |
---|
| 45 | StoryEntity* State::storyEntity = NULL; |
---|
| 46 | |
---|
| 47 | Player* State::player = NULL; |
---|
| 48 | |
---|
[6695] | 49 | bool State::bOnline = false; |
---|
[6498] | 50 | |
---|
[6874] | 51 | bool State::bMenuMode = false; |
---|
| 52 | |
---|
| 53 | |
---|
[3655] | 54 | /** |
---|
[4836] | 55 | * sets camera and target of the current Camera |
---|
[4293] | 56 | */ |
---|
[7014] | 57 | void State::setCamera(Camera* camera, CameraTarget* cameraTarget) |
---|
[4293] | 58 | { |
---|
[4827] | 59 | State::camera = camera; |
---|
| 60 | State::cameraTarget = cameraTarget; |
---|
[7014] | 61 | State::cameraNode = camera; |
---|
| 62 | State::cameraTargetNode = cameraTarget; |
---|
[4293] | 63 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.