Untitled Game engine no.5  1.0
Public Member Functions | Public Attributes | List of all members
Engine::Texture Class Reference

Container for texture data. More...

#include <Texture.hpp>

Inheritance diagram for Engine::Texture:
Inheritance graph
[legend]

Public Member Functions

virtual uint32_t getID () const
 Texture id - an id link to the texture.
 
virtual float getWidth () const
 visual width of the texture in game dimensions
 
virtual float getHeight () const
 visual height of the texture in game dimensions
 
virtual void setWidth (float width)
 visual width of the texture in game dimensions
 
virtual void setHeight (float height)
 visual height of the texture in game dimensions
 
virtual void setSize (float width, float height)
 visual size of the texture in game dimensions
 
virtual void setID (uint32_t id)
 set texture id
 
virtual void Bind (uint32_t slot=0) const
 
virtual Ref< TextureMapgetDefaultMapping () const
 Get the texture mapping.
 

Public Attributes

int renderSlot = -1
 

Detailed Description

Container for texture data.

Member Function Documentation

◆ Bind()

virtual void Engine::Texture::Bind ( uint32_t  slot = 0) const
inlinevirtual

Bind texture data using the id and a current slot

Parameters
slotto bind texture to

Reimplemented in Engine::GLTexture2D.


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