20#if defined(OSG_GLES1_AVAILABLE) || defined(OSG_GLES2_AVAILABLE) || defined(OSG_GLES3_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
#define GL_NORMAL_MAP_ARB
Definition TexGen:31
#define GL_REFLECTION_MAP_ARB
Definition TexGen:35
#define COMPARE_StateAttribute_Parameter(parameter)
COMPARE_StateAttribute_Parameter macro is a helper for implementing the StatateAtribute::compare(....
Definition StateAttribute:69
#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
COMPARE_StateAttribute_Types macro is a helper for implementing the StateAtribute::compare(....
Definition StateAttribute:57
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
A plane class.
Definition Plane:34
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
@ TEXGEN
Definition StateAttribute:146
Definition StateAttribute:308
virtual void usesTextureMode(GLMode mode)=0
Plane & getPlane(Coord which)
virtual int compare(const StateAttribute &sa) const
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Definition TexGen:62
void setMode(Mode mode)
Definition TexGen:108
Plane _plane_q
Definition TexGen:136
Coord
Definition TexGen:112
Plane _plane_s
Additional texgen coefficients for GL_OBJECT_PLANE or GL_EYE_PLANE,.
Definition TexGen:136
Mode _mode
Definition TexGen:132
Mode
Definition TexGen:100
@ NORMAL_MAP
Definition TexGen:104
@ EYE_LINEAR
Definition TexGen:102
@ REFLECTION_MAP
Definition TexGen:105
@ SPHERE_MAP
Definition TexGen:103
@ OBJECT_LINEAR
Definition TexGen:101
META_StateAttribute(osg, TexGen, TEXGEN)
virtual bool getModeUsage(StateAttribute::ModeUsage &usage) const
Return the modes associated with this StateAttribute.
Definition TexGen:78
TexGen(const TexGen &texgen, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition TexGen:49
virtual bool isTextureAttribute() const
Return true if StateAttribute is a type which controls texturing and needs to be issued w....
Definition TexGen:59
void setPlanesFromMatrix(const Matrixd &matrix)
Set the tex gen planes from specified matrix.
Mode getMode() const
Definition TexGen:110
const Plane & getPlane(Coord which) const
Plane _plane_r
Definition TexGen:136
Plane _plane_t
Definition TexGen:136
virtual void apply(State &state) const
apply the OpenGL state attributes.
void setPlane(Coord which, const Plane &plane)
#define OSG_EXPORT
Definition Export:39