My Project: openb3dlib.mod/openb3d/src/global.h Source File

My Project

global.h
Go to the documentation of this file.
1 /*
2 * global.h
3 * iminib3d
4 *
5 * Created by Simon Harrison.
6 * Copyright Si Design. All rights reserved.
7 *
8 */
9
10 #ifndef GLOBAL_H
11 #define GLOBAL_H
12
13 #include "pivot.h"
14 #include "mesh.h"
15
16 class Camera;
17
18 class Global{
19
20 public:
21
22 static int width,height,mode,depth,rate;
23 static float ambient_red,ambient_green,ambient_blue;
24 static Shader* ambient_shader;
25
26 static int vbo_enabled;
27 static int vbo_min_tris;
28
29 static int Shadows_enabled;
30
31 static float anim_speed;
32
33 static int fog_enabled; // used to keep track of whether fog is enabled between camera update and mesh render
34
35 static Pivot* root_ent;
36
37 static Camera* camera_in_use;
38
39 static void Graphics();
40
41 static void AmbientLight(float r,float g,float b);
42
43 static void ClearCollisions();
44 static void Collisions(int src_no,int dest_no,int method_no,int response_no=0);
45 static void ClearWorld(int entities=true,int brushes=true,int textures=true);
46 static void UpdateWorld(float anim_speed=1.0);
47 static void RenderWorld();
48 static void UpdateEntityAnim(Mesh& mesh);
49
50 static int alpha_enable;
51 static int blend_mode;
52 static int fx1;
53 static int fx2;
54
55
56
57 };
58
59 bool CompareEntityOrder(Entity* ent1,Entity* ent2);
60
61 #endif
Global::vbo_enabled
static int vbo_enabled
Definition: global.h:26
pivot.h
Global::Collisions
static void Collisions(int src_no, int dest_no, int method_no, int response_no=0)
Definition: global.cpp:113
Global::AmbientLight
static void AmbientLight(float r, float g, float b)
Definition: global.cpp:98
Mesh
Definition: mesh.h:34
Global::ambient_shader
static Shader * ambient_shader
Definition: global.h:24
Global::ClearWorld
static void ClearWorld(int entities=true, int brushes=true, int textures=true)
Definition: global.cpp:140
Global::width
static int width
Definition: global.h:22
Pivot
Definition: pivot.h:19
mesh.h
Global::fx1
static int fx1
Definition: global.h:52
Global::RenderWorld
static void RenderWorld()
Definition: global.cpp:200
Camera
Definition: camera.h:23
Global::ambient_blue
static float ambient_blue
Definition: global.h:23
Global::height
static int height
Definition: global.h:22
CompareEntityOrder
bool CompareEntityOrder(Entity *ent1, Entity *ent2)
Definition: global.cpp:298
Global::UpdateEntityAnim
static void UpdateEntityAnim(Mesh &mesh)
Definition: global.cpp:220
Global::ClearCollisions
static void ClearCollisions()
Definition: global.cpp:104
Global::ambient_green
static float ambient_green
Definition: global.h:23
Global::rate
static int rate
Definition: global.h:22
Entity
Definition: entity.h:27
Global::UpdateWorld
static void UpdateWorld(float anim_speed=1.0)
Definition: global.cpp:168
Global::Shadows_enabled
static int Shadows_enabled
Definition: global.h:29
Global::blend_mode
static int blend_mode
Definition: global.h:51
Global::ambient_red
static float ambient_red
Definition: global.h:23
Global::fog_enabled
static int fog_enabled
Definition: global.h:33
Global
Definition: global.h:18
Global::alpha_enable
static int alpha_enable
Definition: global.h:50
Global::root_ent
static Pivot * root_ent
Definition: global.h:35
load3ds::mesh
Mesh * mesh
Definition: 3ds.cpp:46
Shader
Definition: shadermat.h:56
Global::camera_in_use
static Camera * camera_in_use
Definition: global.h:37
Global::vbo_min_tris
static int vbo_min_tris
Definition: global.h:27
Global::anim_speed
static float anim_speed
Definition: global.h:31
Global::mode
static int mode
Definition: global.h:22
Global::Graphics
static void Graphics()
Definition: global.cpp:57
Global::fx2
static int fx2
Definition: global.h:53
Global::depth
static int depth
Definition: global.h:22