ZeroZero Game Engine
v0.0
A 3D game engine using Vulkan & Jolt
|
Base class for textures resources.
Public Member Functions | |
Texture (const string &name) | |
virtual uint32_t | getWidth () const = 0 |
virtual uint32_t | getHeight () const = 0 |
virtual vec2 | getSize () const |
![]() | |
auto | getId () const |
const auto & | getName () const |
string | toString () const override |
virtual shared_ptr< Resource > | duplicate () const |
![]() | |
void | connect (const Signal::signal &name, const Signal::Handler &handler) |
void | connect (const Signal::signal &name, const function< void ()> &handler) |
void | emit (const Signal::signal &name, void *params=nullptr) |
|
explicit |
Creates a Texture
name | resource name. Only informative. |
|
nodiscardpure virtual |
Returns the height in pixels on the texture
Implemented in z0::ImageTexture::getHeight()
|
nodiscardinlinevirtual |
Returns the size in pixels on the texture
|
nodiscardpure virtual |
Returns the width in pixels on the texture
Implemented in z0::ImageTexture::getWidth()