The Game Engine  1
Texture Struct Reference

This is a Container for handling a texture where when nothing else uses it it shall be deleted. More...

#include <Texture.h>

Public Member Functions

 Texture ()
 

Public Attributes

GLuint image
 Texture Name. More...
 
unsigned int count
 Number of objects using this Texture. More...
 

Detailed Description

This is a Container for handling a texture where when nothing else uses it it shall be deleted.

    This class is tasked with the following:
    - Maintaining a singleton reference to a Texture
    - Maintaining a count of the number of objects using the texture
Todo:
see if making a template for this idea would make sense since Texture and Font both do it.

Definition at line 14 of file Texture.h.

Constructor & Destructor Documentation

Texture::Texture ( )
inline

Definition at line 15 of file Texture.h.

Member Data Documentation

unsigned int Texture::count

Number of objects using this Texture.

Definition at line 17 of file Texture.h.

GLuint Texture::image

Texture Name.

Definition at line 16 of file Texture.h.


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