TDME2 1.9.121
|
TDME editor. More...
#include <tdme/tools/editor/TDMEEditor.h>
Public Member Functions | |
TDMEEditor () | |
Public constructor. More... | |
~TDMEEditor () | |
Destructor. More... | |
void | setView (View *view) |
Set up new view. More... | |
View * | getView () |
void | quit () |
Request to exit the viewer. More... | |
void | display () |
Renders the scene. More... | |
void | dispose () |
Shutdown tdme viewer. More... | |
void | initialize () |
Initialize tdme scene editor. More... | |
void | reshape (int width, int height) |
Reshape tdme scene editor. More... | |
![]() | |
Application () | |
Public constructor. More... | |
virtual | ~Application () |
Destructor. More... | |
const string & | getTitle () |
const string & | getExecutableFileName () |
bool | isDebuggingEnabled () |
void | setInputEventHandler (InputEventHandler *inputEventHandler) |
Set input event handler. More... | |
int | getWindowXPosition () const |
void | setWindowXPosition (int windowXPosition) |
Set window X position when initializing. More... | |
int | getWindowYPosition () const |
void | setWindowYPosition (int windowYPosition) |
Set window Y position when initializing. More... | |
int | getWindowWidth () const |
void | setWindowWidth (int windowWidth) |
Set window width. More... | |
int | getWindowHeight () const |
void | setWindowHeight (int windowHeight) |
Set window height. More... | |
bool | isFullScreen () const |
void | setFullScreen (bool fullScreen) |
Set full screen mode. More... | |
string | getClipboardContent () |
void | setClipboardContent (const string &content) |
Set clipboard content. More... | |
void | run (int argc, char **argv, const string &title, InputEventHandler *inputEventHandler=nullptr, int windowHints=WINDOW_HINT_NONE) |
Run this application. More... | |
virtual void | initialize ()=0 |
Init. More... | |
virtual void | reshape (int width, int height)=0 |
Resize. More... | |
virtual void | display ()=0 |
Display. More... | |
virtual void | dispose ()=0 |
Disposes. More... | |
virtual void | onClose () |
On close. More... | |
Static Public Member Functions | |
static void | main (int argc, char **argv) |
Main. More... | |
static TDMEEditor * | getInstance () |
![]() | |
static Renderer * | getRenderer () |
static bool | hasApplication () |
static Application * | getApplication () |
static bool | isLimitFPS () |
static void | setLimitFPS (bool limitFPS) |
Set frames per seconds limit. More... | |
static void | setVSyncEnabled (bool vSync) |
Set vsync enabled. More... | |
static string | getOSName () |
static string | getCPUName () |
static string | execute (const string &command) |
Execute a command and wait until it finished running. More... | |
static void | executeBackground (const string &command) |
Execute a command in background. More... | |
static void | openBrowser (const string &url) |
Open browser with given url. More... | |
static void | cancelExit () |
Cancels a users requested exit (ALT-F4 or X button) More... | |
static void | exit (int exitCode) |
Exits this application with given exit code. More... | |
static bool | isActive () |
static void | installExceptionHandler () |
Windows only: Install exception handler that will print a stack trace if crashing. More... | |
static void | setMouseCursor (int mouseCursor) |
Set mouse cursor. More... | |
static int | getMousePositionX () |
static int | getMousePositionY () |
static void | setMousePosition (int x, int y) |
Set mouse position. More... | |
static void | swapBuffers () |
Swap rendering buffers. More... | |
Private Attributes | |
Engine * | engine { nullptr } |
View * | view { nullptr } |
bool | viewInitialized |
View * | viewNew { nullptr } |
bool | quitRequested |
PopUps * | popUps { nullptr } |
EditorView * | editorView { nullptr } |
Static Private Attributes | |
static TDMEEditor * | instance = nullptr |
Additional Inherited Members | |
![]() | |
static constexpr int | WINDOW_HINT_NONE { 0 } |
static constexpr int | WINDOW_HINT_NOTRESIZEABLE { 1 } |
static constexpr int | WINDOW_HINT_NOTDECORATED { 2 } |
static constexpr int | WINDOW_HINT_INVISIBLE { 4 } |
static constexpr int | WINDOW_HINT_MAXIMIZED { 8 } |
static constexpr int | FPS { 60 } |
TDMEEditor | ( | ) |
Public constructor.
Definition at line 43 of file TDMEEditor.cpp.
~TDMEEditor | ( | ) |
Destructor.
Definition at line 57 of file TDMEEditor.cpp.
|
virtual |
|
virtual |
|
inlinestatic |
Definition at line 53 of file TDMEEditor.h.
View * getView | ( | ) |
Definition at line 77 of file TDMEEditor.cpp.
|
virtual |
Initialize tdme scene editor.
Implements Application.
Definition at line 131 of file TDMEEditor.cpp.
|
static |
Main.
argc | argument count |
argv | argument values |
Definition at line 62 of file TDMEEditor.cpp.
void quit | ( | ) |
Request to exit the viewer.
Definition at line 82 of file TDMEEditor.cpp.
|
virtual |
Reshape tdme scene editor.
width | width |
height | height |
Implements Application.
Definition at line 144 of file TDMEEditor.cpp.
void setView | ( | View * | view | ) |
|
private |
Definition at line 37 of file TDMEEditor.h.
|
private |
Definition at line 31 of file TDMEEditor.h.
|
staticprivate |
Definition at line 30 of file TDMEEditor.h.
|
private |
Definition at line 36 of file TDMEEditor.h.
|
private |
Definition at line 35 of file TDMEEditor.h.
|
private |
Definition at line 32 of file TDMEEditor.h.
|
private |
Definition at line 33 of file TDMEEditor.h.
|
private |
Definition at line 34 of file TDMEEditor.h.