3 #include "Mountain/core.hpp" 8 #include "Mountain/rendering/gpu_texture.hpp" 9 #include "Mountain/rendering/graphics.hpp" 10 #include "Mountain/rendering/light_source.hpp" 35 MOUNTAIN_API
void Reset();
37 MOUNTAIN_API
void Reset(
Vector2i newSize, Graphics::MagnificationFilter newFilter);
40 MOUNTAIN_API
void DeleteLightSource(
const LightSource& lightSource);
41 MOUNTAIN_API
void ClearLightSources();
48 MOUNTAIN_API
void SetDebugName(std::string_view name)
const;
51 MOUNTAIN_API uint32_t GetTextureId()
const;
57 MOUNTAIN_API bool_t GetInitialized()
const;
60 MOUNTAIN_API
Vector2i GetSize()
const;
61 MOUNTAIN_API
void SetSize(
Vector2i newSize);
64 MOUNTAIN_API Graphics::MagnificationFilter GetFilter()
const;
65 MOUNTAIN_API
void SetFilter(Graphics::MagnificationFilter newFilter);
68 MOUNTAIN_API
const Matrix& GetCameraMatrix()
const;
69 MOUNTAIN_API
void SetCameraMatrix(
const Matrix& newCameraMatrix);
72 MOUNTAIN_API
const Vector2& GetCameraScale()
const;
76 uint32_t m_Framebuffer;
77 uint32_t m_Vbo, m_Vao;
79 bool_t m_Initialized =
false;
82 Graphics::MagnificationFilter m_Filter;
93 void UpdateDrawCamera()
const;
MOUNTAIN_API void SetDebugName(std::string_view name) const
Adds a friendly debug name for this RenderTarget. This is used when debugging graphics in external ap...
Defines the Mountain::List class.
A dynamic array implementation. Wrapper around the std::vector class.
Defines multiple color structs.
Low-level interface for OpenGL textures.
MOUNTAIN_API void Reset()
Reset the RenderTarget to an uninitialized state.
static constexpr Vector2 One() noexcept
static constexpr Color White()
Constant for White.
The Color struct represents a color in RGBA color space.
MOUNTAIN_API void Initialize(Vector2i size, Graphics::MagnificationFilter filter)
Initialize the RenderTarget with the given values.
MOUNTAIN_API RenderTarget()=default
Create an uninitialized RenderTarget.
Color ambientLight
The ambient light color applied to the entirety of the RenderTarget.
static constexpr Matrix Identity() noexcept
Contains all declarations of the Mountain Framework.