Crazy Eddie's GUI System
${CEGUI_VERSION}
|
Protected Member Functions | |
void | run () |
The abstract function for initialising and running the application. | |
void | destroyWindow () |
The abstract function for destroying the renderer and the window. | |
void | beginRendering (const float elapsed) |
Implementation function to perform required pre-render operations. | |
void | endRendering () |
Implementation function to perform required post-render operations. | |
void | drawFrame () |
![]() | |
virtual void | initialiseResourceGroupDirectories () |
Setup standard sample resource group directory locations. Default uses the CEGUI::DefaultResourceProvider - override if the sample base app being implemented uses something else! | |
virtual void | initialiseDefaultResourceGroups () |
initialise the standard default resource groups used by the samples. | |
void | updateFPS (const float elapsed) |
function that updates the FPS rendering as needed. | |
void | updateLogo (const float elapsed) |
function that updates the logo rotation as needed. | |
void | positionLogo () |
function that positions the logo in the correct place. | |
void | positionFPS () |
positions the FPS counter at the correct place. | |
bool | sampleBrowserOverlayHandler (const CEGUI::EventArgs &args) |
event handler function that draws the logo and FPS overlay elements. | |
bool | sampleOverlayHandler (const CEGUI::EventArgs &args) |
event handler function that draws the FPS overlay elements. | |
bool | resizeHandler (const CEGUI::EventArgs &args) |
event handler function called when main view is resized | |
Static Protected Member Functions | |
static void | initGLFW () |
static void | createGLFWWindow () |
static void | setGLFWAppConfiguration () |
static void GLFWCALL | glfwKeyCallback (int key, int action) |
static void GLFWCALL | glfwCharCallback (int character, int action) |
static void GLFWCALL | glfwMouseButtonCallback (int key, int action) |
static void GLFWCALL | glfwMouseWheelCallback (int position) |
static void GLFWCALL | glfwMousePosCallback (int x, int y) |
static int GLFWCALL | glfwWindowCloseCallback (void) |
static void GLFWCALL | glfwWindowResizeCallback (int width, int height) |
static CEGUI::Key::Scan | GlfwToCeguiKey (int glfwKey) |
static CEGUI::MouseButton | GlfwToCeguiMouseButton (int glfwButton) |
Static Protected Attributes | |
static CEGuiGLFWSharedBase * | d_appInstance = 0 |
static double | d_frameTime = 0 |
static int | d_modifiers = 0 |
static bool | d_windowSized = false |
static int | d_newWindowWidth = CEGuiGLFWSharedBase::s_defaultWindowWidth |
static int | d_newWindowHeight = CEGuiGLFWSharedBase::s_defaultWindowWidth |
static bool | d_mouseLeftWindow = false |
static bool | d_mouseDisableCalled = false |
static int | d_oldMousePosX = 0 |
static int | d_oldMousePosY = 0 |
![]() | |
static const char | DATAPATH_VAR_NAME [] = "CEGUI_SAMPLE_DATAPATH" |
name of env var that holds the path prefix to the data files. | |
static SamplesFrameworkBase * | d_sampleApp |
SampleFramework base used in the application. | |
static const int | s_defaultWindowWidth = 1280 |
The window width the application should get created with at start. | |
static const int | s_defaultWindowHeight = 720 |
The window height the application should get created with at start. | |
Additional Inherited Members | |
![]() | |
CEGuiBaseApplication () | |
Constructor. | |
virtual | ~CEGuiBaseApplication () |
Destructor. | |
bool | execute (SamplesFrameworkBase *sampleApp) |
Start the base application. More... | |
void | cleanup () |
Performs any required cleanup of the base application system. | |
void | renderSingleFrame (const float elapsed) |
Render a single display frame. This should be called by subclasses to perform rendering. More... | |
bool | isInitialised () |
const char * | getDataPathPrefix () const |
Return the path prefix to use for datafiles. The value returned is obtained via a environment variable named 'CEGUI_SAMPLE_DATAPATH' if the variable is not set, a default will be used depending on the build system in use. | |
void | registerSampleOverlayHandler (CEGUI::GUIContext *gui_context) |
Registers the overlay handler for rendering the FPS for a specified GUIContext. | |
![]() | |
bool | d_quitting |
true when the base app should cleanup and exit. | |
CEGUI::Renderer * | d_renderer |
Renderer to use. This MUST be set in the subclass constructor. | |
CEGUI::ImageCodec * | d_imageCodec |
ImageCodec to use. Set in subclass constructor, may be 0. | |
CEGUI::ResourceProvider * | d_resourceProvider |
ResourceProvider to use. Set in subclass constructor, may be 0. | |
CEGUI::GeometryBuffer * | d_logoGeometry |
GeometryBuffer used for drawing the spinning CEGUI logo. | |
CEGUI::GeometryBuffer * | d_FPSGeometry |
GeometryBuffer used for drawing the FPS value. | |
float | d_FPSElapsed |
Fraction of second elapsed (used for counting frames per second). | |
int | d_FPSFrames |
Number of frames drawn so far. | |
int | d_FPSValue |
Last changed FPS value. | |
bool | d_spinLogo |
whether to spin the logo | |