63 #include "EnvMapNode.hh"
70 namespace SceneGraph {
77 const std::string& _name ,
79 GLint _texture_filter)
80 :
TextureNode(_parent, _name,_texture_repeat,_texture_filter)
101 glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
102 glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
Namespace providing different geometric functions concerning angles.
static void enable(GLenum _cap)
replaces glEnable, but supports locking
ACGDLLEXPORT DrawMode SOLID_ENV_MAPPED
draw environment mapped
PickTarget
What target to use for picking.
void enter(GLState &_state, const DrawModes::DrawMode &_drawmode)
set default texture and states for the nodes children
static void disable(GLenum _cap)
replaces glDisable, but supports locking
DrawModes::DrawMode availableDrawModes() const
add env mapping
void enter(GLState &_state, const DrawModes::DrawMode &_drawmode)
set texture
DrawMode SOLID_ENV_MAPPED
draw environment mapped
void enterPick(GLState &_state, PickTarget _target, const DrawModes::DrawMode &_drawMode)
Do nothing in picking.
void leave(GLState &_state, const DrawModes::DrawMode &_drawmode)
restores original texture (or no-texture)
EnvMapNode(BaseNode *_parent=0, const std::string &_name="<EnvMapNode>", bool _texture_repeat=true, GLint _texture_filter=GL_LINEAR)
Default constructor. Applies all properties.
void leavePick(GLState &_state, PickTarget _target, const DrawModes::DrawMode &_drawMode)
Do nothing in picking.
void leave(GLState &_state, const DrawModes::DrawMode &_drawmode)
Unbind Texture.