raylib-cpp
C++ object-oriented wrapper library for raylib.
Public Member Functions | Static 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)
 Load texture for rendering (framebuffer)
 
 RenderTexture (RenderTexture &&other)
 
 RenderTexture (unsigned int id, const ::Texture &texture, const ::Texture &depth)
 
RenderTexture & BeginMode ()
 Initializes render texture for drawing.
 
RenderTexture & EndMode ()
 Ends drawing to render texture.
 
TextureUnmanaged GetDepth ()
 Depth buffer attachment texture.
 
unsigned int GetId () const
 Retrieves the id value for the object. More...
 
TextureUnmanaged GetTexture ()
 Get the color buffer attachment texture.
 
bool IsReady () const
 Retrieves whether or not the render texture is ready.
 
RenderTexture & operator= (const ::RenderTexture &texture)
 
RenderTexture & operator= (const RenderTexture &)=delete
 
RenderTexture & operator= (RenderTexture &&other) noexcept
 
void SetDepth (const ::Texture &newDepth)
 
void SetId (unsigned int value)
 Sets the id value for the object. More...
 
void SetTexture (const ::Texture &newTexture)
 
void Unload ()
 

Static Public Member Functions

static RenderTexture Load (int width, int height)
 Load texture for rendering (framebuffer)
 

Detailed Description

RenderTexture type, for texture rendering.

Definition at line 13 of file RenderTexture.hpp.

Member Function Documentation

◆ 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 46 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 46 of file RenderTexture.hpp.