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

Public Member Functions

 RenderTexture (const ::RenderTexture &renderTexture)
 
 RenderTexture (int width, int height)
 
 RenderTexture (unsigned int Id)
 
 ~RenderTexture ()
 
RenderTexture & BeginMode ()
 Initializes render texture for drawing. More...
 
RenderTexture & EndMode ()
 Ends drawing to render texture. More...
 
inline ::Texture2D GetDepth () const
 
unsigned int GetId () const
 
inline ::Texture2D GetTexture () const
 
RenderTexture & operator= (const ::RenderTexture &texture)
 
void SetDepth (::Texture2D value)
 
void SetId (unsigned int value)
 
void SetTexture (::Texture2D value)
 
void Unload ()
 

Protected Member Functions

void set (const ::RenderTexture &renderTexture)
 

Detailed Description

Definition at line 32 of file RenderTexture.hpp.

Constructor & Destructor Documentation

◆ RenderTexture() [1/3]

raylib::RenderTexture::RenderTexture ( const ::RenderTexture &  renderTexture)
inline

Definition at line 34 of file RenderTexture.hpp.

References set().

◆ RenderTexture() [2/3]

raylib::RenderTexture::RenderTexture ( unsigned int  Id)
inline

Definition at line 38 of file RenderTexture.hpp.

◆ RenderTexture() [3/3]

raylib::RenderTexture::RenderTexture ( int  width,
int  height 
)
inline

Definition at line 42 of file RenderTexture.hpp.

References set().

◆ ~RenderTexture()

raylib::RenderTexture::~RenderTexture ( )
inline

Definition at line 55 of file RenderTexture.hpp.

References Unload().

Member Function Documentation

◆ BeginMode()

RenderTexture& raylib::RenderTexture::BeginMode ( )
inline

Initializes render texture for drawing.

Definition at line 66 of file RenderTexture.hpp.

◆ EndMode()

RenderTexture& raylib::RenderTexture::EndMode ( )
inline

Ends drawing to render texture.

Definition at line 74 of file RenderTexture.hpp.

◆ GetDepth()

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

Definition at line 48 of file RenderTexture.hpp.

◆ GetId()

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

Definition at line 46 of file RenderTexture.hpp.

◆ GetTexture()

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

Definition at line 47 of file RenderTexture.hpp.

◆ operator=()

RenderTexture& raylib::RenderTexture::operator= ( const ::RenderTexture &  texture)
inline

Definition at line 50 of file RenderTexture.hpp.

References set().

◆ set()

void raylib::RenderTexture::set ( const ::RenderTexture &  renderTexture)
inlineprotected

Definition at line 80 of file RenderTexture.hpp.

Referenced by operator=(), and RenderTexture().

◆ SetDepth()

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

Definition at line 48 of file RenderTexture.hpp.

◆ SetId()

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

Definition at line 46 of file RenderTexture.hpp.

◆ SetTexture()

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

Definition at line 47 of file RenderTexture.hpp.

◆ Unload()

void raylib::RenderTexture::Unload ( )
inline

Definition at line 59 of file RenderTexture.hpp.

Referenced by ~RenderTexture().