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

RenderTexture type, for texture rendering. More...

#include <RenderTexture.hpp>

Public Member Functions

 RenderTexture ()
 Default constructor to build an empty RenderTexture. More...
 
 RenderTexture (const ::RenderTexture &renderTexture)
 
 RenderTexture (const RenderTexture &)=delete
 
 RenderTexture (int width, int height)
 Load texture for rendering (framebuffer) More...
 
 RenderTexture (RenderTexture &&other)
 
 RenderTexture (unsigned int id, const ::Texture &texture, const ::Texture &depth)
 
RenderTextureBeginMode ()
 Initializes render texture for drawing. More...
 
RenderTextureEndMode ()
 Ends drawing to render texture. More...
 
TextureUnmanaged GetDepth ()
 Depth buffer attachment texture. More...
 
unsigned int GetId () const
 Retrieves the id value for the object. More...
 
TextureUnmanaged GetTexture ()
 Get the color buffer attachment texture. More...
 
bool IsReady () const
 Retrieves whether or not the render texture is ready. More...
 
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) More...
 

Protected Member Functions

void set (const ::RenderTexture &renderTexture)
 

Detailed Description

RenderTexture type, for texture rendering.

Definition at line 13 of file RenderTexture.hpp.

Constructor & Destructor Documentation

◆ RenderTexture() [1/5]

raylib::RenderTexture::RenderTexture ( )
inline

Default constructor to build an empty RenderTexture.

Definition at line 18 of file RenderTexture.hpp.

◆ RenderTexture() [2/5]

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

Definition at line 22 of file RenderTexture.hpp.

◆ RenderTexture() [3/5]

raylib::RenderTexture::RenderTexture ( unsigned int  id,
const ::Texture &  texture,
const ::Texture &  depth 
)
inline

Definition at line 26 of file RenderTexture.hpp.

◆ RenderTexture() [4/5]

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

Load texture for rendering (framebuffer)

Definition at line 32 of file RenderTexture.hpp.

◆ RenderTexture() [5/5]

raylib::RenderTexture::RenderTexture ( RenderTexture &&  other)
inline

Definition at line 38 of file RenderTexture.hpp.

◆ ~RenderTexture()

raylib::RenderTexture::~RenderTexture ( )
inline

Definition at line 92 of file RenderTexture.hpp.

Member Function Documentation

◆ BeginMode()

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

Initializes render texture for drawing.

Definition at line 103 of file RenderTexture.hpp.

◆ EndMode()

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

Ends drawing to render texture.

Definition at line 111 of file RenderTexture.hpp.

◆ GetDepth()

TextureUnmanaged raylib::RenderTexture::GetDepth ( )
inline

Depth buffer attachment texture.

Definition at line 62 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 46 of file RenderTexture.hpp.

◆ GetTexture()

TextureUnmanaged raylib::RenderTexture::GetTexture ( )
inline

Get the color buffer attachment texture.

Definition at line 51 of file RenderTexture.hpp.

◆ IsReady()

bool raylib::RenderTexture::IsReady ( ) const
inline

Retrieves whether or not the render texture is ready.

Definition at line 126 of file RenderTexture.hpp.

◆ Load()

static RenderTexture raylib::RenderTexture::Load ( int  width,
int  height 
)
inlinestatic

Load texture for rendering (framebuffer)

Definition at line 119 of file RenderTexture.hpp.

◆ operator=() [1/2]

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

Definition at line 70 of file RenderTexture.hpp.

◆ operator=() [2/2]

RenderTexture & raylib::RenderTexture::operator= ( RenderTexture &&  other)
inlinenoexcept

Definition at line 77 of file RenderTexture.hpp.

◆ set()

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

Definition at line 131 of file RenderTexture.hpp.

◆ SetDepth()

void raylib::RenderTexture::SetDepth ( const ::Texture &  newDepth)
inline

Definition at line 66 of file RenderTexture.hpp.

◆ SetTexture()

void raylib::RenderTexture::SetTexture ( const ::Texture &  newTexture)
inline

Definition at line 55 of file RenderTexture.hpp.

◆ Unload()

void raylib::RenderTexture::Unload ( )
inline

Definition at line 96 of file RenderTexture.hpp.