ZeroZero Game Engine  v0.0
A 3D game engine using Vulkan & Jolt
Public Member Functions | List of all members
Texture Class Referenceabstract

Detailed Description

Base class for textures resources.

Inheritance diagram for Texture:
Resource Object ImageTexture

Public Member Functions

 Texture (const string &name)
 
virtual uint32_t getWidth () const = 0
 
virtual uint32_t getHeight () const = 0
 
virtual vec2 getSize () const
 
- Public Member Functions inherited from Resource
auto getId () const
 
const auto & getName () const
 
string toString () const override
 
virtual shared_ptr< Resource > duplicate () const
 
- Public Member Functions inherited from Object
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)
 

Constructor & Destructor Documentation

Texture ( const string &  name)
explicit

Creates a Texture

Parameters
nameresource name. Only informative.

Member Function Documentation

virtual uint32_t getHeight ( ) const
nodiscardpure virtual

Returns the height in pixels on the texture

Implemented in z0::ImageTexture::getHeight()

virtual vec2 getSize ( ) const
nodiscardinlinevirtual

Returns the size in pixels on the texture

virtual uint32_t getWidth ( ) const
nodiscardpure virtual

Returns the width in pixels on the texture

Implemented in z0::ImageTexture::getWidth()