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
 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) More...
 
 RenderTexture (RenderTexture &&other) noexcept
 
 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 IsValid () 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 11 of file RenderTexture.hpp.

Constructor & Destructor Documentation

◆ RenderTexture() [1/4]

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

Definition at line 18 of file RenderTexture.hpp.

◆ RenderTexture() [2/4]

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

Definition at line 23 of file RenderTexture.hpp.

◆ RenderTexture() [3/4]

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

Load texture for rendering (framebuffer)

Definition at line 29 of file RenderTexture.hpp.

◆ RenderTexture() [4/4]

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

Definition at line 36 of file RenderTexture.hpp.

◆ ~RenderTexture()

raylib::RenderTexture::~RenderTexture ( )
inline

Definition at line 83 of file RenderTexture.hpp.

Member Function Documentation

◆ BeginMode()

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

Initializes render texture for drawing.

Definition at line 90 of file RenderTexture.hpp.

◆ EndMode()

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

Ends drawing to render texture.

Definition at line 98 of file RenderTexture.hpp.

◆ GetDepth()

TextureUnmanaged raylib::RenderTexture::GetDepth ( )
inline

Depth buffer attachment texture.

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

◆ GetTexture()

TextureUnmanaged raylib::RenderTexture::GetTexture ( )
inline

Get the color buffer attachment texture.

Definition at line 50 of file RenderTexture.hpp.

◆ IsValid()

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

Retrieves whether or not the render texture is ready.

Definition at line 111 of file RenderTexture.hpp.

◆ Load()

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

Load texture for rendering (framebuffer)

Definition at line 106 of file RenderTexture.hpp.

◆ operator=() [1/2]

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

Definition at line 61 of file RenderTexture.hpp.

◆ operator=() [2/2]

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

Definition at line 68 of file RenderTexture.hpp.

◆ set()

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

Definition at line 113 of file RenderTexture.hpp.

◆ SetDepth()

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

Definition at line 59 of file RenderTexture.hpp.

◆ SetTexture()

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

Definition at line 52 of file RenderTexture.hpp.

◆ Unload()

void raylib::RenderTexture::Unload ( )
inline

Definition at line 85 of file RenderTexture.hpp.