#include <Texture.h>
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 |
Texture class.
Diese Klasse verwaltet alle Texturen. Einerseits die Gridtexture, anderseits die Channel Texturen, sowie die Arrow und Glyph Texture.
| 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
| vec3 Texture::GetValueAt | ( | double | i, |
| double | j | ||
| ) |
Dieser Funktion retuniert den Wert der Textur an Stelle x und y
| x | ... x Wert |
| y | ... y Wert |
1.7.2