![]() |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
Window and Graphics Device Functions. More...
Public Member Functions | |
| Window (int width=800, int height=450, const std::string &title="raylib", bool lateInit=false) | |
| Initialize window and OpenGL context. More... | |
| ~Window () | |
| Window & | BeginDrawing () |
| void | Close () |
| Close window and unload OpenGL context. More... | |
| Window & | EndDrawing () |
| std::string | GetClipboardText () |
| int | GetFPS () |
| float | GetFrameTime () |
| void * | GetHandle () |
| std::string | GetMonitorName (int monitor) |
| Vector2 | GetPosition () |
| Vector2 | GetScaleDPI () |
| int | GetScreenHeight () |
| int | GetScreenWidth () |
| double | GetTime () |
| Window & | Hide () |
| void | Init (int width, int height, const std::string &title) |
| bool | IsCursorOnScreen () |
| bool | IsFocused () |
| bool | IsFullscreen () |
| bool | IsHidden () |
| bool | IsMinimized () |
| bool | IsResized () |
| Window & | SetClipboardText (const std::string &text) |
| Window & | SetIcon (Image image) |
| Window & | SetMinSize (int width, int height) |
| Window & | SetMonitor (int monitor) |
| Window & | SetPosition (int x, int y) |
| Window & | SetSize (int width, int height) |
| Window & | SetTargetFPS (int fps) |
| Window & | SetTitle (const std::string &title) |
| bool | ShouldClose () |
| Check if KEY_ESCAPE pressed or Close icon pressed. More... | |
| Window & | ToggleFullscreen () |
| Window & | Unhide () |
Static Public Member Functions | |
| static bool | IsReady () |
| Check if window has been initialized successfully. More... | |
Window and Graphics Device Functions.
Definition at line 26 of file Window.hpp.
|
inline |
|
inline |
Definition at line 37 of file Window.hpp.
References Close().
|
inline |
Definition at line 125 of file Window.hpp.
|
inline |
Close window and unload OpenGL context.
Definition at line 55 of file Window.hpp.
Referenced by ~Window().
|
inline |
Definition at line 129 of file Window.hpp.
|
inline |
Definition at line 154 of file Window.hpp.
|
inline |
Definition at line 167 of file Window.hpp.
|
inline |
Definition at line 170 of file Window.hpp.
|
inline |
Definition at line 121 of file Window.hpp.
|
inline |
Definition at line 150 of file Window.hpp.
|
inline |
Definition at line 142 of file Window.hpp.
|
inline |
Definition at line 146 of file Window.hpp.
|
inline |
Definition at line 138 of file Window.hpp.
|
inline |
Definition at line 134 of file Window.hpp.
|
inline |
Definition at line 173 of file Window.hpp.
|
inline |
Definition at line 93 of file Window.hpp.
|
inline |
Definition at line 41 of file Window.hpp.
Referenced by Window().
|
inline |
Definition at line 59 of file Window.hpp.
|
inline |
Definition at line 72 of file Window.hpp.
|
inline |
Definition at line 82 of file Window.hpp.
|
inline |
Definition at line 78 of file Window.hpp.
|
inline |
Definition at line 69 of file Window.hpp.
|
inlinestatic |
Check if window has been initialized successfully.
Definition at line 66 of file Window.hpp.
|
inline |
Definition at line 75 of file Window.hpp.
|
inline |
Definition at line 158 of file Window.hpp.
Definition at line 97 of file Window.hpp.
|
inline |
Definition at line 113 of file Window.hpp.
|
inline |
Definition at line 109 of file Window.hpp.
|
inline |
Definition at line 105 of file Window.hpp.
|
inline |
Definition at line 117 of file Window.hpp.
|
inline |
Definition at line 163 of file Window.hpp.
|
inline |
Definition at line 101 of file Window.hpp.
|
inline |
Check if KEY_ESCAPE pressed or Close icon pressed.
Definition at line 48 of file Window.hpp.
|
inline |
Definition at line 85 of file Window.hpp.
|
inline |
Definition at line 89 of file Window.hpp.
1.8.17