|
| Texture (const ::Image &image) |
| Creates a texture from the given Image. More...
|
|
| Texture (const ::Image &image, int layout) |
| Load cubemap from image, multiple image cubemap layouts supported. More...
|
|
| Texture (const ::Texture &texture) |
| Creates a texture object based on the given Texture struct data.
|
|
| Texture (const std::string &fileName) |
| Load texture from file into GPU memory (VRAM) More...
|
|
| Texture (const Texture &)=delete |
|
| Texture (Texture &&other) |
|
| Texture (unsigned int id=0, int width=0, int height=0, int mipmaps=0, int format=0) |
| Default constructor to create an empty Texture object.
|
|
Texture & | Draw (::NPatchInfo nPatchInfo, ::Rectangle destRec, ::Vector2 origin={0, 0}, float rotation=0, ::Color tint={255, 255, 255, 255}) |
|
Texture & | Draw (::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin={0, 0}, float rotation=0, ::Color tint={255, 255, 255, 255}) |
|
Texture & | Draw (::Rectangle sourceRec, ::Vector2 position={0, 0}, ::Color tint={255, 255, 255, 255}) |
|
Texture & | Draw (::Vector2 position, ::Color tint={255, 255, 255, 255}) |
|
Texture & | Draw (::Vector2 position, float rotation, float scale=1.0f, ::Color tint={255, 255, 255, 255}) |
|
Texture & | Draw (::Vector2 tiling, ::Vector2 offset, ::Rectangle quad, ::Color tint={255, 255, 255, 255}) |
|
Texture & | Draw (::Vector3 position, float width, float height, float length, ::Color tint={255, 255, 255, 255}) |
|
Texture & | Draw (int posX=0, int posY=0, ::Color tint={255, 255, 255, 255}) |
| Draw a Texture2D.
|
|
Texture & | DrawPoly (Vector2 center, Vector2 *points, Vector2 *texcoords, int pointsCount, Color tint={255, 255, 255, 255}) |
|
Texture & | DrawTiled (::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin={0, 0}, float rotation=0, float scale=1, Color tint={255, 255, 255, 255}) |
|
Texture & | GenMipmaps () |
| Generate GPU mipmaps for a texture.
|
|
inline ::Image | GetData () const |
| Get pixel data from GPU texture and return an Image.
|
|
int | GetFormat () const |
| Retrieves the format value for the object. More...
|
|
int | GetHeight () const |
| Retrieves the height value for the object. More...
|
|
unsigned int | GetId () const |
| Retrieves the id value for the object. More...
|
|
int | GetMipmaps () const |
| Retrieves the mipmaps value for the object. More...
|
|
inline ::Vector2 | GetSize () const |
| Retrieve the width and height of the texture.
|
|
int | GetWidth () const |
| Retrieves the width value for the object. More...
|
|
bool | IsReady () const |
| Determines whether or not the Texture has been loaded and is ready. More...
|
|
bool | Load (const ::Image &image) |
| Load texture from image data.
|
|
bool | Load (const ::Image &image, int layoutType) |
| Load cubemap from image, multiple image cubemap layouts supported.
|
|
bool | Load (const std::string &fileName) |
| Load texture from file into GPU memory (VRAM)
|
|
| operator raylib::Image () |
| Get pixel data from GPU texture and return an Image.
|
|
Texture & | operator= (const ::Texture &texture) |
|
Texture & | operator= (const Texture &)=delete |
|
Texture & | operator= (Texture &&other) |
|
Texture & | SetFilter (int filterMode) |
| Set texture scaling filter mode.
|
|
void | SetFormat (int value) |
| Sets the format value for the object. More...
|
|
void | SetHeight (int value) |
| Sets the height value for the object. More...
|
|
void | SetId (unsigned int value) |
| Sets the id value for the object. More...
|
|
Texture & | SetMaterial (::Material *material, int mapType=MATERIAL_MAP_NORMAL) |
| Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)
|
|
Texture & | SetMaterial (const ::Material &material, int mapType=MATERIAL_MAP_NORMAL) |
|
void | SetMipmaps (int value) |
| Sets the mipmaps value for the object. More...
|
|
Texture & | SetShaderValue (const ::Shader &shader, int locIndex) |
| Set shader uniform value for texture (sampler2d)
|
|
Texture & | SetShapes (const ::Rectangle &source) |
| Set texture and rectangle to be used on shapes drawing.
|
|
void | SetWidth (int value) |
| Sets the width value for the object. More...
|
|
Texture & | SetWrap (int wrapMode) |
| Set texture wrapping mode.
|
|
void | Unload () |
| Unload texture from GPU memory (VRAM)
|
|
Texture & | Update (::Rectangle rec, const void *pixels) |
| Update GPU texture rectangle with new data.
|
|
Texture & | Update (const void *pixels) |
| Update GPU texture with new data.
|
|
Texture type.
Definition at line 16 of file Texture.hpp.