#include <engine.h>

Public Member Functions | |
| Engine () | |
| void | init (void *param1, void *param2, char *cmdline) |
| void | load (char *level) |
| void | unload () |
| void | destroy () |
| void | quit () |
| void | render (double last_frametime) |
| void | render_scene (bool lights) |
| void | render_scene_using_shadowmap (bool lights) |
| void | render_entities (const matrix4 &trans, matrix4 &proj, bool lights, bool blend, bool vis=true) |
| void | render_shadow_volumes () |
| void | render_shadowmaps (bool everything) |
| void | render_portalcamera () |
| void | render_texture (int texObj, bool depth_view) |
| void | post_process (int num_passes, int type) |
| void | render_bloom (bool debug) |
| void | render_skyray (bool debug) |
| void | render_wave (bool debug) |
| void | resize (int width, int height) |
| void | fullscreen () |
| void | step (int tick_num) |
| void | dynamics () |
| void | handle_springs () |
| void | spatial_testing () |
| void | activate_light (float distance, Light *light) |
| void | update_audio () |
| void | set_reference_distance (float value) |
| void | set_max_distance (float value) |
| void | set_rolloff_factor (float value) |
| bool | mousepos (int x, int y, int deltax, int deltay) |
| void | keypress (char *key, bool pressed) |
| void | keystroke (char key, char *keystr) |
| void | load_entities () |
| int | get_entity () |
| int | get_player () |
| int | find_type (int ent_type, int skip) |
| void | clean_entity (int index) |
| void | load_models () |
| void | create_sources () |
| void | console (char *cmd) |
| void | handle_game (char key) |
| bool | collision_detect (RigidBody &body) |
| bool | map_collision (RigidBody &body) |
| bool | body_collision (RigidBody &body) |
| void | get_shaderlist_pk3 (char **shaderlist, int &num_shader) |
| int | bind (int port) |
| void | connect (char *server) |
| void | chat (char *name, char *msg) |
| void | kick (unsigned int i) |
| int | GetKeyState (input_t &keyboard) |
| input_t | GetKeyState (int keystate) |
| void | bind_keys () |
| void | server_recv () |
| void | server_send () |
| void | server_send_state (int client) |
| void | set_spawn_string (char *msg, client_t *client) |
| void | parse_spawn_string (char *msg) |
| void | client_recv () |
| void | client_send () |
| int | handle_servermsg (servermsg_t &servermsg, unsigned char *data, reliablemsg_t *reliablemsg) |
| void | render_weapon (const matrix4 &trans, bool lights, int i) |
| void | render_trails (matrix4 &trans) |
| void | render_players (matrix4 &trans, matrix4 &projection, bool lights, bool self) |
| int | serialize_ents (unsigned char *data, unsigned short int &num_ents, unsigned int &data_size) |
| int | deserialize_ents (unsigned char *data, unsigned short int num_ents, unsigned int data_size) |
| int | deserialize_net_player (net_player_t *player, int index, int etype) |
| int | deserialize_net_rigid (net_rigid_t *rigid, int index, int etype) |
| int | deserialize_net_trigger (net_trigger_t *net, int index, int etype) |
| int | deserialize_net_projectile (net_projectile_t *net, int index, int etype) |
| bool | select_wave (int source, char *file) |
| bool | play_wave_source (int source, int index) |
| int | play_wave (vec3 &position, int index) |
| int | play_wave_loop (vec3 &position, int index) |
| int | play_wave_global (int index) |
| int | play_wave_global_loop (int index) |
| int | get_load_wave (const char *file) |
| void | screenshot (unsigned int &luminance, bool luminance_only) |
| void | paste (char *data, unsigned int size) |
| void | copy (char *data, unsigned int size) |
| void | destroy_buffers () |
| void | render_to_framebuffer (double last_frametime) |
| void | set_dynamic_resolution (double last_frametime) |
| void | hitscan (vec3 &origin, vec3 &dir, int *index_list, int &num_index, int self, float range) |
| void | load_md5 () |
| void | find_path (int *&path, int &path_length, int start_path, int end_path) |
| void | zoom (float level) |
| void | reload_shaders () |
| void | enum_resolutions () |
| int | get_source () |
| int | get_loop_source () |
| int | get_global_source () |
| int | get_global_loop_source () |
| bool | terrain_collision (RigidBody &body) |
| void | render_ssao (bool debug) |
Friends | |
| class | Quake3 |
| class | Commando |
| Engine::Engine | ( | ) |
| void Engine::activate_light | ( | float | distance, |
| Light * | light | ||
| ) |

| int Engine::bind | ( | int | port | ) |


| void Engine::bind_keys | ( | ) |


| bool Engine::body_collision | ( | RigidBody & | body | ) |


| void Engine::chat | ( | char * | name, |
| char * | msg | ||
| ) |


| void Engine::clean_entity | ( | int | index | ) |

| void Engine::client_recv | ( | ) |


| void Engine::client_send | ( | ) |


| bool Engine::collision_detect | ( | RigidBody & | body | ) |


| void Engine::connect | ( | char * | server | ) |


| void Engine::console | ( | char * | cmd | ) |


| void Engine::copy | ( | char * | data, |
| unsigned int | size | ||
| ) |

| void Engine::create_sources | ( | ) |


| int Engine::deserialize_ents | ( | unsigned char * | data, |
| unsigned short int | num_ents, | ||
| unsigned int | data_size | ||
| ) |


| int Engine::deserialize_net_player | ( | net_player_t * | player, |
| int | index, | ||
| int | etype | ||
| ) |


| int Engine::deserialize_net_projectile | ( | net_projectile_t * | net, |
| int | index, | ||
| int | etype | ||
| ) |


| int Engine::deserialize_net_rigid | ( | net_rigid_t * | rigid, |
| int | index, | ||
| int | etype | ||
| ) |


| int Engine::deserialize_net_trigger | ( | net_trigger_t * | net, |
| int | index, | ||
| int | etype | ||
| ) |


| void Engine::destroy | ( | ) |


| void Engine::destroy_buffers | ( | ) |


| void Engine::dynamics | ( | ) |


| void Engine::enum_resolutions | ( | ) |

| void Engine::find_path | ( | int *& | path, |
| int & | path_length, | ||
| int | start_path, | ||
| int | end_path | ||
| ) |

| int Engine::find_type | ( | int | ent_type, |
| int | skip | ||
| ) |

| void Engine::fullscreen | ( | ) |

| int Engine::get_entity | ( | ) |


| int Engine::get_global_loop_source | ( | ) |

| int Engine::get_global_source | ( | ) |

| int Engine::get_load_wave | ( | const char * | file | ) |


| int Engine::get_loop_source | ( | ) |

| int Engine::get_player | ( | ) |


| void Engine::get_shaderlist_pk3 | ( | char ** | shaderlist, |
| int & | num_shader | ||
| ) |


| int Engine::get_source | ( | ) |

| int Engine::GetKeyState | ( | input_t & | keyboard | ) |

| input_t Engine::GetKeyState | ( | int | keystate | ) |
| void Engine::handle_game | ( | char | key | ) |


| int Engine::handle_servermsg | ( | servermsg_t & | servermsg, |
| unsigned char * | data, | ||
| reliablemsg_t * | reliablemsg | ||
| ) |


| void Engine::handle_springs | ( | ) |

| void Engine::hitscan | ( | vec3 & | origin, |
| vec3 & | dir, | ||
| int * | index_list, | ||
| int & | num_index, | ||
| int | self, | ||
| float | range | ||
| ) |


| void Engine::init | ( | void * | param1, |
| void * | param2, | ||
| char * | cmdline | ||
| ) |


| void Engine::keypress | ( | char * | key, |
| bool | pressed | ||
| ) |


| void Engine::keystroke | ( | char | key, |
| char * | keystr | ||
| ) |


| void Engine::kick | ( | unsigned int | i | ) |


| void Engine::load | ( | char * | level | ) |


| void Engine::load_entities | ( | ) |


| void Engine::load_md5 | ( | ) |


| void Engine::load_models | ( | ) |


| bool Engine::map_collision | ( | RigidBody & | body | ) |


| bool Engine::mousepos | ( | int | x, |
| int | y, | ||
| int | deltax, | ||
| int | deltay | ||
| ) |


| void Engine::parse_spawn_string | ( | char * | msg | ) |


| void Engine::paste | ( | char * | data, |
| unsigned int | size | ||
| ) |

| int Engine::play_wave | ( | vec3 & | position, |
| int | index | ||
| ) |


| int Engine::play_wave_global | ( | int | index | ) |


| int Engine::play_wave_global_loop | ( | int | index | ) |


| int Engine::play_wave_loop | ( | vec3 & | position, |
| int | index | ||
| ) |


| bool Engine::play_wave_source | ( | int | source, |
| int | index | ||
| ) |


| void Engine::post_process | ( | int | num_passes, |
| int | type | ||
| ) |


| void Engine::quit | ( | ) |

| void Engine::reload_shaders | ( | ) |


| void Engine::render | ( | double | last_frametime | ) |


| void Engine::render_bloom | ( | bool | debug | ) |


| void Engine::render_entities | ( | const matrix4 & | trans, |
| matrix4 & | proj, | ||
| bool | lights, | ||
| bool | blend, | ||
| bool | vis = true |
||
| ) |




| void Engine::render_portalcamera | ( | ) |


| void Engine::render_scene | ( | bool | lights | ) |


| void Engine::render_scene_using_shadowmap | ( | bool | lights | ) |


| void Engine::render_shadow_volumes | ( | ) |


| void Engine::render_shadowmaps | ( | bool | everything | ) |


| void Engine::render_skyray | ( | bool | debug | ) |


| void Engine::render_ssao | ( | bool | debug | ) |


| void Engine::render_texture | ( | int | texObj, |
| bool | depth_view | ||
| ) |


| void Engine::render_to_framebuffer | ( | double | last_frametime | ) |


| void Engine::render_trails | ( | matrix4 & | trans | ) |


| void Engine::render_wave | ( | bool | debug | ) |


| void Engine::render_weapon | ( | const matrix4 & | trans, |
| bool | lights, | ||
| int | i | ||
| ) |


| void Engine::resize | ( | int | width, |
| int | height | ||
| ) |


| void Engine::screenshot | ( | unsigned int & | luminance, |
| bool | luminance_only | ||
| ) |


| bool Engine::select_wave | ( | int | source, |
| char * | file | ||
| ) |

| int Engine::serialize_ents | ( | unsigned char * | data, |
| unsigned short int & | num_ents, | ||
| unsigned int & | data_size | ||
| ) |

| void Engine::server_recv | ( | ) |


| void Engine::server_send | ( | ) |


| void Engine::server_send_state | ( | int | client | ) |


| void Engine::set_dynamic_resolution | ( | double | last_frametime | ) |


| void Engine::set_max_distance | ( | float | value | ) |

| void Engine::set_reference_distance | ( | float | value | ) |

| void Engine::set_rolloff_factor | ( | float | value | ) |

| void Engine::set_spawn_string | ( | char * | msg, |
| client_t * | client | ||
| ) |


| void Engine::spatial_testing | ( | ) |


| void Engine::step | ( | int | tick_num | ) |


| bool Engine::terrain_collision | ( | RigidBody & | body | ) |
| void Engine::unload | ( | ) |


| void Engine::update_audio | ( | ) |


| void Engine::zoom | ( | float | level | ) |


|
friend |
|
friend |
|
protected |
| bool Engine::all_lights |
|
protected |
| unsigned int Engine::audio_loop_source[32] |
| unsigned int Engine::audio_source[32] |
| float Engine::bloom_amount |
| float Engine::bloom_strength |
| float Engine::bloom_threshold |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| char* Engine::cmd_list[1024] |
| char* Engine::cmdlist |
| bool Engine::collision_detect_enable |
| unsigned int Engine::controller |
| int Engine::current_model |
| int Engine::current_res |
| int Engine::current_team |
| bool Engine::debug_bloom |
|
protected |
| bool Engine::demo |
|
protected |
| float Engine::dof_far |
| float Engine::dof_near |
| int Engine::doom_sound |
| bool Engine::dynamic_resolution |
|
protected |
|
protected |
| bool Engine::enable_bloom |
| bool Engine::enable_blur |
| bool Engine::enable_emboss |
| bool Engine::enable_entities |
| bool Engine::enable_map |
| bool Engine::enable_map_shadows |
| bool Engine::enable_portal |
| bool Engine::enable_postprocess |
| bool Engine::enable_ssao |
| bool Engine::enable_stencil |
| bool Engine::enable_terrain |
| bool Engine::enable_wave |
|
protected |
|
protected |
| float Engine::fov |
| unsigned int Engine::fullscreen_timer |
| BaseGame* Engine::game |
|
protected |
|
protected |
| unsigned int Engine::global_loop_source[32] |
| unsigned int Engine::global_source[32] |
|
protected |
|
protected |
| char* Engine::hacklist |
| char* Engine::hash_list[32] |
| char Engine::hash_result[64][32] |
| char* Engine::hashlist |
|
protected |
| bool Engine::inf |
| unsigned int Engine::ingame_menu_timer |
|
protected |
|
protected |
| IsoSphere Engine::isosphere[10] |
| HashTable Engine::key_bind |
|
protected |
|
protected |
|
protected |
| unsigned int Engine::lum_avg |
| unsigned int Engine::lum_index |
| unsigned int Engine::lum_table[125] |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| int Engine::max_sources |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| unsigned int Engine::num_bot |
| unsigned int Engine::num_cmd |
| unsigned int Engine::num_hash |
| unsigned int Engine::num_light |
| int Engine::num_model |
| unsigned int Engine::num_pk3 |
| int Engine::num_res |
| int Engine::num_shader |
| int Engine::num_team |
| float Engine::object_level |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| char* Engine::pk3_list[32] |
| char* Engine::pk3list |
|
protected |
| unsigned int Engine::point_count |
|
protected |
|
protected |
| Bsp Engine::q3map |
|
protected |
| bool Engine::randomize_points |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| rendermode_t Engine::render_mode |
|
protected |
|
protected |
| float Engine::res_scale |
| char Engine::resbuf[MAX_RES][80] |
|
protected |
| MD5Model Engine::sentry |
|
protected |
|
protected |
|
protected |
| char* Engine::shader_list[256] |
| unsigned int Engine::shadow_light |
| bool Engine::shadowmaps |
| bool Engine::show_debug |
| bool Engine::show_hud |
| bool Engine::show_lines |
| bool Engine::show_names |
| bool Engine::show_shading |
|
protected |
|
protected |
| ScreenSpace Engine::ssao |
|
protected |
|
protected |
| float Engine::ssao_level |
|
protected |
| float Engine::ssao_radius |
|
protected |
|
protected |
|
protected |
| Terrain Engine::terrain |
| unsigned int Engine::testObj |
| Entity* Engine::thug22 |
| unsigned int Engine::tick_num |
|
protected |
|
protected |
|
protected |
| char* Engine::wad |
| bool Engine::weight_by_angle |
| unsigned int Engine::xres |
| unsigned int Engine::yres |
| MD5Model Engine::zcc |
| float Engine::zFar |
| float Engine::zNear |
| MD5Model Engine::zsec_shotgun |
1.8.2