Added osg::TextureCubeMap. submission from Brede Johansen.

This commit is contained in:
Robert Osfield
2002-03-18 23:10:33 +00:00
parent 49e7be88a7
commit 8f02db61e5
7 changed files with 561 additions and 3 deletions

View File

@@ -11,6 +11,14 @@
namespace osg {
#ifndef GL_NORMAL_MAP_ARB
#define GL_NORMAL_MAP_ARB 0x8511
#endif
#ifndef GL_REFLECTION_MAP_ARB
#define GL_REFLECTION_MAP_ARB 0x8512
#endif
/** TexGen - encapsulates the OpenGL glTexGen (texture coordinate generation) state.*/
class SG_EXPORT TexGen : public StateAttribute
{
@@ -69,9 +77,11 @@ class SG_EXPORT TexGen : public StateAttribute
virtual void apply(State& state) const;
enum Mode {
OBJECT_LINEAR = GL_OBJECT_LINEAR,
EYE_LINEAR = GL_EYE_LINEAR,
SPHERE_MAP = GL_SPHERE_MAP
OBJECT_LINEAR = GL_OBJECT_LINEAR,
EYE_LINEAR = GL_EYE_LINEAR,
SPHERE_MAP = GL_SPHERE_MAP,
NORMAL_MAP = GL_NORMAL_MAP_ARB,
REFLECTION_MAP = GL_REFLECTION_MAP_ARB
};
inline void setMode( const Mode mode ) { _mode = mode; }