#include "common/math/real.h"#include "common/math/vector3.h"#include "iframeworkapp.h"#include "sceneorbiter.h"#include <cassert>#include <cstdlib>#include <GL/glut.h>#include <IL/il.h>#include <IL/ilu.h>#include <IL/ilut.h>Go to the source code of this file.
Functions | |
| void | reset () |
| void | print_help () |
| void | reshape (int width, int height) |
| void | keyboard (unsigned char key, int x, int y) |
| void | special (int key, int x, int y) |
| Vector2 | convert_mouse_to_ndc (int x, int y) |
| void | mouse (int button, int state, int x, int y) |
| void | motion (int x, int y) |
| void | think (int) |
| void | update_screen (int) |
| void | draw_grid () |
| void | draw_axis () |
| void | draw_dragging_axis () |
| void | display () |
| void | shutdown () |
| void | print_disclaimer () |
| int | main (int argc, char **argv) |
Variables | |
| const Real | TUMBLING_SPEED = 3.0 |
| const Real | TRACKING_SPEED = 10.0 |
| const Real | DOLLYING_SPEED = 8.0 |
| IFrameworkApp * | g_app |
| int | g_argc |
| char ** | g_argv |
| GLuint | g_grid_list |
| int | g_width |
| int | g_height |
| int | g_old_width |
| int | g_old_height |
| bool | g_is_fullscreen = false |
| bool | g_display_grid = true |
| bool | g_use_freelook = false |
| bool | g_in_step_mode = true |
| bool | g_take_step = false |
|
||||||||||||
|
Definition at line 162 of file sheep/src/framework/main.cpp. |
|
|
Definition at line 342 of file sheep/src/framework/main.cpp. References draw_axis(), draw_dragging_axis(), g_app, g_display_grid, g_grid_list, sheep::SceneOrbiter::GetAzimuth(), sheep::SceneOrbiter::GetCenter(), sheep::SceneOrbiter::GetDistance(), sheep::SceneOrbiter::GetElevation(), sheep::SceneOrbiter::IsDragging(), sheep::IFrameworkApp::m_orbiter, sheep::PI, sheep::IFrameworkApp::Render(), and rtod(). Referenced by main(). |
|
|
Definition at line 300 of file sheep/src/framework/main.cpp. References g_app, sheep::SceneOrbiter::GetDistance(), and sheep::IFrameworkApp::m_orbiter. Referenced by display(). |
|
|
Definition at line 324 of file sheep/src/framework/main.cpp. References g_app, sheep::SceneOrbiter::GetDistance(), and sheep::IFrameworkApp::m_orbiter. Referenced by display(). |
|
|
Definition at line 257 of file sheep/src/framework/main.cpp. Referenced by main(). |
|
||||||||||||||||
|
Definition at line 68 of file sheep/src/framework/main.cpp. References sheep::SceneOrbiter::CancelDrag(), sheep::SceneOrbiter::Configure(), sheep::DEFAULT_AZIMUTH, sheep::DEFAULT_DISTANCE, sheep::DEFAULT_ELEVATION, g_app, g_display_grid, g_height, g_in_step_mode, g_is_fullscreen, g_old_height, g_old_width, g_take_step, g_use_freelook, g_width, sheep::SceneOrbiter::IsDragging(), sheep::IFrameworkApp::KeyPressed(), sheep::IFrameworkApp::m_orbiter, print_help(), and reset(). Referenced by main(). |
|
||||||||||||
|
Definition at line 437 of file sheep/src/framework/main.cpp. References display(), draw_grid(), sheep::FRAME_RATE, g_app, g_argc, g_argv, g_grid_list, keyboard(), motion(), mouse(), print_disclaimer(), print_help(), reset(), reshape(), shutdown(), special(), think(), sheep::THINK_RATE, and update_screen(). |
|
||||||||||||
|
Definition at line 224 of file sheep/src/framework/main.cpp. References convert_mouse_to_ndc(), DOLLYING_SPEED, g_app, sheep::SceneOrbiter::IsDollying(), sheep::SceneOrbiter::IsDragging(), sheep::SceneOrbiter::IsTracking(), sheep::SceneOrbiter::IsTumbling(), sheep::IFrameworkApp::m_orbiter, TRACKING_SPEED, TUMBLING_SPEED, and sheep::SceneOrbiter::UpdateDrag(). Referenced by main(). |
|
||||||||||||||||||||
|
Definition at line 174 of file sheep/src/framework/main.cpp. References sheep::SceneOrbiter::BeginDrag(), convert_mouse_to_ndc(), DOLLYING_SPEED, sheep::SceneOrbiter::EndDrag(), g_app, g_use_freelook, sheep::SceneOrbiter::IsDragging(), sheep::IFrameworkApp::m_orbiter, TRACKING_SPEED, and TUMBLING_SPEED. Referenced by main(). |
|
|
Definition at line 399 of file sheep/src/framework/main.cpp. |
|
|
Definition at line 406 of file sheep/src/framework/main.cpp. References g_app, and sheep::IFrameworkApp::PrintHelp(). Referenced by keyboard(), and main(). |
|
|
Definition at line 391 of file sheep/src/framework/main.cpp. References g_app, g_argc, g_argv, and new_frameworkapp(). Referenced by keyboard(), and main(). |
|
||||||||||||
|
Definition at line 61 of file sheep/src/framework/main.cpp. References g_app, g_height, g_width, and sheep::IFrameworkApp::Reshape(). Referenced by main(). |
|
|
Definition at line 387 of file sheep/src/framework/main.cpp. References g_app. Referenced by main(). |
|
||||||||||||||||
|
Definition at line 145 of file sheep/src/framework/main.cpp. References g_app, g_use_freelook, sheep::SceneOrbiter::GetCenter(), sheep::SceneOrbiter::GetEyePosition(), sheep::IFrameworkApp::m_orbiter, and sheep::SceneOrbiter::SetCenter(). Referenced by main(). |
|
|
Definition at line 239 of file sheep/src/framework/main.cpp. References g_app, g_in_step_mode, g_take_step, sheep::IFrameworkApp::Think(), think(), and sheep::THINK_RATE. |
|
|
Definition at line 250 of file sheep/src/framework/main.cpp. References sheep::FRAME_RATE, and update_screen(). Referenced by main(), and update_screen(). |
|
|
Definition at line 40 of file sheep/src/framework/main.cpp. |
|
|
Definition at line 42 of file sheep/src/framework/main.cpp. Referenced by display(), draw_axis(), draw_dragging_axis(), keyboard(), main(), motion(), mouse(), print_help(), reset(), reshape(), shutdown(), special(), and think(). |
|
|
Definition at line 44 of file sheep/src/framework/main.cpp. |
|
|
Definition at line 45 of file sheep/src/framework/main.cpp. |
|
|
Definition at line 53 of file sheep/src/framework/main.cpp. Referenced by display(), and keyboard(). |
|
|
Definition at line 47 of file sheep/src/framework/main.cpp. |
|
|
Definition at line 49 of file sheep/src/framework/main.cpp. Referenced by convert_mouse_to_ndc(), keyboard(), and reshape(). |
|
|
Definition at line 55 of file sheep/src/framework/main.cpp. Referenced by keyboard(), and think(). |
|
|
Definition at line 52 of file sheep/src/framework/main.cpp. Referenced by keyboard(). |
|
|
Definition at line 50 of file sheep/src/framework/main.cpp. Referenced by keyboard(). |
|
|
Definition at line 50 of file sheep/src/framework/main.cpp. Referenced by keyboard(). |
|
|
Definition at line 56 of file sheep/src/framework/main.cpp. Referenced by keyboard(), and think(). |
|
|
Definition at line 54 of file sheep/src/framework/main.cpp. Referenced by keyboard(), mouse(), and special(). |
|
|
Definition at line 49 of file sheep/src/framework/main.cpp. Referenced by convert_mouse_to_ndc(), keyboard(), and reshape(). |
|
|
Definition at line 39 of file sheep/src/framework/main.cpp. |
|
|
Definition at line 38 of file sheep/src/framework/main.cpp. |
1.3.6