|
Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
|
#include <application.h>
Classes | |
| class | CqspEventInstancer |
| class | CqspEventListener |
| class | RmlFileInterface |
Public Types | |
| typedef void(* | EventListener) (Rml::Event &) |
Public Member Functions | |
| Application (int _argc, char *_argv[]) | |
| void | run () |
| client::ClientOptions & | GetClientOptions () |
| int | GetWindowHeight () const |
| int | GetWindowWidth () const |
| double | GetDeltaTime () const |
| double | GetFps () const |
| asset::AssetManager & | GetAssetManager () |
| bool | ShouldExit () |
| void | ExitApplication () |
| template<class T > | |
| void | SetScene () |
| template<class T , typename... Args> | |
| void | SetScene (Args &&... args) |
| GameState * | GetGame () |
| audio::IAudioInterface & | GetAudioInterface () |
| bool | ButtonIsHeld (int btn) |
| bool | ButtonIsHeld (KeyInput btn) |
| bool | ButtonIsReleased (int btn) |
| bool | ButtonIsReleased (KeyInput btn) |
| bool | ButtonIsPressed (int btn) |
| bool | ButtonIsPressed (KeyInput btn) |
| double | MouseButtonLastReleased (int btn) |
| bool | MouseButtonDoubleClicked (int btn) |
| double | GetScrollAmount () |
| double | GetMouseX () |
| double | GetMouseY () |
| bool | MouseButtonIsHeld (int btn) |
| bool | MouseButtonIsReleased (int btn) |
| bool | MouseButtonIsPressed (int btn) |
| Rml::ElementDocument * | LoadDocument (const std::string &path) |
| void | CloseDocument (const std::string &path) |
| bool | DocumentIsLoaded (const std::string &path) |
| Rml::ElementDocument * | ReloadDocument (const std::string &path) |
| Reloads the document from the file How to hotload the a document. More... | |
| Window * | GetWindow () |
| asset::Font *& | GetFont () |
| void | DrawText (const std::string &text, float x, float y) |
| void | DrawText (const std::string &text, const glm::vec3 &color, float x, float y) |
| void | DrawText (const std::string &text, float x, float y, float size) |
| void | DrawText (const std::string &text, const glm::vec3 &color, float x, float y, float size) |
| void | DrawTextNormalized (const std::string &text, float x, float y) |
| void | SetFont (asset::Font *font) |
| void | SetFontShader (asset::ShaderProgram *shader) |
| double | GetTime () |
| Time since glfw was initialized in seconds More... | |
| bool | MouseDragged () |
| bool | MouseMoved () |
| void | SetWindowDimensions (int width, int height) |
| void | SetFullScreen (bool screen) |
| bool | HoveringOnRmluiComponent () |
| glm::mat4 | Get2DProj () |
| glm::mat4 | Get3DProj () |
| glm::mat4 | GetRmlUiProj () |
| std::vector< std::string > & | GetCmdLineArgs () |
| bool | HasCmdLineArgs (const std::string &arg) |
| bool | Screenshot (const char *path=NULL) |
| Screenshots the current framebuffer to the filename More... | |
| Rml::Context * | GetRmlUiContext () |
| template<class T > | |
| void | InitGame () |
| sol::state & | GetSolState () |
| bool | RmlUiKeyboardProcessed () |
| bool | RmlUiMouseProcessed () |
| bool | RmlUiTextProcessed () |
| bool | KeyboardInteractingWithUi () |
Private Member Functions | |
| void | InitFonts () |
| void | SetIcon () |
| bool | GlInit () |
| void | LoggerInit () |
| void | LogInfo () |
| void | InitRmlUi () |
| void | InitImgui () |
| void | InitAudio () |
| void | UpdateScene () |
| void | ComputeFramerate () |
| void | UpdateFonts () |
| int | init () |
| void | ResetGame () |
| int | destroy () |
| void | CalculateProjections () |
| typedef void(* cqsp::engine::Application::EventListener) (Rml::Event &) |
| cqsp::engine::Application::Application | ( | int | _argc, |
| char * | _argv[] | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
| void cqsp::engine::Application::CloseDocument | ( | const std::string & | path | ) |
|
private |
|
private |
|
inline |
| void cqsp::engine::Application::DrawText | ( | const std::string & | text, |
| const glm::vec3 & | color, | ||
| float | x, | ||
| float | y | ||
| ) |
| void cqsp::engine::Application::DrawText | ( | const std::string & | text, |
| const glm::vec3 & | color, | ||
| float | x, | ||
| float | y, | ||
| float | size | ||
| ) |
| void cqsp::engine::Application::DrawText | ( | const std::string & | text, |
| float | x, | ||
| float | y | ||
| ) |
| void cqsp::engine::Application::DrawText | ( | const std::string & | text, |
| float | x, | ||
| float | y, | ||
| float | size | ||
| ) |
| void cqsp::engine::Application::DrawTextNormalized | ( | const std::string & | text, |
| float | x, | ||
| float | y | ||
| ) |
| void cqsp::engine::Application::ExitApplication | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| double cqsp::engine::Application::GetTime | ( | ) |
Time since glfw was initialized in seconds
|
inline |
|
inline |
|
inline |
|
private |
|
inline |
| bool cqsp::engine::Application::HoveringOnRmluiComponent | ( | ) |
|
private |
|
private |
|
private |
|
inline |
|
private |
|
private |
| bool cqsp::engine::Application::KeyboardInteractingWithUi | ( | ) |
| Rml::ElementDocument * cqsp::engine::Application::LoadDocument | ( | const std::string & | path | ) |
|
private |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| Rml::ElementDocument * cqsp::engine::Application::ReloadDocument | ( | const std::string & | path | ) |
Reloads the document from the file How to hotload the a document.
Approximately how to use it After loading it with app.LoadDocument(), you can reload it, and remember to set the document variable that you may have, or it will be pointing to something empty.
| path |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
| void cqsp::engine::Application::run | ( | ) |
| bool cqsp::engine::Application::Screenshot | ( | const char * | path = NULL | ) |
Screenshots the current framebuffer to the filename
If it's null, it will put the screenshot into the default folder, with
| path |
|
inline |
|
inline |
| void cqsp::engine::Application::SetFullScreen | ( | bool | screen | ) |
|
private |
|
inline |
|
inline |
| void cqsp::engine::Application::SetWindowDimensions | ( | int | width, |
| int | height | ||
| ) |
| bool cqsp::engine::Application::ShouldExit | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Lua state for the ui
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |