7 #ifndef __osg_SurfaceOSG_h__ 8 #define __osg_SurfaceOSG_h__ 24 public SurfaceSphere::Impact,
29 virtual ~Impact(
void) {}
31 virtual SpatialVector intersection(
void) {
return m_intersection; }
35 virtual void resolve(
void) {}
42 void initialize(
void);
52 Real a_maxDistance)
const;
56 const Color* a_color)
const;
60 typedef osg::ref_ptr<osg::DrawArrays> RefArray;
61 typedef osg::ref_ptr<osg::DrawElementsUShort> RefShort;
66 Array(
void): which(0) {}
67 void bind(RefArray& a_refArray)
70 m_refArray=a_refArray;
72 void bind(RefShort& a_refShort)
75 m_refShort=a_refShort;
79 return which? m_refShort->size():
80 m_refArray->getCount();
82 U32 operator[](U32 a_index)
84 return which? m_refShort->at(a_index):
85 m_refArray->index(a_index);
94 virtual void cache(
void);
Discrete Triangle Surface.
Definition: SurfaceTriangles.h:20
Base class providing protection counting for cp<>
Definition: Protectable.h:28
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Special vector for color (RGBA)
Definition: Color.h:21
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
Surface in OpenSceneGraph.
Definition: SurfaceOSG.h:19
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192