Eidolon
Public Member Functions | Protected Attributes | List of all members
OgreFigure Class Reference

#include <OgreRenderTypes.h>

Inheritance diagram for OgreFigure:
Inheritance graph
Collaboration diagram for OgreFigure:
Collaboration graph

Public Member Functions

 OgreFigure (const std::string &name, const std::string &matname, OgreRenderScene *scene, FigureType type) throw (RenderException)
 
virtual ~OgreFigure ()
 
virtual void fillData (const VertexBuffer *vb, const IndexBuffer *ib, bool deferFill=false, bool doubleSided=false) throw (RenderException)
 
- Public Member Functions inherited from OgreBaseFigure< OgreBaseRenderable, Figure >
 OgreBaseFigure (OgreBaseRenderable *obj, Ogre::SceneNode *node, OgreRenderScene *scene)
 
virtual ~OgreBaseFigure ()
 
OgreBaseRenderablegetRenderable () const
 
virtual const char * getName ()
 
virtual void setPosition (const vec3 &v)
 
virtual void setRotation (const rotator &r)
 
virtual void setScale (const vec3 &v)
 
virtual void setMaterial (const char *mat) throw (RenderException)
 
virtual const char * getMaterial () const
 
virtual std::pair< vec3, vec3getAABB () const
 
virtual void setParent (Figure *fig)
 
void setCameraVisibility (const Camera *cam, bool isVisible)
 
void setVisible (bool isVisible)
 
virtual bool isVisible () const
 
virtual bool isTransparent () const
 
virtual bool isOverlay () const
 
virtual void setTransparent (bool isTrans)
 
virtual void setOverlay (bool isOverlay)
 
virtual void setRenderQueue (sval queue)
 
virtual sval getRenderQueue () const
 
virtual vec3 getPosition (bool isDerived=false) const
 
virtual vec3 getScale (bool isDerived=false) const
 
virtual rotator getRotation (bool isDerived=false) const
 
- Public Member Functions inherited from Figure
virtual ~Figure ()
 
virtual void setTransform (const transform &t)
 Set position, rotation, and scale for this figure simultaneously. More...
 
virtual void setTransform (const vec3 &trans, const vec3 &scale, const rotator &rot)
 Set position, rotation, and scale for this figure simultaneously. More...
 
virtual transform getTransform (bool isDerived=false) const
 Get the figure's position, scale, and rotation transform. More...
 
virtual void setMaterial (const Material *mat) throw (RenderException)
 Set's the figure's material. More...
 

Protected Attributes

FigureType type
 
- Protected Attributes inherited from OgreBaseFigure< OgreBaseRenderable, Figure >
OgreBaseRenderableobj
 
Ogre::SceneNode * node
 The OgreBaseRenderable object which implements the actual rendering operations. More...
 
OgreRenderScenescene
 

Constructor & Destructor Documentation

◆ OgreFigure()

OgreFigure ( const std::string &  name,
const std::string &  matname,
OgreRenderScene scene,
FigureType  type 
)
throw (RenderException
)

◆ ~OgreFigure()

virtual ~OgreFigure ( )
inlinevirtual

Member Function Documentation

◆ fillData()

void fillData ( const VertexBuffer vb,
const IndexBuffer ib,
bool  deferFill = false,
bool  doubleSided = false 
)
throw (RenderException
)
virtual

Fill the vertex information using the given buffers, `ib' may be NULL for point figure types. If `deferFill' is true then the actual hardware buffers are filled during the next render cycle rather than immediately. In either case data is filled into local memory buffers first then copied to hardware buffers. This implies that calling this method is thread-safe if `deferFill' is true or if its implementation does nothing regardless of arguments. If `doubleSided' is true and the index buffer defined triangles, create backfaces for triangles with correct normals.

Reimplemented from Figure.

Here is the call graph for this function:

Member Data Documentation

◆ type

FigureType type
protected

The documentation for this class was generated from the following files: