glv::Texture2 Class Reference

2-D texture More...

#include <glv_texture.h>

List of all members.

Public Member Functions

 Texture2 (GLsizei width, GLsizei height, GLenum format=GL_RGB, GLenum type=GL_UNSIGNED_BYTE)
 This constructor will allocate an internal pixel buffer.
 Texture2 (GLsizei width, GLsizei height, GLvoid *pixels=0, GLenum format=GL_RGB, GLenum type=GL_UNSIGNED_BYTE, bool doesLoad=false)
 Constructor.
GLsizei width () const
 Get width.
GLsizei height () const
 Get height.
void begin () const
 Bind self to current context.
void end () const
 Binds default texture.
Texture2bind ()
 Bind self to current context.
Texture2draw (float ql, float qt, float qr, float qb, float tl=0, float tt=1, float tr=1, float tb=0)
Texture2load (GLsizei w, GLsizei h, GLvoid *pixels=0)
 Resizes texture on graphics card.
Texture2reload ()
 Reload texture onto GPU.
Texture2send ()
 Send pointed to pixels to GPU.
Texture2format (GLenum v)
 Set the color format.
Texture2type (GLenum v)
 Set the color data type.


Detailed Description

2-D texture

Member Function Documentation

Texture2 & glv::Texture2::draw ( float  ql,
float  qt,
float  qr,
float  qb,
float  tl = 0,
float  tt = 1,
float  tr = 1,
float  tb = 0 
)

Parameters:
ql  Draw texture to rectangular quad


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

Generated on Thu Aug 12 23:55:16 2010 for GLV by  doxygen 1.5.5