6 #include "Mountain/core.hpp" 7 #include "Mountain/rendering/render_target.hpp" 8 #include "Mountain/resource/font.hpp" 15 struct FT_LibraryRec_;
18 typedef FT_LibraryRec_* FT_Library;
24 const char_t* glsl =
"#version 460";
32 std::chrono::time_point<std::chrono::system_clock> time;
40 MOUNTAIN_API
static void PushRenderTarget(
RenderTarget& renderTarget);
42 MOUNTAIN_API
static RenderTarget& GetCurrentRenderTarget();
43 MOUNTAIN_API
static RenderTarget& GetDefaultRenderTarget();
45 MOUNTAIN_API
static void DebugString(std::string str, float_t duration = 1.f,
const Color& color =
Color::Magenta());
52 static inline FT_Library m_Freetype;
54 static inline std::stack<RenderTarget*> m_RenderTargets;
60 static bool_t Initialize(
const std::string& windowTitle,
Vector2i windowSize,
const OpenGlVersion& glVersion = {});
61 static void PreFrame();
62 static void PostFrame();
63 static void Shutdown();
static constexpr Color Magenta()
Constant for Magenta.
A dynamic array implementation. Wrapper around the std::vector class.
Custom Mountain smart pointer. Represents both a std::shared_ptr and a std::weak_ptr.
The Color struct represents a color in RGBA color space.
Defines the Mountain::Pointer class.
Holds the necessary information to draw text using a Font.
Contains all declarations of the Mountain Framework.