![]() |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
Public Member Functions | |
Texture2D () | |
Texture2D (::Image &image) | |
Texture2D (const std::string &fileName) | |
~Texture2D () | |
Texture2D & | Draw (::NPatchInfo nPatchInfo, ::Rectangle destRec, ::Vector2 origin, float rotation=0, ::Color tint=WHITE) |
Texture2D & | Draw (::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin, float rotation=0, ::Color tint=WHITE) |
Texture2D & | Draw (::Rectangle sourceRec, ::Vector2 position, ::Color tint=WHITE) |
Texture2D & | Draw (::Vector2 position, ::Color tint=WHITE) |
Texture2D & | Draw (::Vector2 position, float rotation, float scale=1.0f, ::Color tint=WHITE) |
Texture2D & | Draw (::Vector2 tiling, ::Vector2 offset, ::Rectangle quad, ::Color tint=WHITE) |
Texture2D & | Draw (::Vector3 position, float width, float height, float length, ::Color color=WHITE) |
Texture2D & | Draw (int posX, int posY, ::Color tint=WHITE) |
Texture2D & | DrawTiled (Rectangle sourceRec, Rectangle destRec, Vector2 origin, float rotation, float scale, Color tint=WHITE) |
Texture2D & | GenMipmaps () |
int | GetFormat () |
int | GetHeight () |
unsigned int | GetId () |
int | GetMipmaps () |
Image | GetTextureData () |
int | GetWidth () |
void | Load (const std::string &fileName) |
void | LoadFromImage (::Image &image) |
void | LoadTextureCubemap (::Image &image, int layoutType) |
operator raylib::Image () | |
Texture2D & | operator= (const ::Texture2D &texture) |
Texture2D & | operator= (const Texture2D &texture) |
void | set (::Texture2D texture) |
Texture2D & | SetFilter (int filterMode) |
void | SetFormat (int value) |
void | SetHeight (int value) |
void | SetId (unsigned int value) |
Texture2D & | SetMaterialTexture (Material *material, int mapType) |
void | SetMipmaps (int value) |
void | SetWidth (int value) |
Texture2D & | SetWrap (int wrapMode) |
void | Unload () |
Texture2D & | Update (const void *pixels) |
Texture2D & | UpdateRec (Rectangle rec, const void *pixels) |
Static Public Member Functions | |
static int | GetPixelDataSize (int width, int height, int format) |
Definition at line 19 of file Texture2D.hpp.
|
inline |
Definition at line 21 of file Texture2D.hpp.
References set().
|
inline |
Definition at line 25 of file Texture2D.hpp.
References LoadFromImage().
|
inline |
Definition at line 29 of file Texture2D.hpp.
References Load().
|
inline |
Definition at line 33 of file Texture2D.hpp.
References Unload().
|
inline |
Definition at line 135 of file Texture2D.hpp.
|
inline |
Definition at line 131 of file Texture2D.hpp.
|
inline |
Definition at line 123 of file Texture2D.hpp.
Definition at line 114 of file Texture2D.hpp.
|
inline |
Definition at line 118 of file Texture2D.hpp.
|
inline |
Definition at line 127 of file Texture2D.hpp.
|
inline |
Definition at line 140 of file Texture2D.hpp.
Definition at line 109 of file Texture2D.hpp.
|
inline |
Definition at line 145 of file Texture2D.hpp.
|
inline |
Definition at line 94 of file Texture2D.hpp.
|
inline |
Definition at line 49 of file Texture2D.hpp.
|
inline |
Definition at line 47 of file Texture2D.hpp.
|
inline |
Definition at line 45 of file Texture2D.hpp.
|
inline |
Definition at line 48 of file Texture2D.hpp.
|
inlinestatic |
Definition at line 155 of file Texture2D.hpp.
|
inline |
Definition at line 87 of file Texture2D.hpp.
Referenced by operator raylib::Image().
|
inline |
Definition at line 46 of file Texture2D.hpp.
|
inline |
|
inline |
|
inline |
Definition at line 65 of file Texture2D.hpp.
References set().
|
inline |
Definition at line 90 of file Texture2D.hpp.
References GetTextureData().
Definition at line 51 of file Texture2D.hpp.
References set().
Definition at line 56 of file Texture2D.hpp.
References set().
|
inline |
Definition at line 37 of file Texture2D.hpp.
Referenced by Load(), LoadFromImage(), LoadTextureCubemap(), operator=(), and Texture2D().
|
inline |
Definition at line 99 of file Texture2D.hpp.
|
inline |
Definition at line 49 of file Texture2D.hpp.
|
inline |
Definition at line 47 of file Texture2D.hpp.
|
inline |
Definition at line 45 of file Texture2D.hpp.
Definition at line 150 of file Texture2D.hpp.
|
inline |
Definition at line 48 of file Texture2D.hpp.
|
inline |
Definition at line 46 of file Texture2D.hpp.
|
inline |
Definition at line 104 of file Texture2D.hpp.
|
inline |
Definition at line 73 of file Texture2D.hpp.
Referenced by ~Texture2D().
|
inline |
Definition at line 77 of file Texture2D.hpp.
Definition at line 82 of file Texture2D.hpp.