#include <OgreBillboardSet.h>
Inheritance diagram for Ogre::BillboardSet:
Public Types | |
typedef std::vector< ShadowRenderable * > | ShadowRenderableList |
typedef VectorIterator< ShadowRenderableList > | ShadowRenderableListIterator |
Public Member Functions | |
BillboardSet (const String &name, unsigned int poolSize=20, bool externalDataSource=false) | |
Usual constructor - this is called by the SceneManager. | |
virtual | ~BillboardSet () |
Billboard * | createBillboard (const Vector3 &position, const ColourValue &colour=ColourValue::White) |
Creates a new billboard and adds it to this set. | |
Billboard * | createBillboard (Real x, Real y, Real z, const ColourValue &colour=ColourValue::White) |
Creates a new billboard and adds it to this set. | |
virtual int | getNumBillboards (void) const |
Returns the number of active billboards which currently make up this set. | |
virtual void | setAutoextend (bool autoextend) |
Tells the set whether to allow automatic extension of the pool of billboards. | |
virtual bool | getAutoextend (void) const |
Returns true if the billboard pool automatically extends. | |
virtual void | setSortingEnabled (bool sortenable) |
Enables sorting for this BillboardSet. | |
virtual bool | getSortingEnabled (void) const |
Returns true if sorting of billboards is enabled based on their distance from the camera. | |
virtual void | setPoolSize (unsigned int size) |
Adjusts the size of the pool of billboards available in this set. | |
virtual unsigned int | getPoolSize (void) const |
Returns the current size of the billboard pool. | |
virtual void | clear () |
Empties this set of all billboards. | |
virtual Billboard * | getBillboard (unsigned int index) const |
Returns a pointer to the billboard at the supplied index. | |
virtual void | removeBillboard (unsigned int index) |
Removes the billboard at the supplied index. | |
virtual void | removeBillboard (Billboard *pBill) |
Removes a billboard from the set. | |
virtual void | setBillboardOrigin (BillboardOrigin origin) |
Sets the point which acts as the origin point for all billboards in this set. | |
virtual BillboardOrigin | getBillboardOrigin (void) const |
Gets the point which acts as the origin point for all billboards in this set. | |
virtual void | setBillboardRotationType (BillboardRotationType rotationType) |
Sets billboard rotation type. | |
virtual BillboardRotationType | getBillboardRotationType (void) const |
Sets billboard rotation type. | |
virtual void | setDefaultDimensions (Real width, Real height) |
Sets the default dimensions of the billboards in this set. | |
virtual void | setDefaultWidth (Real width) |
See setDefaultDimensions - this sets 1 component individually. | |
virtual Real | getDefaultWidth (void) const |
See setDefaultDimensions - this gets 1 component individually. | |
virtual void | setDefaultHeight (Real height) |
See setDefaultDimensions - this sets 1 component individually. | |
virtual Real | getDefaultHeight (void) const |
See setDefaultDimensions - this gets 1 component individually. | |
virtual void | setMaterialName (const String &name) |
Sets the name of the material to be used for this billboard set. | |
virtual const String & | getMaterialName (void) const |
Sets the name of the material to be used for this billboard set. | |
virtual void | _notifyCurrentCamera (Camera *cam) |
Overridden from MovableObject. | |
void | beginBillboards (void) |
Begin injection of billboard data; applicable when constructing the BillboardSet for external data use. | |
void | injectBillboard (const Billboard &bb) |
Define a billboard. | |
void | endBillboards (void) |
Finish defining billboards. | |
void | setBounds (const AxisAlignedBox &box, Real radius) |
Set the bounds of the BillboardSet. | |
virtual const AxisAlignedBox & | getBoundingBox (void) const |
Overridden from MovableObject. | |
virtual Real | getBoundingRadius (void) const |
Overridden from MovableObject. | |
virtual void | _updateRenderQueue (RenderQueue *queue) |
Overridden from MovableObject. | |
virtual const MaterialPtr & | getMaterial (void) const |
Overridden from MovableObject. | |
virtual void | getRenderOperation (RenderOperation &op) |
Overridden from MovableObject. | |
virtual void | getWorldTransforms (Matrix4 *xform) const |
Overridden from MovableObject. | |
const Quaternion & | getWorldOrientation (void) const |
| |
const Vector3 & | getWorldPosition (void) const |
| |
virtual void | _notifyBillboardResized (void) |
Internal callback used by Billboards to notify their parent that they have been resized. | |
virtual void | _notifyBillboardRotated (void) |
Internal callback used by Billboards to notify their parent that they have been rotated.. | |
virtual bool | getCullIndividually (void) const |
Returns whether or not billbards in this are tested individually for culling. | |
virtual void | setCullIndividually (bool cullIndividual) |
Sets whether culling tests billboards in this individually as well as in a group. | |
virtual void | setBillboardType (BillboardType bbt) |
Sets the type of billboard to render. | |
virtual BillboardType | getBillboardType (void) const |
Returns the billboard type in use. | |
virtual void | setCommonDirection (const Vector3 &vec) |
Use this to specify the common direction given to billboards of type BBT_ORIENTED_COMMON or BBT_PERPENDICULAR_COMMON. | |
virtual const Vector3 & | getCommonDirection (void) const |
Gets the common direction for all billboards (BBT_ORIENTED_COMMON). | |
virtual void | setCommonUpVector (const Vector3 &vec) |
Use this to specify the common up-vector given to billboards of type BBT_PERPENDICULAR_SELF or BBT_PERPENDICULAR_COMMON. | |
virtual const Vector3 & | getCommonUpVector (void) const |
Gets the common up-vector for all billboards (BBT_PERPENDICULAR_SELF and BBT_PERPENDICULAR_COMMON). | |
virtual void | setUseAccurateFacing (bool acc) |
Sets whether or not billboards should use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction. | |
virtual bool | getUseAccurateFacing (void) const |
Gets whether or not billboards use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction. | |
virtual const String & | getMovableType (void) const |
Overridden from MovableObject. | |
Real | getSquaredViewDepth (const Camera *cam) const |
Overridden, see Renderable. | |
virtual void | _updateBounds (void) |
Update the bounds of the billboardset. | |
const LightList & | getLights (void) const |
| |
virtual void | _sortBillboards (Camera *cam) |
Sort the billboard set. | |
virtual SortMode | _getSortMode (void) const |
Gets the sort mode of this billboard set. | |
virtual void | setBillboardsInWorldSpace (bool ws) |
Sets whether billboards should be treated as being in world space. | |
virtual void | setTextureCoords (Ogre::FloatRect const *coords, uint16 numCoords) |
BillboardSet can use custom texture coordinates for various billboards. | |
virtual void | setTextureStacksAndSlices (uchar stacks, uchar slices) |
setTextureStacksAndSlices() will generate texture coordinate rects as if the texture for the billboard set contained 'stacks' rows of 'slices' images each, all equal size. | |
virtual Ogre::FloatRect const * | getTextureCoords (uint16 *oNumCoords) |
getTextureCoords() returns the current texture coordinate rects in effect. | |
virtual void | setPointRenderingEnabled (bool enabled) |
Set whether or not the BillboardSet will use point rendering rather than manually generated quads. | |
virtual bool | isPointRenderingEnabled (void) const |
Returns whether point rendering is enabled. | |
uint32 | getTypeFlags (void) const |
Override to return specific type flag. | |
virtual void | _notifyCreator (MovableObjectFactory *fact) |
Notify the object of it's creator (internal use only). | |
virtual void | _notifyManager (SceneManager *man) |
Notify the object of it's manager (internal use only). | |
virtual SceneManager * | _getManager (void) const |
Get the manager of this object, if any (internal use only). | |
virtual const String & | getName (void) const |
Returns the name of this object. | |
virtual Node * | getParentNode (void) const |
Returns the node to which this object is attached. | |
virtual SceneNode * | getParentSceneNode (void) const |
Returns the scene node to which this object is attached. | |
virtual void | _notifyAttached (Node *parent, bool isTagPoint=false) |
Internal method called to notify the object that it has been attached to a node. | |
virtual bool | isAttached (void) const |
Returns true if this object is attached to a SceneNode or TagPoint. | |
virtual bool | isInScene (void) const |
Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is currently in an active part of the scene graph. | |
virtual const AxisAlignedBox & | getWorldBoundingBox (bool derive=false) const |
Retrieves the axis-aligned bounding box for this object in world coordinates. | |
virtual const Sphere & | getWorldBoundingSphere (bool derive=false) const |
Retrieves the worldspace bounding sphere for this object. | |
virtual void | setVisible (bool visible) |
Tells this object whether to be visible or not, if it has a renderable component. | |
virtual bool | isVisible (void) const |
Returns whether or not this object is supposed to be visible or not. | |
virtual void | setRenderingDistance (Real dist) |
Sets the distance at which the object is no longer rendered. | |
virtual Real | getRenderingDistance (void) const |
Gets the distance at which batches are no longer rendered. | |
virtual void | setUserObject (UserDefinedObject *obj) |
Call this to associate your own custom user object instance with this MovableObject. | |
virtual UserDefinedObject * | getUserObject (void) |
Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject. | |
virtual void | setUserAny (const Any &anything) |
Sets any kind of user value on this object. | |
virtual const Any & | getUserAny (void) const |
Retrieves the custom user value associated with this object. | |
virtual void | setRenderQueueGroup (uint8 queueID) |
Sets the render queue group this entity will be rendered through. | |
virtual uint8 | getRenderQueueGroup (void) const |
Gets the queue group for this entity, see setRenderQueueGroup for full details. | |
virtual Matrix4 | _getParentNodeFullTransform (void) const |
return the full transformation of the parent sceneNode or the attachingPoint node | |
virtual void | setQueryFlags (uint32 flags) |
Sets the query flags for this object. | |
virtual void | addQueryFlags (uint32 flags) |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object. | |
virtual void | removeQueryFlags (unsigned long flags) |
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object. | |
virtual uint32 | getQueryFlags (void) const |
Returns the query flags relevant for this object. | |
virtual void | setVisibilityFlags (uint32 flags) |
Sets the visiblity flags for this object. | |
virtual void | addVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object. | |
virtual void | removeVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object. | |
virtual uint32 | getVisibilityFlags (void) const |
Returns the visibility flags relevant for this object. | |
EdgeData * | getEdgeList (void) |
Define a default implementation of method from ShadowCaster which implements no shadows. | |
ShadowRenderableListIterator | getShadowVolumeRenderableIterator (ShadowTechnique shadowTechnique, const Light *light, HardwareIndexBufferSharedPtr *indexBuffer, bool extrudeVertices, Real extrusionDist, unsigned long flags=0) |
Define a default implementation of method from ShadowCaster which implements no shadows. | |
const AxisAlignedBox & | getLightCapBounds (void) const |
Overridden member from ShadowCaster. | |
const AxisAlignedBox & | getDarkCapBounds (const Light &light, Real dirLightExtrusionDist) const |
Overridden member from ShadowCaster. | |
void | setCastShadows (bool enabled) |
Sets whether or not this object will cast shadows. | |
bool | getCastShadows (void) const |
Returns whether shadow casting is enabled for this object. | |
Real | getPointExtrusionDistance (const Light *l) const |
Get the distance to extrude for a point/spot light. | |
const StringVector & | getAnimableValueNames (void) const |
Gets a list of animable value names for this object. | |
virtual AnimableValuePtr | createAnimableValue (const String &valueName) |
Create a reference-counted AnimableValuePtr for the named value. | |
virtual Technique * | getTechnique (void) const |
Retrieves a pointer to the Material Technique this renderable object uses. | |
virtual unsigned short | getNumWorldTransforms (void) const |
Returns the number of world transform matrices this renderable requires. | |
virtual bool | useIdentityProjection (void) const |
Returns whether or not to use an 'identity' projection. | |
virtual bool | useIdentityView (void) const |
Returns whether or not to use an 'identity' projection. | |
virtual bool | getNormaliseNormals (void) const |
Returns whether or not this Renderable wishes the hardware to normalise normals. | |
virtual const PlaneList & | getClipPlanes () const |
virtual bool | getCastsShadows (void) const |
Method which reports whether this renderable would normally cast a shadow. | |
void | setCustomParameter (size_t index, const Vector4 &value) |
Sets a custom parameter for this Renderable, which may be used to drive calculations for this specific Renderable, like GPU program parameters. | |
const Vector4 & | getCustomParameter (size_t index) const |
Gets the custom value associated with this Renderable at the given index. | |
virtual void | _updateCustomGpuParameter (const GpuProgramParameters::AutoConstantEntry &constantEntry, GpuProgramParameters *params) const |
Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows. | |
virtual void | setPolygonModeOverrideable (bool override) |
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. | |
virtual bool | getPolygonModeOverrideable (void) const |
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. | |
Static Public Member Functions | |
void | setDefaultQueryFlags (uint32 flags) |
Set the default query flags for all future MovableObject instances. | |
uint32 | getDefaultQueryFlags (uint32 flags) |
Get the default query flags for all future MovableObject instances. | |
void | setDefaultVisibilityFlags (uint32 flags) |
Set the default visibility flags for all future MovableObject instances. | |
uint32 | getDefaultVisibilityFlags (uint32 flags) |
Get the default visibility flags for all future MovableObject instances. | |
void | extrudeVertices (HardwareVertexBufferSharedPtr vertexBuffer, size_t originalVertexCount, const Vector4 &lightPos, Real extrudeDist) |
Utility method for extruding vertices based on a light. | |
Protected Types | |
typedef std::list< Billboard * > | ActiveBillboardList |
typedef std::list< Billboard * > | FreeBillboardList |
typedef std::vector< Billboard * > | BillboardPool |
typedef std::vector< Ogre::FloatRect > | TextureCoordSets |
typedef std::map< String, StringVector > | AnimableDictionaryMap |
typedef std::map< size_t, Vector4 > | CustomParameterMap |
Protected Member Functions | |
BillboardSet () | |
Private constructor (instances cannot be created directly). | |
bool | billboardVisible (Camera *cam, const Billboard &bill) |
Internal method for culling individual billboards. | |
virtual void | increasePool (unsigned int size) |
Internal method for increasing pool size. | |
void | genBillboardAxes (Vector3 *pX, Vector3 *pY, const Billboard *pBill=0) |
Internal method for generating billboard corners. | |
void | getParametricOffsets (Real &left, Real &right, Real &top, Real &bottom) |
Internal method, generates parametric offsets based on origin. | |
void | genVertices (const Vector3 *const offsets, const Billboard &pBillboard) |
Internal method for generating vertex data. | |
void | genVertOffsets (Real inleft, Real inright, Real intop, Real inbottom, Real width, Real height, const Vector3 &x, const Vector3 &y, Vector3 *pDestVec) |
Internal method generates vertex offsets. | |
Real | getExtrusionDistance (const Vector3 &objectPos, const Light *light) const |
Helper moethod for calculating extrusion distance. | |
virtual void | updateEdgeListLightFacing (EdgeData *edgeData, const Vector4 &lightPos) |
Tells the caster to perform the tasks necessary to update the edge data's light listing. | |
virtual void | generateShadowVolume (EdgeData *edgeData, HardwareIndexBufferSharedPtr indexBuffer, const Light *light, ShadowRenderableList &shadowRenderables, unsigned long flags) |
Generates the indexes required to render a shadow volume into the index buffer which is passed in, and updates shadow renderables to use it. | |
virtual void | extrudeBounds (AxisAlignedBox &box, const Vector4 &lightPos, Real extrudeDist) const |
Utility method for extruding a bounding box. | |
virtual const String & | getAnimableDictionaryName (void) const |
Get the name of the animable dictionary for this class. | |
void | createAnimableDictionary (void) const |
Internal method for creating a dictionary of animable value names for the class, if it does not already exist. | |
StringVector & | getAnimableValueNames (void) |
Get an updateable reference to animable value list. | |
virtual void | initialiseAnimableDictionary (StringVector &vec) const |
Internal method for initialising dictionary; should be implemented by subclasses wanting to expose animable parameters. | |
Protected Attributes | |
AxisAlignedBox | mAABB |
Bounds of all billboards in this set. | |
Real | mBoundingRadius |
Bounding radius. | |
BillboardOrigin | mOriginType |
Origin of each billboard. | |
BillboardRotationType | mRotationType |
Rotation type of each billboard. | |
Real | mDefaultWidth |
Default width of each billboard. | |
Real | mDefaultHeight |
Default height of each billboard. | |
String | mMaterialName |
Name of the material to use. | |
MaterialPtr | mpMaterial |
Pointer to the material to use. | |
bool | mAllDefaultSize |
True if no billboards in this set have been resized - greater efficiency. | |
bool | mAutoExtendPool |
Flag indicating whether to autoextend pool. | |
bool | mSortingEnabled |
Flag indicating whether the billboards has to be sorted. | |
bool | mAccurateFacing |
bool | mAllDefaultRotation |
bool | mWorldSpace |
ActiveBillboardList | mActiveBillboards |
Active billboard list. | |
FreeBillboardList | mFreeBillboards |
Free billboard queue. | |
BillboardPool | mBillboardPool |
Pool of billboard instances for use and reuse in the active billboard list. | |
VertexData * | mVertexData |
The vertex position data for all billboards in this set. | |
HardwareVertexBufferSharedPtr | mMainBuf |
Shortcut to main buffer (positions, colours, texture coords). | |
float * | mLockPtr |
Locked pointer to buffer. | |
Vector3 | mVOffset [4] |
Boundary offsets based on origin and camera orientation Vector3 vLeftOff, vRightOff, vTopOff, vBottomOff; Final vertex offsets, used where sizes all default to save calcs. | |
Camera * | mCurrentCamera |
Current camera. | |
Real | mLeftOff |
Real | mRightOff |
Real | mTopOff |
Real | mBottomOff |
Vector3 | mCamX |
Vector3 | mCamY |
Vector3 | mCamDir |
Quaternion | mCamQ |
Vector3 | mCamPos |
IndexData * | mIndexData |
The vertex index data for all billboards in this set (1 set only). | |
bool | mCullIndividual |
Flag indicating whether each billboard should be culled separately (default: false). | |
TextureCoordSets | mTextureCoords |
BillboardType | mBillboardType |
The type of billboard to render. | |
Vector3 | mCommonDirection |
Common direction for billboards of type BBT_ORIENTED_COMMON and BBT_PERPENDICULAR_COMMON. | |
Vector3 | mCommonUpVector |
Common up-vector for billboards of type BBT_PERPENDICULAR_SELF and BBT_PERPENDICULAR_COMMON. | |
unsigned short | mNumVisibleBillboards |
bool | mPointRendering |
Use point rendering? | |
String | mName |
Name of this object. | |
MovableObjectFactory * | mCreator |
Creator of this object (if created by a factory). | |
SceneManager * | mManager |
SceneManager holding this object (if applicable). | |
Node * | mParentNode |
node to which this object is attached | |
bool | mParentIsTagPoint |
bool | mVisible |
Is this object visible? | |
Real | mUpperDistance |
Upper distance to still render. | |
Real | mSquaredUpperDistance |
bool | mBeyondFarDistance |
Hidden because of distance? | |
Any | mUserAny |
User defined link to another object / value / whatever. | |
uint8 | mRenderQueueID |
The render queue to use when rendering this object. | |
bool | mRenderQueueIDSet |
Flags whether the RenderQueue's default should be used. | |
uint32 | mQueryFlags |
Flags determining whether this object is included / excluded from scene queries. | |
uint32 | mVisibilityFlags |
Flags determining whether this object is visible (compared to SceneManager mask). | |
AxisAlignedBox | mWorldAABB |
Cached world AABB of this object. | |
Sphere | mWorldBoundingSphere |
AxisAlignedBox | mWorldDarkCapBounds |
World space AABB of this object's dark cap. | |
bool | mCastShadows |
Does this object cast shadows? | |
CustomParameterMap | mCustomParameters |
bool | mPolygonModeOverrideable |
Static Protected Attributes | |
RadixSort< ActiveBillboardList, Billboard *, float > | mRadixSorter |
uint32 | msDefaultQueryFlags |
Default query flags. | |
uint32 | msDefaultVisibilityFlags |
Default visibility flags. | |
AnimableDictionaryMap | msAnimableDictionary |
Static map of class name to list of animable value names. | |
const PlaneList | msDummyPlaneList |
Private Member Functions | |
void | _createBuffers (void) |
Internal method creates vertex and index buffers. | |
void | _destroyBuffers (void) |
Internal method destroys vertex and index buffers. | |
Private Attributes | |
bool | mBuffersCreated |
Flag indicating whether the HW buffers have been created. | |
unsigned int | mPoolSize |
The number of billboard in the pool. | |
bool | mExternalData |
Is external billboard data in use? |
Definition at line 99 of file OgreBillboardSet.h.
|
Definition at line 141 of file OgreBillboardSet.h. |
|
Definition at line 202 of file OgreAnimable.h. |
|
Definition at line 143 of file OgreBillboardSet.h. |
|
Definition at line 247 of file OgreRenderable.h. |
|
Definition at line 142 of file OgreBillboardSet.h. |
|
Definition at line 121 of file OgreShadowCaster.h. |
|
Definition at line 122 of file OgreShadowCaster.h. |
|
Definition at line 200 of file OgreBillboardSet.h. |
|
Private constructor (instances cannot be created directly).
|
|
Usual constructor - this is called by the SceneManager.
|
|
|
|
Internal method creates vertex and index buffers.
|
|
Internal method destroys vertex and index buffers.
|
|
Get the manager of this object, if any (internal use only).
Definition at line 111 of file OgreMovableObject.h. |
|
return the full transformation of the parent sceneNode or the attachingPoint node
|
|
Gets the sort mode of this billboard set.
|
|
Internal method called to notify the object that it has been attached to a node.
Reimplemented in Ogre::Entity, and Ogre::ParticleSystem. |
|
Internal callback used by Billboards to notify their parent that they have been resized.
|
|
Internal callback used by Billboards to notify their parent that they have been rotated..
|
|
Notify the object of it's creator (internal use only).
Definition at line 107 of file OgreMovableObject.h. |
|
Overridden from MovableObject.
Reimplemented from Ogre::MovableObject. |
|
Notify the object of it's manager (internal use only).
Definition at line 109 of file OgreMovableObject.h. |
|
Sort the billboard set. Only called when enabled via setSortingEnabled |
|
Update the bounds of the billboardset.
|
|
Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows.
Reimplemented in Ogre::SubEntity, and Ogre::TerrainRenderable. Definition at line 215 of file OgreRenderable.h. References Ogre::GpuProgramParameters::AutoConstantEntry::data, Ogre::GpuProgramParameters::AutoConstantEntry::index, and Ogre::GpuProgramParameters::setConstant(). |
|
Overridden from MovableObject.
Implements Ogre::MovableObject. |
|
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
Definition at line 268 of file OgreMovableObject.h. References Ogre::uint32. |
|
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.
Definition at line 296 of file OgreMovableObject.h. References Ogre::uint32. |
|
Begin injection of billboard data; applicable when constructing the BillboardSet for external data use.
|
|
Internal method for culling individual billboards.
|
|
Empties this set of all billboards.
|
|
Internal method for creating a dictionary of animable value names for the class, if it does not already exist.
Definition at line 215 of file OgreAnimable.h. References Ogre::StringVector. |
|
Create a reference-counted AnimableValuePtr for the named value.
Reimplemented in Ogre::Light. Definition at line 281 of file OgreAnimable.h. References Ogre::AnimableValuePtr, OGRE_EXCEPT, and Ogre::String. |
|
Creates a new billboard and adds it to this set.
|
|
Creates a new billboard and adds it to this set.
|
|
Finish defining billboards.
|
|
Utility method for extruding a bounding box.
|
|
Utility method for extruding vertices based on a light.
|
|
Internal method for generating billboard corners.
|
|
Generates the indexes required to render a shadow volume into the index buffer which is passed in, and updates shadow renderables to use it.
|
|
Internal method for generating vertex data.
|
|
Internal method generates vertex offsets.
|
|
Get the name of the animable dictionary for this class.
Reimplemented in Ogre::Light. Definition at line 210 of file OgreAnimable.h. References Ogre::String. |
|
Gets a list of animable value names for this object.
Definition at line 256 of file OgreAnimable.h. References OGRE_EXCEPT, and Ogre::StringVector. |
|
Get an updateable reference to animable value list.
Definition at line 228 of file OgreAnimable.h. References OGRE_EXCEPT, and Ogre::StringVector. |
|
Returns true if the billboard pool automatically extends.
|
|
Returns a pointer to the billboard at the supplied index.
|
|
Gets the point which acts as the origin point for all billboards in this set.
|
|
Sets billboard rotation type.
|
|
Returns the billboard type in use.
|
|
Overridden from MovableObject.
Implements Ogre::MovableObject. |
|
Overridden from MovableObject.
Implements Ogre::MovableObject. |
|
Returns whether shadow casting is enabled for this object.
Implements Ogre::ShadowCaster. Definition at line 339 of file OgreMovableObject.h. |
|
Method which reports whether this renderable would normally cast a shadow.
Reimplemented in Ogre::StaticGeometry::GeometryBucket, and Ogre::SubEntity. Definition at line 150 of file OgreRenderable.h. |
|
Definition at line 142 of file OgreRenderable.h. References Ogre::PlaneList. |
|
Gets the common direction for all billboards (BBT_ORIENTED_COMMON).
|
|
Gets the common up-vector for all billboards (BBT_PERPENDICULAR_SELF and BBT_PERPENDICULAR_COMMON).
|
|
Returns whether or not billbards in this are tested individually for culling.
|
|
Gets the custom value associated with this Renderable at the given index.
Definition at line 176 of file OgreRenderable.h. References OGRE_EXCEPT. |
|
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster. |
|
See setDefaultDimensions - this gets 1 component individually.
|
|
Get the default query flags for all future MovableObject instances.
Definition at line 283 of file OgreMovableObject.h. References Ogre::uint32. |
|
Get the default visibility flags for all future MovableObject instances.
Definition at line 311 of file OgreMovableObject.h. References Ogre::uint32. |
|
See setDefaultDimensions - this gets 1 component individually.
|
|
Define a default implementation of method from ShadowCaster which implements no shadows.
Implements Ogre::ShadowCaster. Reimplemented in Ogre::Entity, Ogre::ManualObject, and Ogre::StaticGeometry::Region. Definition at line 314 of file OgreMovableObject.h. |
|
Helper moethod for calculating extrusion distance.
|
|
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster. |
|
Implements Ogre::Renderable. |
|
Overridden from MovableObject.
Implements Ogre::Renderable. |
|
Sets the name of the material to be used for this billboard set.
|
|
Overridden from MovableObject.
Implements Ogre::MovableObject. |
|
Returns the name of this object.
Reimplemented in Ogre::Camera. Definition at line 114 of file OgreMovableObject.h. References Ogre::String. |
|
Returns whether or not this Renderable wishes the hardware to normalise normals.
Reimplemented in Ogre::SubEntity. Definition at line 134 of file OgreRenderable.h. |
|
Returns the number of active billboards which currently make up this set.
|
|
Returns the number of world transform matrices this renderable requires.
Reimplemented in Ogre::BorderRenderable, and Ogre::SubEntity. Definition at line 104 of file OgreRenderable.h. |
|
Internal method, generates parametric offsets based on origin.
|
|
Returns the node to which this object is attached.
|
|
Returns the scene node to which this object is attached.
|
|
Get the distance to extrude for a point/spot light.
Implements Ogre::ShadowCaster. |
|
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
Reimplemented in Ogre::BorderRenderable. Definition at line 239 of file OgreRenderable.h. |
|
Returns the current size of the billboard pool.
|
|
Returns the query flags relevant for this object.
Definition at line 275 of file OgreMovableObject.h. References Ogre::uint32. |
|
Gets the distance at which batches are no longer rendered.
Definition at line 208 of file OgreMovableObject.h. References Ogre::Real. |
|
Overridden from MovableObject.
Implements Ogre::Renderable. |
|
Gets the queue group for this entity, see setRenderQueueGroup for full details.
|
|
Define a default implementation of method from ShadowCaster which implements no shadows.
Implements Ogre::ShadowCaster. Reimplemented in Ogre::Entity, Ogre::ManualObject, and Ogre::StaticGeometry::Region. |
|
Returns true if sorting of billboards is enabled based on their distance from the camera.
|
|
Overridden, see Renderable.
Implements Ogre::Renderable. |
|
Retrieves a pointer to the Material Technique this renderable object uses.
Reimplemented in Ogre::StaticGeometry::GeometryBucket, and Ogre::SubEntity. Definition at line 69 of file OgreRenderable.h. |
|
getTextureCoords() returns the current texture coordinate rects in effect. By default, there is only one texture coordinate rect in the set, spanning the entire texture from 0 through 1 in each direction.
|
|
Override to return specific type flag.
Reimplemented from Ogre::MovableObject. |
|
Gets whether or not billboards use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction.
Definition at line 698 of file OgreBillboardSet.h. |
|
Retrieves the custom user value associated with this object.
Definition at line 236 of file OgreMovableObject.h. |
|
Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject.
Definition at line 220 of file OgreMovableObject.h. |
|
Returns the visibility flags relevant for this object.
Definition at line 303 of file OgreMovableObject.h. References Ogre::uint32. |
|
Retrieves the axis-aligned bounding box for this object in world coordinates.
Implements Ogre::ShadowCaster. Reimplemented in Ogre::Entity. |
|
Retrieves the worldspace bounding sphere for this object.
Reimplemented in Ogre::Entity. |
|
Implements Ogre::Renderable. |
|
Implements Ogre::Renderable. |
|
Overridden from MovableObject.
Implements Ogre::Renderable. |
|
Internal method for increasing pool size.
|
|
Internal method for initialising dictionary; should be implemented by subclasses wanting to expose animable parameters.
Reimplemented in Ogre::Light. Definition at line 248 of file OgreAnimable.h. References Ogre::StringVector. |
|
Define a billboard.
|
|
Returns true if this object is attached to a SceneNode or TagPoint.
|
|
Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is currently in an active part of the scene graph.
|
|
Returns whether point rendering is enabled.
Definition at line 807 of file OgreBillboardSet.h. |
|
Returns whether or not this object is supposed to be visible or not.
Reimplemented in Ogre::StaticGeometry::Region. |
|
Removes a billboard from the set.
|
|
Removes the billboard at the supplied index.
|
|
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
Definition at line 272 of file OgreMovableObject.h. |
|
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.
Definition at line 300 of file OgreMovableObject.h. References Ogre::uint32. |
|
Tells the set whether to allow automatic extension of the pool of billboards.
|
|
Sets the point which acts as the origin point for all billboards in this set.
|
|
Sets billboard rotation type.
|
|
Sets whether billboards should be treated as being in world space.
Definition at line 722 of file OgreBillboardSet.h. |
|
Sets the type of billboard to render.
|
|
Set the bounds of the BillboardSet.
|
|
Sets whether or not this object will cast shadows.
Definition at line 337 of file OgreMovableObject.h. |
|
Use this to specify the common direction given to billboards of type BBT_ORIENTED_COMMON or BBT_PERPENDICULAR_COMMON.
|
|
Use this to specify the common up-vector given to billboards of type BBT_PERPENDICULAR_SELF or BBT_PERPENDICULAR_COMMON.
|
|
Sets whether culling tests billboards in this individually as well as in a group.
|
|
Sets a custom parameter for this Renderable, which may be used to drive calculations for this specific Renderable, like GPU program parameters.
Definition at line 167 of file OgreRenderable.h. |
|
Sets the default dimensions of the billboards in this set.
|
|
See setDefaultDimensions - this sets 1 component individually.
|
|
Set the default query flags for all future MovableObject instances.
Definition at line 279 of file OgreMovableObject.h. References Ogre::uint32. |
|
Set the default visibility flags for all future MovableObject instances.
Definition at line 307 of file OgreMovableObject.h. References Ogre::uint32. |
|
See setDefaultDimensions - this sets 1 component individually.
|
|
Sets the name of the material to be used for this billboard set.
|
|
Set whether or not the BillboardSet will use point rendering rather than manually generated quads.
|
|
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
Definition at line 231 of file OgreRenderable.h. |
|
Adjusts the size of the pool of billboards available in this set.
|
|
Sets the query flags for this object.
Definition at line 264 of file OgreMovableObject.h. References Ogre::uint32. |
|
Sets the distance at which the object is no longer rendered.
Definition at line 202 of file OgreMovableObject.h. References Ogre::Real. |
|
Sets the render queue group this entity will be rendered through.
Reimplemented in Ogre::Entity, and Ogre::ParticleSystem. |
|
Enables sorting for this BillboardSet. (default: off)
|
|
BillboardSet can use custom texture coordinates for various billboards. This is useful for selecting one of many particle images out of a tiled texture sheet, or doing flipbook animation within a single texture.
|
|
setTextureStacksAndSlices() will generate texture coordinate rects as if the texture for the billboard set contained 'stacks' rows of 'slices' images each, all equal size. Thus, if the texture size is 512x512 and 'stacks' is 4 and 'slices' is 8, each sub-rectangle of the texture would be 128 texels tall and 64 texels wide.
|
|
Sets whether or not billboards should use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction.
Definition at line 693 of file OgreBillboardSet.h. |
|
Sets any kind of user value on this object.
Definition at line 232 of file OgreMovableObject.h. |
|
Call this to associate your own custom user object instance with this MovableObject.
Definition at line 216 of file OgreMovableObject.h. |
|
Sets the visiblity flags for this object.
Definition at line 292 of file OgreMovableObject.h. References Ogre::uint32. |
|
Tells this object whether to be visible or not, if it has a renderable component.
Reimplemented in Ogre::Light. |
|
Tells the caster to perform the tasks necessary to update the edge data's light listing. Can be overridden if the subclass needs to do additional things.
|
|
Returns whether or not to use an 'identity' projection.
Reimplemented in Ogre::BorderRenderable, Ogre::OverlayElement, and Ogre::Rectangle2D. Definition at line 114 of file OgreRenderable.h. |
|
Returns whether or not to use an 'identity' projection.
Reimplemented in Ogre::BorderRenderable, Ogre::OverlayElement, and Ogre::Rectangle2D. Definition at line 124 of file OgreRenderable.h. |
|
Bounds of all billboards in this set.
Definition at line 107 of file OgreBillboardSet.h. |
|
Definition at line 136 of file OgreBillboardSet.h. |
|
Active billboard list.
Definition at line 153 of file OgreBillboardSet.h. |
|
Definition at line 138 of file OgreBillboardSet.h. |
|
True if no billboards in this set have been resized - greater efficiency.
Definition at line 127 of file OgreBillboardSet.h. |
|
Flag indicating whether to autoextend pool.
Definition at line 130 of file OgreBillboardSet.h. |
|
Hidden because of distance?
Definition at line 68 of file OgreMovableObject.h. |
|
Pool of billboard instances for use and reuse in the active billboard list.
Definition at line 168 of file OgreBillboardSet.h. |
|
The type of billboard to render.
Definition at line 204 of file OgreBillboardSet.h. |
|
Definition at line 183 of file OgreBillboardSet.h. |
|
Bounding radius.
Definition at line 109 of file OgreBillboardSet.h. |
|
Flag indicating whether the HW buffers have been created.
Definition at line 284 of file OgreBillboardSet.h. |
|
Definition at line 187 of file OgreBillboardSet.h. |
|
Definition at line 191 of file OgreBillboardSet.h. |
|
Definition at line 189 of file OgreBillboardSet.h. |
|
Definition at line 185 of file OgreBillboardSet.h. |
|
Definition at line 185 of file OgreBillboardSet.h. |
|
Does this object cast shadows?
Definition at line 86 of file OgreMovableObject.h. |
|
Common direction for billboards of type BBT_ORIENTED_COMMON and BBT_PERPENDICULAR_COMMON.
Definition at line 207 of file OgreBillboardSet.h. |
|
Common up-vector for billboards of type BBT_PERPENDICULAR_SELF and BBT_PERPENDICULAR_COMMON.
Definition at line 209 of file OgreBillboardSet.h. |
|
Creator of this object (if created by a factory).
Definition at line 56 of file OgreMovableObject.h. |
|
Flag indicating whether each billboard should be culled separately (default: false).
Definition at line 198 of file OgreBillboardSet.h. |
|
Current camera.
Definition at line 181 of file OgreBillboardSet.h. |
|
Definition at line 248 of file OgreRenderable.h. |
|
Default height of each billboard.
Definition at line 119 of file OgreBillboardSet.h. |
|
Default width of each billboard.
Definition at line 117 of file OgreBillboardSet.h. |
|
Is external billboard data in use?
Definition at line 288 of file OgreBillboardSet.h. |
|
Free billboard queue.
Definition at line 162 of file OgreBillboardSet.h. |
|
The vertex index data for all billboards in this set (1 set only).
Definition at line 195 of file OgreBillboardSet.h. |
|
Definition at line 183 of file OgreBillboardSet.h. |
|
Locked pointer to buffer.
Definition at line 175 of file OgreBillboardSet.h. |
|
Shortcut to main buffer (positions, colours, texture coords).
Definition at line 173 of file OgreBillboardSet.h. |
|
SceneManager holding this object (if applicable).
Definition at line 58 of file OgreMovableObject.h. |
|
Name of the material to use.
Definition at line 122 of file OgreBillboardSet.h. |
|
Name of this object.
Reimplemented in Ogre::Camera. Definition at line 54 of file OgreMovableObject.h. |
|
Definition at line 215 of file OgreBillboardSet.h. |
|
Origin of each billboard.
Definition at line 112 of file OgreBillboardSet.h. |
|
Definition at line 61 of file OgreMovableObject.h. |
|
node to which this object is attached
Definition at line 60 of file OgreMovableObject.h. |
|
Pointer to the material to use.
Definition at line 124 of file OgreBillboardSet.h. |
|
Use point rendering?
Definition at line 278 of file OgreBillboardSet.h. |
|
Definition at line 249 of file OgreRenderable.h. |
|
The number of billboard in the pool.
Definition at line 286 of file OgreBillboardSet.h. |
|
Flags determining whether this object is included / excluded from scene queries.
Definition at line 76 of file OgreMovableObject.h. |
|
Definition at line 275 of file OgreBillboardSet.h. |
|
The render queue to use when rendering this object.
Definition at line 72 of file OgreMovableObject.h. |
|
Flags whether the RenderQueue's default should be used.
Definition at line 74 of file OgreMovableObject.h. |
|
Definition at line 183 of file OgreBillboardSet.h. |
|
Rotation type of each billboard.
Definition at line 114 of file OgreBillboardSet.h. |
|
Static map of class name to list of animable value names.
Definition at line 204 of file OgreAnimable.h. |
|
Default query flags.
Definition at line 90 of file OgreMovableObject.h. |
|
Default visibility flags.
Definition at line 92 of file OgreMovableObject.h. |
|
Definition at line 246 of file OgreRenderable.h. |
|
Flag indicating whether the billboards has to be sorted.
Definition at line 133 of file OgreBillboardSet.h. |
|
Definition at line 66 of file OgreMovableObject.h. |
|
Definition at line 201 of file OgreBillboardSet.h. |
|
Definition at line 183 of file OgreBillboardSet.h. |
|
Upper distance to still render.
Definition at line 65 of file OgreMovableObject.h. |
|
User defined link to another object / value / whatever.
Definition at line 70 of file OgreMovableObject.h. |
|
The vertex position data for all billboards in this set.
Definition at line 171 of file OgreBillboardSet.h. |
|
Flags determining whether this object is visible (compared to SceneManager mask).
Definition at line 78 of file OgreMovableObject.h. |
|
Is this object visible?
Definition at line 63 of file OgreMovableObject.h. |
|
Boundary offsets based on origin and camera orientation Vector3 vLeftOff, vRightOff, vTopOff, vBottomOff; Final vertex offsets, used where sizes all default to save calcs.
Definition at line 179 of file OgreBillboardSet.h. |
|
Cached world AABB of this object.
Reimplemented in Ogre::ParticleSystem. Definition at line 80 of file OgreMovableObject.h. |
|
Definition at line 82 of file OgreMovableObject.h. |
|
World space AABB of this object's dark cap.
Definition at line 84 of file OgreMovableObject.h. |
|
Definition at line 139 of file OgreBillboardSet.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:38:13 2006