60 #ifndef ACG_TEXTURE_NODE_HH
61 #define ACG_TEXTURE_NODE_HH
67 #include "BaseNode.hh"
69 #include <ACG/GL/globjects.hh>
99 const std::string& _name =
"<TextureNode>",
100 bool _texture_repeat =
true,
101 GLint _texture_filter = GL_LINEAR );
116 bool repeat() {
return texture_repeat_; }
122 GLint
filter() {
return texture_filter_; }
125 void set_filter( GLint _filter ) { texture_filter_ = _filter; }
127 void set_texture_mode( GLenum _mode) { tex_mode_ = _mode; }
130 void enable_mipmapping();
133 void disable_mipmapping();
157 GLuint add_texture(
const QImage& _image);
162 void applyTextureParameters(
int _id );
166 void applyGLSettings( );
182 bool activateTexture(GLuint _id);
189 GLuint activeTexture();
196 bool read(
const char* _filename);
203 void set_texture(
const QImage& _image);
212 void set_texture(
const float * _image,
int _width,
int _height);
222 void set_texture(
const unsigned char * _image,
int _width,
int _height);
238 bool read(
const char* _filename, GLuint _id );
245 void set_texture(
const QImage& _image, GLuint _id);
254 void set_texture(
const float * _image,
int _width,
int _height, GLuint _id);
264 void set_texture(
const unsigned char * _image,
int _width,
int _height, GLuint _id);
299 mipmapAvailable(
false)
307 bool mipmapAvailable;
312 void setTextureDataGL ( GLuint _textureId,
318 const void * _data) ;
320 std::vector<TextureInfo> textures_;
322 bool texture_repeat_;
324 GLint texture_filter_;
326 bool mipmapping_globally_active_;
327 bool last_mipmapping_status_;
342 int available( GLuint _id );
346 void updateMipmaps(
bool _mipmap);
366 #endif // ACG_TEXTURE_NODE_HH defined
int activeTexture_
currently active texture
Namespace providing different geometric functions concerning angles.
void set_repeat(bool _status)
set texture repeat status
DrawModes::DrawMode open_volume_mesh_texture_draw_modes_
OpenVolumeMesh DrawModes using textures.
void set_alpha(bool _status)
set transparency status
void set_filter(GLint _filter)
set texture filter
bool alpha()
get transparency status
GLint filter()
get texture filter
bool mipmapping() const
Get mipmapping status.
PickTarget
What target to use for picking.
bool repeat()
get texture repeat status