|
| CapsuleShape () |
| Create a capsule shape centered at the origin with a radius and height of 1. More...
|
|
| CapsuleShape (const Vector3 &newEndpoint1, const Vector3 &newEndpoint2, Real newRadius) |
| Create a capsule shape with the specified endpoints and radius. More...
|
|
| CapsuleShape (const Vector3 &newEndpoint1, const Vector3 &newEndpoint2, Real newRadius1, Real newRadius2) |
| Create a capsule shape with the specified endpoints and radii. More...
|
|
const Vector3 & | getEndpoint1 () const |
| Return a const reference to the center of this capsule shape's first endcap in local coordinates. More...
|
|
void | setEndpoint1 (const Vector3 &newEndpoint1) |
| Set the center of this capsule shape's first endcap in local coordinates. More...
|
|
const Vector3 & | getEndpoint2 () const |
| Return a const reference to the center of this capsule shape's second endcap in local coordinates. More...
|
|
void | setEndpoint2 (const Vector3 &newEndpoint2) |
| Set the center of this capsule shape's second endcap in local coordinates. More...
|
|
const Vector3 & | getAxis () const |
| Return a normalized axis vector for this capsule, directed from endpoint 1 to endpoint 2. More...
|
|
void | setAxis (const Vector3 &newAxis) |
| Set a normalized axis vector for this capsule, directed from endpoint 1 to endpoint 2. More...
|
|
Real | getHeight () const |
| Get the distance between the endpoints of this capsule shape in local coordinates. More...
|
|
void | setHeight (Real newHeight) |
| Set the distance between the endpoints of this capsule shape in local coordinates. More...
|
|
Real | getRadius1 () const |
| Get the first endcap radius of this capsule shape in local coordinates. More...
|
|
void | setRadius1 (Real newRadius1) |
| Set the first endcap radius of this capsule shape in local coordinates. More...
|
|
Real | getRadius2 () const |
| Get the second endcap radius of this capsule shape in local coordinates. More...
|
|
void | setRadius2 (Real newRadius2) |
| Set the second endcap radius of this capsule shape in local coordinates. More...
|
|
void | setRadius (Real newRadius) |
| Set the radii of both endcaps of this capsule shape in local coordinates. More...
|
|
Material * | getMaterial () const |
| Return a pointer to the material of this capsule shape. More...
|
|
void | setMaterial (Material *newMaterial) |
| Set a pointer to the material of this capsule shape. More...
|
|
ConstantSet * | getConstants () const |
| Return an object that describes a set of shader constants and their corresponding semantic usages for this shape. More...
|
|
void | setConstants (ConstantSet *newConstants) |
| Set an object that describes a set of shader constants and their corresponding semantic usages for this shape. More...
|
|
TextureSet * | getTextures () const |
| Return an object that describes a set of textures and their corresponding semantic usages for this shape. More...
|
|
void | setTextures (TextureSet *newTextures) |
| Set an object that describes a set of textures and their corresponding semantic usages for this shape. More...
|
|
virtual void | updateBoundingBox () |
| Update the capsule's axis-aligned bounding box. More...
|
|
virtual void | intersectRay (GraphicsRay &ray) const |
| Trace a ray against this shape and compute the closest intersection. More...
|
|
virtual void | testRay (GraphicsRay &ray) const |
| Trace a ray against this shape and determine if any intersection exist along the ray. More...
|
|
| SubdivisionShape (const SubdivisionShape &other) |
| Create a copy of another subdivision shape. More...
|
|
| ~SubdivisionShape () |
| Destroy a subdivision shape, releasing all internal resources. More...
|
|
SubdivisionShape & | operator= (const SubdivisionShape &other) |
| Assign the state of another subdivision shape to this one. More...
|
|
Real | getLODBias () const |
| Get a value that multiplicatively biases the size of a pixel radius query. More...
|
|
void | setLODBias (Real newLODBias) |
| Set a value that multiplicatively biases the size of a pixel radius query. More...
|
|
virtual void | setContext (devices::GraphicsContext *newContext) |
| Change the graphics context that is used to create this subdivision shape. More...
|
|
virtual void | upload (UploadRequest &request) |
| Upload this subdivision shape's current CPU representation to the GPU device. More...
|
|
virtual void | download (DownloadRequest &request) |
| Download the subdivision shape's GPU representation to CPU memory. More...
|
|
virtual void | getRenderables (const RenderRequest &request, const Transform3 &worldTransform, RenderQueue &outputQueue) const |
| Process the renderable and add all child renderable objects to the output render queue. More...
|
|
ShapeTypeID | getShapeTypeID () const |
| Return an integer identifying the sub type of this shape. More...
|
|
const ShapeType & | getShapeType () const |
| Return a reference to an object representing the type of this Shape. More...
|
|
Sphere3 | getBoundingSphere () const |
| Return a bounding sphere for this transformable in its parent coordinate space. More...
|
|
const AABB3 & | getBoundingBox () const |
| Return an axis-aligned bounding box that encompases this entire transformable in its parent coordinate space. More...
|
|
| Renderable () |
| Create a new renderable object with the default renderable flags. More...
|
|
| Renderable (const RenderableFlags &newFlags) |
| Create a new renderable object with the specified renderable flags. More...
|
|
RenderableFlags & | getFlags () |
| Return a reference to an object that contains boolean parameters of the renderable. More...
|
|
const RenderableFlags & | getFlags () const |
| Return an object that contains boolean parameters of the renderable. More...
|
|
void | setFlags (const RenderableFlags &newFlags) |
| Set an object that contains boolean parameters of the renderable. More...
|
|
Bool | flagIsSet (RenderableFlags::Flag flag) const |
| Return whether or not the specified boolan flag is set for this renderable. More...
|
|
Bool | flagsAreSet (const RenderableFlags &otherFlags) const |
| Return whether or not all of the specified boolan flags are set for this renderable. More...
|
|
void | setFlag (RenderableFlags::Flag flag, Bool newIsSet=true) |
| Set whether or not the specified boolan flag is set for this renderable. More...
|
|
Bool | getIsVisible () const |
| Get whether or not the renderable and its children are visible in the scene. More...
|
|
void | setIsVisible (Bool newIsVisible) |
| Set whether or not the renderable and its children are visible in the scene. More...
|
|
Bool | getShadowsEnabled () const |
| Return whether or not this renderable can cast shadows. More...
|
|
void | setShadowsEnabled (Bool newCanCastShadows) |
| Set whether or not this renderable can cast shadows. More...
|
|
virtual | ~GraphicsContextObject () |
| Destory this graphics context object. More...
|
|
GraphicsContext * | getContext () const |
| Return a pointer to the graphics context this context object is using to do rendering. More...
|
|
void | clearContext () |
| Clear the previous context from this object. More...
|
|
void | upload () |
| Upload this resource's CPU representation to the GPU device. More...
|
|
void | download () |
| Upload this resource's CPU representation to the GPU device. More...
|
|
virtual Bool | isUploaded () const |
| Return whether or not this graphics resource has been successfully created and uploaded to the device. More...
|
|
virtual Bool | isDownloaded () const |
| Return whether or not this graphics resource has a copy of its data stored in CPU-side memory. More...
|
|
virtual Bool | isValid () const |
| Return whether or not the state of this graphics resource is valid (either on CPU or GPU) and able to be used for rendering. More...
|
|
A class that provides a simple means to draw a 3D capsule shape.
A capsule can be defined as two spheres that can have different radii, combined with a cylinder that is tangent to the two spheres, creating a convex shape.
This class handles all vertex and index buffer generation automatically, simplifying the visualization of capsules, such as for collision geometry. Internally, this class automatically chooses the proper geometric level of detail for the capsule representation in order to acheive nearly pixel-perfect accuracy when rendering from any perspective.