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