Public Member Functions | Public Attributes

Texture Class Reference

Texture class. More...

#include <Texture.h>

List of all members.

Public Member Functions

 Texture ()
 Texture (const char *pfad)
 Texture (std::vector< float > diffx, std::vector< float > diffy)
 Texture (int width, int height, FlowChannel *channel0, FlowChannel *channel1, FlowChannel *channel2, FlowChannel *channel3, bool map, bool flipped)
 ~Texture ()
vec3 GetValueAt (double i, double j)

Public Attributes

std::vector< float > data
GLuint texture_id
int m_width
int m_height
int format

Detailed Description

Texture class.

Diese Klasse verwaltet alle Texturen. Einerseits die Gridtexture, anderseits die Channel Texturen, sowie die Arrow und Glyph Texture.

Author:
Michael Michael
Date:
18.1.2010

Constructor & Destructor Documentation

Texture::Texture (  )

Standardkontruktor

Texture::Texture ( const char *  pfad )

Dieser Konstruktor ladet das Bild im Pfad und erstellt die Texture.

Texture::Texture ( std::vector< float >  diffx,
std::vector< float >  diffy 
)

Dieser Konstruktor erstellt die Gridtexture.

Texture::Texture ( int  width,
int  height,
FlowChannel channel0,
FlowChannel channel1,
FlowChannel channel2,
FlowChannel channel3,
bool  map,
bool  flipped 
)

Dieser Konstruktor erstellt die Channel Texture anhand der einzelnen Channels.

Texture::~Texture (  )

Dekonstruktor, löscht das Objket


Member Function Documentation

vec3 Texture::GetValueAt ( double  i,
double  j 
)

Dieser Funktion retuniert den Wert der Textur an Stelle x und y

Parameters:
x... x Wert
y... y Wert
Returns:
Wert

The documentation for this class was generated from the following files:
 All Classes Functions Variables