Logo Search packages:      
Sourcecode: performous version File versions  Download package

Texture Class Reference

#include <surface.hh>

Inheritance diagram for Texture:

OpenGLTexture< GL_TEXTURE_2D >

List of all members.


Detailed Description

Texture wrapper. Textures with non-power-of-two dimensions may be slow to load. If you don't need texturing, use Surface instead.

Definition at line 110 of file surface.hh.


Public Member Functions

float ar () const
void draw (Dimensions const &dim, TexCoords const &tex) const
GLuint id () const
void load (unsigned int width, unsigned int height, pix::Format format, unsigned char const *buffer, float ar=0.0f)
 Texture (std::string const &filename)

Static Public Member Functions

static GLenum type ()

Private Attributes

float m_ar

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

Generated by  Doxygen 1.6.0   Back to index