18 #include <osg/StateAttribute>
20 #if defined(OSG_GLES1_AVAILABLE) || defined(OSG_GLES2_AVAILABLE) || defined(OSG_GL3_AVAILABLE)
21 #define GL_OBJECT_LINEAR 0x2401
22 #define GL_EYE_LINEAR 0x2400
23 #define GL_SPHERE_MAP 0x2402
24 #define GL_TEXTURE_GEN_S 0x0C60
25 #define GL_TEXTURE_GEN_T 0x0C61
26 #define GL_TEXTURE_GEN_R 0x0C62
27 #define GL_TEXTURE_GEN_Q 0x0C63
30 #ifndef GL_NORMAL_MAP_ARB
31 #define GL_NORMAL_MAP_ARB 0x8511
34 #ifndef GL_REFLECTION_MAP_ARB
35 #define GL_REFLECTION_MAP_ARB 0x8512
52 _plane_s(texgen._plane_s),
53 _plane_t(texgen._plane_t),
54 _plane_r(texgen._plane_r),
55 _plane_q(texgen._plane_q) {}
98 virtual void apply(
State& state)
const;
101 OBJECT_LINEAR = GL_OBJECT_LINEAR,
102 EYE_LINEAR = GL_EYE_LINEAR,
103 SPHERE_MAP = GL_SPHERE_MAP,
116 void setPlane(Coord which,
const Plane& plane);
118 Plane& getPlane(Coord which);
120 const Plane& getPlane(Coord which)
const;
126 void setPlanesFromMatrix(
const Matrixd& matrix);
#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
TexGen(const TexGen &texgen, const CopyOp ©op=CopyOp::SHALLOW_COPY)
#define GL_NORMAL_MAP_ARB
virtual int compare(const StateAttribute &sa) const
virtual bool isTextureAttribute() const
virtual bool getModeUsage(StateAttribute::ModeUsage &usage) const
virtual void usesTextureMode(GLMode mode)=0
#define META_StateAttribute(library, name, type)
A plane class. It can be used to represent an infinite plane.
#define COMPARE_StateAttribute_Parameter(parameter)
#define GL_REFLECTION_MAP_ARB