|
GlistEngine
|
#include <gBaseWindow.h>


Public Member Functions | |
| gBaseWindow () | |
| virtual | ~gBaseWindow () |
| virtual void | initialize (int width, int height, int windowMode, bool isResizable) |
| virtual bool | getShouldClose () |
| bool | isRendering () |
| virtual void | update () |
| virtual void | close () |
| bool | isVsyncEnabled () |
| virtual void | setVsync (bool vsync) |
| void | enableVsync () |
| void | enableVsync (bool vsync) |
| void | disableVsync () |
| virtual void | setCursor (int cursorNo) |
| virtual void | setCursorMode (gCursorMode cursorMode) |
| gCursorMode | getCursorMode () |
| virtual void | setCursorPos (int x, int y) |
| virtual void | setIcon (std::string pngFullpath) |
| virtual void | setIcon (unsigned char *imageData, int w, int h) |
| virtual void | setClipboardString (std::string text) |
| virtual std::string | getClipboardString () |
| void | setSize (int width, int height) |
| virtual void | setWindowSize (int width, int height) |
| int | getWidth () |
| int | getHeight () |
| virtual void | setTitle (const std::string &windowTitle) |
| void | setTitle (std::string &&windowTitle) |
| const std::string & | getTitle () |
| virtual void | setWindowResizable (bool isResizable) |
| virtual void | setWindowSizeLimits (int minWidth, int minHeight, int maxWidth, int maxHeight) |
Public Member Functions inherited from gObject | |
| gObject () | |
| void | logi (std::string message) |
| void | logd (std::string message) |
| void | logw (std::string message) |
| void | loge (std::string message) |
| void | logi (std::string tag, std::string message) |
| void | logd (std::string tag, std::string message) |
| void | logw (std::string tag, std::string message) |
| void | loge (std::string tag, std::string message) |
Static Public Attributes | |
| static const int | WINDOWMODE_NONE = -1 |
| static const int | WINDOWMODE_GAME = 0 |
| static const int | WINDOWMODE_FULLSCREEN = 1 |
| static const int | WINDOWMODE_APP = 2 |
| static const int | WINDOWMODE_FULLSCREENGUIAPP = 3 |
| static const int | WINDOWMODE_GUIAPP = 4 |
| static const int | CURSOR_ARROW = 0 |
| static const int | CURSOR_IBEAM = 1 |
| static const int | CURSOR_CROSSHAIR = 2 |
| static const int | CURSOR_HAND = 3 |
| static const int | CURSOR_HRESIZE = 4 |
| static const int | CURSOR_VRESIZE = 5 |
Static Public Attributes inherited from gObject | |
| static const int | LOGLEVEL_SILENT |
| static const int | LOGLEVEL_DEBUG |
| static const int | LOGLEVEL_INFO |
| static const int | LOGLEVEL_WARNING |
| static const int | LOGLEVEL_ERROR |
Additional Inherited Members | |
Static Public Member Functions inherited from gObject | |
| static std::string | gGetAppDir () |
| static std::string | gGetAssetsDir () |
| static void | gSetAssetsDir (std::string assetsDir) |
| static std::string | gGetFilesDir () |
| static std::string | gGetImagesDir () |
| static std::string | gGetFontsDir () |
| static std::string | gGetModelsDir () |
| static std::string | gGetTexturesDir () |
| static std::string | gGetShadersDir () |
| static std::string | gGetSoundsDir () |
| static std::string | gGetDatabasesDir () |
| static std::string | gGetVideosDir () |
| static void | setCurrentResolution (int scalingNo, int currentResolutionNo) |
Static Protected Attributes inherited from gObject | |
| static int | renderpassnum |
| static int | renderpassno |
| static int | releasescaling |
| static int | releaseresolution |
gBaseWindow, looks at events for the game window, sets and gets the properties of the game window. It is a base class that's why If who want create window class, have to use this class as parent.
Use parent as gObject.
| gBaseWindow::gBaseWindow | ( | ) |
|
virtual |
|
virtual |
Destroys all remaining windows and cursors, restores any modified gamma ramps and frees any other allocated resources.
Reimplemented in gGLFWWindow.
| void gBaseWindow::disableVsync | ( | ) |
| void gBaseWindow::enableVsync | ( | ) |
| void gBaseWindow::enableVsync | ( | bool | vsync | ) |
|
virtual |
Reimplemented in gGLFWWindow.
| gCursorMode gBaseWindow::getCursorMode | ( | ) |
| int gBaseWindow::getHeight | ( | ) |
Get game window height size.
|
virtual |
Reimplemented in gGLFWWindow.
| const std::string & gBaseWindow::getTitle | ( | ) |
Gets the title at the top of the window.
| int gBaseWindow::getWidth | ( | ) |
Get game window width size.
Game window's width.
|
virtual |
Sets game window's width, height sizes and window mode.
| width | Size of game screen width. |
| height | Size of game screen height. |
| windowMode | Determines which mode the window is in. Example: Window Mode,Game Mode, Fullscreen Mode. |
Reimplemented in gGLFWWindow.
| bool gBaseWindow::isRendering | ( | ) |
| bool gBaseWindow::isVsyncEnabled | ( | ) |
|
virtual |
Reimplemented in gGLFWWindow.
|
virtual |
Reimplemented in gGLFWWindow.
|
virtual |
Reimplemented in gGLFWWindow.
|
virtual |
Reimplemented in gGLFWWindow.
|
virtual |
Reimplemented in gGLFWWindow.
|
virtual |
Reimplemented in gGLFWWindow.
| void gBaseWindow::setSize | ( | int | width, |
| int | height | ||
| ) |
Sets game window size.
| width | Size of game screen width. |
| height | Size of game screen height. |
|
virtual |
The title at the top of the window is changed with the entered value.
| windowTitle | The text to be written in the title of the window. |
Reimplemented in gGLFWWindow.
| void gBaseWindow::setTitle | ( | std::string && | windowTitle | ) |
|
virtual |
Reimplemented in gGLFWWindow.
|
virtual |
Reimplemented in gGLFWWindow.
|
virtual |
Reimplemented in gGLFWWindow.
|
virtual |
Reimplemented in gGLFWWindow.
|
virtual |
Performs the said operations at the specified frame rate.
Reimplemented in gGLFWWindow.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |