jGL
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes | List of all members
jGL::Texture Class Referenceabstract

#include <texture.h>

Inheritance diagram for jGL::Texture:
Inheritance graph
[legend]
Collaboration diagram for jGL::Texture:
Collaboration graph
[legend]

Public Types

enum class  Type { RGB , RGBA }
 

Public Member Functions

 Texture ()
 
virtual ~Texture ()=default
 
virtual void bind (unsigned unit)=0
 
bool operator== (const Texture &rhs) const
 
const IdgetId () const
 
const glm::ivec3 size () const
 

Protected Attributes

int width
 
int height
 
int channels
 
Id id
 

Member Enumeration Documentation

◆ Type

enum class jGL::Texture::Type
strong
Enumerator
RGB 
RGBA 

Constructor & Destructor Documentation

◆ Texture()

jGL::Texture::Texture ( )
inline

◆ ~Texture()

virtual jGL::Texture::~Texture ( )
virtualdefault

Member Function Documentation

◆ bind()

virtual void jGL::Texture::bind ( unsigned  unit)
pure virtual

◆ getId()

const Id & jGL::Texture::getId ( ) const
inline

◆ operator==()

bool jGL::Texture::operator== ( const Texture rhs) const
inline

◆ size()

const glm::ivec3 jGL::Texture::size ( ) const
inline

Member Data Documentation

◆ channels

int jGL::Texture::channels
protected

◆ height

int jGL::Texture::height
protected

◆ id

Id jGL::Texture::id
protected

◆ width

int jGL::Texture::width
protected

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