![]() |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
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) | |
RenderTexture (RenderTexture &&other) | |
RenderTexture (unsigned int id, ::Texture texture, ::Texture depth) | |
RenderTexture & | BeginMode () |
Initializes render texture for drawing. | |
RenderTexture & | EndMode () |
Ends drawing to render texture. | |
::Texture2D | GetDepth () const |
Retrieves the depth value for the object. More... | |
unsigned int | GetId () const |
Retrieves the id value for the object. More... | |
::Texture2D | GetTexture () const |
Retrieves the texture value for the object. More... | |
bool | IsReady () const |
Retrieves whether or not the render texture is ready. | |
bool | Load (int width, int height) |
Loads a render texture at the given width and height. | |
RenderTexture & | operator= (const ::RenderTexture &texture) |
RenderTexture & | operator= (const RenderTexture &)=delete |
RenderTexture & | operator= (RenderTexture &&other) |
void | SetDepth (::Texture2D value) |
Sets the depth value for the object. More... | |
void | SetId (unsigned int value) |
Sets the id value for the object. More... | |
void | SetTexture (::Texture2D value) |
Sets the texture value for the object. More... | |
void | Unload () |
RenderTexture type, for texture rendering.
Definition at line 12 of file RenderTexture.hpp.
|
inline |
Retrieves the depth value for the object.
Definition at line 45 of file RenderTexture.hpp.
|
inline |
Retrieves the id value for the object.
Definition at line 43 of file RenderTexture.hpp.
|
inline |
Retrieves the texture value for the object.
Definition at line 44 of file RenderTexture.hpp.
|
inline |
Sets the depth value for the object.
value | The value of which to set depth to. |
Definition at line 45 of file RenderTexture.hpp.
|
inline |
Sets the id value for the object.
value | The value of which to set id to. |
Definition at line 43 of file RenderTexture.hpp.
|
inline |
Sets the texture value for the object.
value | The value of which to set texture to. |
Definition at line 44 of file RenderTexture.hpp.