Go to the documentation of this file.
28 #ifndef _Rectangle2D_H__
29 #define _Rectangle2D_H__
89 { (void)cam;
return 0; }
void getWorldTransforms(Matrix4 *xform) const
Override this method to prevent parent transforms (rotation,translation,scale)
void setUVs(const Ogre::Vector2 &topLeft, const Ogre::Vector2 &bottomLeft, const Ogre::Vector2 &topRight, const Ogre::Vector2 &bottomRight)
Sets the UVs of the rectangle.
A viewpoint from which the scene will be rendered.
Rectangle2D(const String &name, bool includeTextureCoordinates=false, HardwareBuffer::Usage vBufUsage=HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY)
void _initRectangle2D(bool includeTextureCoords, Ogre::HardwareBuffer::Usage vBufUsage)
void setCorners(Real left, Real top, Real right, Real bottom, bool updateAABB=true)
Sets the corners of the rectangle, in relative coordinates.
@ HBU_DYNAMIC_WRITE_ONLY
Combination of HBU_DYNAMIC and HBU_WRITE_ONLY.
void setNormals(const Ogre::Vector3 &topLeft, const Ogre::Vector3 &bottomLeft, const Ogre::Vector3 &topRight, const Ogre::Vector3 &bottomRight)
Sets the normals of the rectangle.
Class encapsulating a standard 4x4 homogeneous matrix.
Standard 2-dimensional vector.
Allows the rendering of a simple 2D rectangle This class renders a simple 2D rectangle; this rectangl...
Simple implementation of MovableObject and Renderable for single-part custom objects.
Usage
Enums describing buffer usage; not mutually exclusive.
float Real
Software floating point type.
Rectangle2D(bool includeTextureCoordinates=false, HardwareBuffer::Usage vBufUsage=HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY)
Standard 3-dimensional vector.
Real getBoundingRadius(void) const
Retrieves the radius of the origin-centered bounding sphere for this object.
Real getSquaredViewDepth(const Camera *cam) const
Returns the camera-relative squared depth of this renderable.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.