raylib-cpp
C++ object-oriented wrapper library for raylib.
Public Member Functions | List of all members
raylib::RenderTexture Class Reference

RenderTexture type, for texture rendering. More...

Public Member Functions

 RenderTexture ()
 Default constructor to build an empty RenderTexture.
 
 RenderTexture (const ::RenderTexture &renderTexture)
 
 RenderTexture (const RenderTexture &)=delete
 
 RenderTexture (int width, int height)
 
 RenderTexture (RenderTexture &&other)
 
 RenderTexture (unsigned int id, ::Texture texture, ::Texture depth)
 
RenderTextureBeginMode ()
 Initializes render texture for drawing.
 
RenderTextureEndMode ()
 Ends drawing to render texture.
 
::Texture2D GetDepth () const
 Retrieves the depth value for the object. More...
 
unsigned int GetId () const
 Retrieves the id value for the object. More...
 
::Texture2D GetTexture () const
 Retrieves the texture value for the object. More...
 
bool IsReady () const
 Retrieves whether or not the render texture is ready.
 
bool Load (int width, int height)
 Loads a render texture at the given width and height.
 
RenderTextureoperator= (const ::RenderTexture &texture)
 
RenderTextureoperator= (const RenderTexture &)=delete
 
RenderTextureoperator= (RenderTexture &&other)
 
void SetDepth (::Texture2D value)
 Sets the depth value for the object. More...
 
void SetId (unsigned int value)
 Sets the id value for the object. More...
 
void SetTexture (::Texture2D value)
 Sets the texture value for the object. More...
 
void Unload ()
 

Detailed Description

RenderTexture type, for texture rendering.

Definition at line 12 of file RenderTexture.hpp.

Member Function Documentation

◆ GetDepth()

::Texture2D raylib::RenderTexture::GetDepth ( ) const
inline

Retrieves the depth value for the object.

Returns
The depth value of the object.

Definition at line 45 of file RenderTexture.hpp.

◆ GetId()

unsigned int raylib::RenderTexture::GetId ( ) const
inline

Retrieves the id value for the object.

Returns
The id value of the object.

Definition at line 43 of file RenderTexture.hpp.

◆ GetTexture()

::Texture2D raylib::RenderTexture::GetTexture ( ) const
inline

Retrieves the texture value for the object.

Returns
The texture value of the object.

Definition at line 44 of file RenderTexture.hpp.

◆ SetDepth()

void raylib::RenderTexture::SetDepth ( ::Texture2D  value)
inline

Sets the depth value for the object.

Parameters
valueThe value of which to set depth to.

Definition at line 45 of file RenderTexture.hpp.

◆ SetId()

void raylib::RenderTexture::SetId ( unsigned int  value)
inline

Sets the id value for the object.

Parameters
valueThe value of which to set id to.

Definition at line 43 of file RenderTexture.hpp.

◆ SetTexture()

void raylib::RenderTexture::SetTexture ( ::Texture2D  value)
inline

Sets the texture value for the object.

Parameters
valueThe value of which to set texture to.

Definition at line 44 of file RenderTexture.hpp.