Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine.
GitHub | Vesper Updates | Creator
Loading...
Searching...
No Matches
Vesper::Texture Class Referenceabstract

An abstraction for a texture. More...

#include <Texture.h>

Inheritance diagram for Vesper::Texture:
Vesper::Texture2D Vesper::OpenGLTexture2D

Public Member Functions

virtual ~Texture ()=default
virtual uint32_t GetWidth () const =0
 Returns the width of the texture.
virtual uint32_t GetHeight () const =0
 Returns the height of the texture.
virtual uint32_t GetRendererID () const =0
 Returns the renderer ID of the texture.
virtual void Bind (uint32_t slot=0) const =0
 Binds the texture to the specified slot for use.
virtual void SetData (void *data, uint32_t size)=0
 Sets the data of the texture.
virtual bool operator== (const Texture2D &other) const =0
virtual std::string GetName () const =0

Detailed Description

An abstraction for a texture.

Constructor & Destructor Documentation

◆ ~Texture()

virtual Vesper::Texture::~Texture ( )
virtualdefault

Member Function Documentation

◆ Bind()

virtual void Vesper::Texture::Bind ( uint32_t slot = 0) const
pure virtual

Binds the texture to the specified slot for use.

Implemented in Vesper::OpenGLTexture2D.

◆ GetHeight()

virtual uint32_t Vesper::Texture::GetHeight ( ) const
pure virtual

Returns the height of the texture.

Implemented in Vesper::OpenGLTexture2D.

◆ GetName()

virtual std::string Vesper::Texture::GetName ( ) const
pure virtual

Implemented in Vesper::OpenGLTexture2D.

◆ GetRendererID()

virtual uint32_t Vesper::Texture::GetRendererID ( ) const
pure virtual

Returns the renderer ID of the texture.

Implemented in Vesper::OpenGLTexture2D.

◆ GetWidth()

virtual uint32_t Vesper::Texture::GetWidth ( ) const
pure virtual

Returns the width of the texture.

Implemented in Vesper::OpenGLTexture2D.

◆ operator==()

virtual bool Vesper::Texture::operator== ( const Texture2D & other) const
pure virtual

Implemented in Vesper::OpenGLTexture2D.

◆ SetData()

virtual void Vesper::Texture::SetData ( void * data,
uint32_t size )
pure virtual

Sets the data of the texture.

Parameters
dataPointer to the data to be set.
sizeSize of the data in bytes.

Implemented in Vesper::OpenGLTexture2D.


The documentation for this class was generated from the following file: