Public Member Functions

CC3NodeBoundingArea Class Reference

A bounding volume that defines a 2D bounding area for a node, and checks that bounding area against the viewport, instead of the camera frustum. More...

#import <CC3BoundingVolumes.h>

Inheritance diagram for CC3NodeBoundingArea:
CC3NodeBoundingVolume CC3BillboardBoundingBoxArea

List of all members.

Public Member Functions

(BOOL) - doesIntersectViewport:

Detailed Description

This is useful for, and only applicable to, nodes, such as CC3Billboards, that draw 2D content,

By default, instances of CC3NodeBoundingArea return NO in the doesIntersectFrustum: method, so nodes with this bounding volume will not be drawn when nodes with local content are drawn. Instead, CC3NodeBoundingArea adds the doesIntersectViewport: method, which is invokded to test a 2D node boundary against the viewport.


Member Function Documentation

- (BOOL) doesIntersectViewport: (CC3Viewport aViewport

Returns whether this bounding volume intersects the specfied viewport.

This default implementation always returns YES. Subclasses will override appropriately.

This method is invoked automatically by nodes with 2D content, whenever it needs to determine whether or not it should be drawn.


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