#include <stdio.h>#include <stdlib.h>#include <ctype.h>#include <string.h>#include <unistd.h>#include <math.h>#include <GL/glut.h>#include <signal.h>#include <GL/gl.h>#include <GL/glu.h>#include <plib/ssg.h>#include <plib/pu.h>#include "common_gui_funcs.h"#include "core.h"#include "configuration.h"#include "userData.h"Go to the source code of this file.
Compounds | |
| class | wrapper |
Defines | |
| #define | str(s) #s |
Enumerations | |
| enum | { MOVE_CAM, IN_GAME } |
Functions | |
| void | get_camera_data (int i) |
| void | update_motion () |
| void | mouse_motionfn (int x, int y) |
| void | keyfn (unsigned char k, int, int) |
| void | displayfn () |
| void | mousefn (int button, int state, int x, int y) |
| void | init_graphics_once (int argc, char **argv) |
| void | sig_catcher (int sig) |
| int | main (int argc, char **argv) |
Variables | |
| ssgRoot * | scene = NULL |
| int | display_width |
| int | display_height |
| int | game_state |
| puMenuBar * | main_menu = NULL |
| bool | in_game_menu = false |
| puGroup * | total_menu = NULL |
| puGroup * | overlay_menu = NULL |
| configuration * | config = NULL |
| userData * | loc_player = NULL |
| GameCore * | loc_core = NULL |
| sgVec3 * | cam_target = NULL |
| float | view_distance = 10.0f |
| float | view_x_angle = 0.0f |
| float | view_z_angle = 10.0f |
| sgVec2 | nmouse |
| int | win_handle = -1 |
| int | input_mode = IN_GAME |
| wrapper * | foo = NULL |
|
|
Definition at line 38 of file main.cpp. Referenced by wrapper::wrapper(). |
|
|
|
|
|
Definition at line 141 of file main.cpp. References scene, and update_motion(). Referenced by _register_glutfuncs_game(). |
|
|
Definition at line 74 of file main.cpp. References config, configuration::get_campos(), view_distance, view_x_angle, and view_z_angle. Referenced by keyfn(). |
|
||||||||||||
|
Definition at line 165 of file main.cpp. References _register_glutfuncs_menuonly(), config, display_height, display_width, configuration::get_fullscreen(), configuration::get_game_mode_string(), configuration::get_window_height(), configuration::get_window_width(), MODEL_PATH, TEXTURE_PATH, win_handle, and WINDOW_TITLE. Referenced by main(). |
|
||||||||||||||||
|
Definition at line 91 of file main.cpp. References config, get_camera_data(), in_game_menu, main_menu, configuration::set_campos(), view_distance, view_x_angle, and view_z_angle. Referenced by _register_glutfuncs_game(). |
|
||||||||||||
|
Definition at line 237 of file main.cpp. References foo, wrapper::go(), init_graphics_once(), and sig_catcher(). |
|
||||||||||||
|
Definition at line 86 of file main.cpp. References display_height, display_width, and nmouse. Referenced by _register_glutfuncs_game(). |
|
||||||||||||||||||||
|
Definition at line 157 of file main.cpp. Referenced by _register_glutfuncs_game(). |
|
|
Definition at line 232 of file main.cpp. References foo. Referenced by main(). |
|
|
Definition at line 82 of file main.cpp. Referenced by displayfn(). |
|
|
|
|
|
Definition at line 56 of file main.cpp. Referenced by MainMenu::_display_graph_config(), MainMenu::apply_graph_settings(), get_camera_data(), init_graphics_once(), keyfn(), MainMenu::test_graph_settings(), and wrapper::wrapper(). |
|
|
Definition at line 46 of file main.cpp. Referenced by MainMenu::_display_graph_config(), MainMenu::_display_total(), MainMenu::apply_graph_settings(), init_graphics_once(), mouse_motionfn(), reshape(), and start_game_cb(). |
|
|
Definition at line 45 of file main.cpp. Referenced by MainMenu::_display_graph_config(), MainMenu::_display_total(), MainMenu::apply_graph_settings(), init_graphics_once(), mouse_motionfn(), reshape(), and start_game_cb(). |
|
|
Definition at line 230 of file main.cpp. Referenced by main(), and sig_catcher(). |
|
|
Definition at line 48 of file main.cpp. Referenced by GameCore::act_on_state(), and GameCore::GameCore(). |
|
|
Definition at line 51 of file main.cpp. Referenced by keyfn(). |
|
|
|
|
|
Definition at line 58 of file main.cpp. Referenced by GameCore::GameCore(), and wrapper::go(). |
|
|
|
|
|
Definition at line 50 of file main.cpp. Referenced by keyfn(). |
|
|
Definition at line 64 of file main.cpp. Referenced by mouse_motionfn(). |
|
|
Definition at line 54 of file main.cpp. Referenced by GameCore::~GameCore(). |
|
|
Definition at line 41 of file main.cpp. Referenced by displayfn(), wrapper::go(), and wrapper::~wrapper(). |
|
|
Definition at line 53 of file main.cpp. Referenced by _clear_main_menu(), _clear_total_menu(), MainMenu::_display_graph_config(), MainMenu::_display_total(), and remove_char_creator(). |
|
|
Definition at line 61 of file main.cpp. Referenced by get_camera_data(), and keyfn(). |
|
|
Definition at line 62 of file main.cpp. Referenced by get_camera_data(), and keyfn(). |
|
|
Definition at line 63 of file main.cpp. Referenced by get_camera_data(), and keyfn(). |
|
|
Definition at line 65 of file main.cpp. Referenced by MainMenu::apply_graph_settings(), and init_graphics_once(). |
1.3.2