|
| | GLTexture2D (const std::string &path) |
| |
|
| GLTexture2D (stbi_uc *data, const int &w, const int &h) |
| |
|
uint32_t | getID () const override |
| | Texture id - an id link to the texture.
|
| |
|
float | getWidth () const override |
| | visual width of the texture in game dimensions
|
| |
|
float | getHeight () const override |
| | visual height of the texture in game dimensions
|
| |
|
void | setWidth (float width) override |
| | visual width of the texture in game dimensions
|
| |
|
void | setHeight (float height) override |
| | visual height of the texture in game dimensions
|
| |
|
void | setSize (float width, float height) override |
| | visual size of the texture in game dimensions
|
| |
|
void | setID (uint32_t id) override |
| | set texture id
|
| |
| void | Bind (uint32_t slot=0) const override |
| |
|
Ref< TextureMap > | getDefaultMapping () const override |
| | Get the texture mapping.
|
| |
|
void | loadTextureData (stbi_uc *data, int w, int h, uint type=GL_RGBA) override |
| |
|
virtual Ref< Texture > | genClip (uint32_t width, uint32_t height, uint32_t x, uint32_t y) const |
| | generate a clipped texture from texture coordinates
|
| |
OpenGl wrapper for a 2D texture.