Mountain  1.0.0
Simple C++ 2D Game Framework
Mountain::RenderTarget Class Reference
+ Collaboration diagram for Mountain::RenderTarget:

Public Member Functions

MOUNTAIN_API RenderTarget ()=default
 Create an uninitialized RenderTarget.
 
MOUNTAIN_API RenderTarget (Vector2i size, Graphics::MagnificationFilter filter)
 Create a RenderTarget and initialize it with the given values. More...
 
MOUNTAIN_API void Initialize (Vector2i size, Graphics::MagnificationFilter filter)
 Initialize the RenderTarget with the given values.
 
MOUNTAIN_API void Reset ()
 Reset the RenderTarget to an uninitialized state.
 
MOUNTAIN_API void Reset (Vector2i newSize, Graphics::MagnificationFilter newFilter)
 Reset the RenderTarget and initialize it again with the given values.
 
MOUNTAIN_API LightSourceNewLightSource ()
 
MOUNTAIN_API void DeleteLightSource (const LightSource &lightSource)
 
MOUNTAIN_API void ClearLightSources ()
 
MOUNTAIN_API const List< LightSource > & GetLightSources () 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 applications such as Nsight or RenderDoc. This function does nothing if the application isn't compiled in Debug. More...
 
MOUNTAIN_API uint32_t GetTextureId () const
 
MOUNTAIN_API Graphics::GpuTexture GetGpuTexture () const
 
MOUNTAIN_API bool_t GetInitialized () const
 
MOUNTAIN_API Vector2i GetSize () const
 
MOUNTAIN_API void SetSize (Vector2i newSize)
 
MOUNTAIN_API Graphics::MagnificationFilter GetFilter () const
 
MOUNTAIN_API void SetFilter (Graphics::MagnificationFilter newFilter)
 
MOUNTAIN_API const MatrixGetCameraMatrix () const
 
MOUNTAIN_API void SetCameraMatrix (const Matrix &newCameraMatrix)
 
MOUNTAIN_API const Vector2GetCameraScale () const
 

Public Attributes

Color ambientLight = Color::White()
 The ambient light color applied to the entirety of the RenderTarget.
 

Friends

class Renderer
 

Detailed Description

Definition at line 16 of file render_target.hpp.

Constructor & Destructor Documentation

◆ RenderTarget()

MOUNTAIN_API Mountain::RenderTarget::RenderTarget ( Vector2i  size,
Graphics::MagnificationFilter  filter 
)

Create a RenderTarget and initialize it with the given values.

Parameters
sizeThe pixel size of the RenderTarget
filterThe MagnificationFilter to apply when rescaling the RenderTarget

Member Function Documentation

◆ SetDebugName()

MOUNTAIN_API void Mountain::RenderTarget::SetDebugName ( std::string_view  name) const

Adds a friendly debug name for this RenderTarget. This is used when debugging graphics in external applications such as Nsight or RenderDoc. This function does nothing if the application isn't compiled in Debug.

Parameters
nameThe name of this RenderTarget

The documentation for this class was generated from the following file: