#include <model.h>
Inherited by _classes_ [private].
Inheritance diagram for Texture:

Public Methods | |
| Texture (const std::string &file) | |
| This constructor opens file and generates an openGl texture using that data. handle is set to that value. More... | |
| ~Texture () | |
| void | Bind () |
| This calls the opengl bind function. This does not do anything if handle == last_handle to save time and then sets last_handle to this handle. More... | |
| bool | operator< (const Texture &oth) const |
| This is used only for sorting... even though there is no real < for textures. More... | |
| bool | operator== (const Texture &oth) const |
| Used for comparism between two textures. More... | |
Private Methods | |
| Texture (const Texture &) | |
| Private copy constructor to generate errors. More... | |
| Texture & | operator= (const Texture &) |
| Private = operator to generate errors. More... | |
Private Attributes | |
| int | handle |
| An OpenGL handle to the texture. More... | |
Static Private Attributes | |
| int | last_handle |
| Used to make sure that Model s that call Draw two times do not have to Bind the texture more than one time. More... | |
|
|
Private copy constructor to generate errors.
00007 {}
|
|
|
This constructor opens file and generates an openGl texture using that data. handle is set to that value.
00013 {
00014 assert(0);
00015 }
|
|
|
00016 {
00017 assert(0);
00018 }
|
|
|
This calls the opengl bind function. This does not do anything if handle == last_handle to save time and then sets last_handle to this handle.
|
|
|
This is used only for sorting... even though there is no real < for textures.
|
|
|
Private = operator to generate errors.
00009 {return *this;}
|
|
|
Used for comparism between two textures.
|
|
|
An OpenGL handle to the texture.
|
|
|
Used to make sure that Model s that call Draw two times do not have to Bind the texture more than one time.
|
1.2.15