The class responsible for loading Textures.
More...
#include <texture.h>
|
| | Texture (const std::string &path, bool flip=true, const std::string &typeName="texture_diffuse") |
| | Creates Textures from images. More...
|
| |
| | ~Texture () |
| |
| void | bind () const |
| | Binds the texture. More...
|
| |
| void | unbind () const |
| | Unbinds the texture. More...
|
| |
| const unsigned int | getWidth () const |
| | Gets the Width of the texture. More...
|
| |
| const unsigned int | getHeight () const |
| | Gets the Height of the texture. More...
|
| |
| const unsigned int | getID () const |
| | Gets the ID of the texture. More...
|
| |
| const std::string | getPath () const |
| | Gets the path of the texture. More...
|
| |
| const std::string | getTypeName () const |
| | Return the name of the texture's type. More...
|
| |
The class responsible for loading Textures.
◆ Texture()
| fireworks::graphics::Texture::Texture |
( |
const std::string & |
path, |
|
|
bool |
flip = true, |
|
|
const std::string & |
typeName = "texture_diffuse" |
|
) |
| |
Creates Textures from images.
- Parameters
-
| path | The file path to the image/texture |
- Warning
- Currently only supports .png files
◆ ~Texture()
| fireworks::graphics::Texture::~Texture |
( |
| ) |
|
◆ bind()
| void fireworks::graphics::Texture::bind |
( |
| ) |
const |
◆ getHeight()
| const unsigned int fireworks::graphics::Texture::getHeight |
( |
| ) |
const |
|
inline |
Gets the Height of the texture.
◆ getID()
| const unsigned int fireworks::graphics::Texture::getID |
( |
| ) |
const |
|
inline |
Gets the ID of the texture.
◆ getPath()
| const std::string fireworks::graphics::Texture::getPath |
( |
| ) |
const |
|
inline |
Gets the path of the texture.
◆ getTypeName()
| const std::string fireworks::graphics::Texture::getTypeName |
( |
| ) |
const |
|
inline |
Return the name of the texture's type.
◆ getWidth()
| const unsigned int fireworks::graphics::Texture::getWidth |
( |
| ) |
const |
|
inline |
Gets the Width of the texture.
◆ unbind()
| void fireworks::graphics::Texture::unbind |
( |
| ) |
const |
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/fireworks-engine/checkouts/latest/Fireworks Engine/Fireworks Core/src/graphics/texture.h
- /home/docs/checkouts/readthedocs.org/user_builds/fireworks-engine/checkouts/latest/Fireworks Engine/Fireworks Core/src/graphics/texture.cpp