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 (const ::RenderTexture &renderTexture)
 
 RenderTexture (int width, int height)
 
 RenderTexture (unsigned int Id)
 
RenderTexture & BeginMode ()
 Initializes render texture for drawing.
 
RenderTexture & EndMode ()
 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...
 
RenderTexture & operator= (const ::RenderTexture &texture)
 
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 11 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 27 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 25 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 26 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 27 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 25 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 26 of file RenderTexture.hpp.