raylib-cpp
C++ object-oriented wrapper library for raylib.
Public Member Functions | Static Public Member Functions | Protected 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)
 
RenderTextureBeginMode ()
 Initializes render texture for drawing.
 
RenderTextureEndMode ()
 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 IsValid () const
 Retrieves whether or not the render texture is ready.
 
RenderTextureoperator= (const ::RenderTexture &texture)
 
RenderTextureoperator= (const RenderTexture &)=delete
 
RenderTextureoperator= (RenderTexture &&other) noexcept
 
void SetDepth (const ::Texture &newDepth)
 
void SetTexture (const ::Texture &newTexture)
 
void Unload ()
 

Static Public Member Functions

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

Protected Member Functions

void set (const ::RenderTexture &renderTexture)
 

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