|
libRocket
|
#include <Texture.h>
Public Member Functions | |
| Texture () | |
| Constructs an unloaded texture with no resource. More... | |
| Texture (const Texture &) | |
| Constructs a texture sharing the resource of another. More... | |
| ~Texture () | |
| bool | Load (const String &source, const String &source_path="") |
| String | GetSource () const |
| TextureHandle | GetHandle (RenderInterface *render_interface) const |
| Vector2i | GetDimensions (RenderInterface *render_interface) const |
| const Texture & | operator= (const Texture &) |
| Releases this texture's resource (if any), and sets it to another texture's resource. More... | |
Abstraction of a two-dimensional texture image, with an application-specific texture handle.
| Rocket::Core::Texture::Texture | ( | ) |
Constructs an unloaded texture with no resource.
| Rocket::Core::Texture::Texture | ( | const Texture & | ) |
Constructs a texture sharing the resource of another.
| Rocket::Core::Texture::~Texture | ( | ) |
| Vector2i Rocket::Core::Texture::GetDimensions | ( | RenderInterface * | render_interface | ) | const |
Returns the texture's dimensions.
| [in] | The | render interface that is requesting the dimensions. |
| TextureHandle Rocket::Core::Texture::GetHandle | ( | RenderInterface * | render_interface | ) | const |
Returns the texture's handle.
| [in] | The | render interface that is requesting the handle. |
| String Rocket::Core::Texture::GetSource | ( | ) | const |
Returns the texture's source name. This is usually the name of the file the texture was loaded from.
Attempts to load a texture.
| [in] | source | The name of the texture. |
| [in] | source_path | The path of the resource that is requesting the texture (ie, the RCSS file in which it was specified, etc). |
Releases this texture's resource (if any), and sets it to another texture's resource.
1.8.8