#include <CCFrustum.h>
|
| Frustum () |
| ~Frustum () |
void | setupProjectionOrthogonal (const ViewTransform &view, float width, float height, float near, float far) |
void | setupProjectionPerspective (const ViewTransform &view, float left, float right, float top, float bottom, float near, float far) |
void | setupProjectionPerspectiveFov (const ViewTransform &view, float fov, float ratio, float near, float far) |
void | setupFromMatrix (const kmMat4 &view, const kmMat4 &projection) |
IntersectResult | intersectPoint (const kmVec3 &point) const |
IntersectResult | intersectAABB (const AABB &aabb) const |
IntersectResult | intersectSphere (const kmVec3 ¢er, float radius) const |
Enumerator |
---|
FRUSTUM_NEAR |
|
FRUSTUM_FAR |
|
FRUSTUM_BOTTOM |
|
FRUSTUM_TOP |
|
FRUSTUM_LEFT |
|
FRUSTUM_RIGHT |
|
FRUSTUM_NUMBER |
|
Enumerator |
---|
OUTSIDE |
|
INTERSECT |
|
INSIDE |
|
IntersectResult intersectSphere |
( |
const kmVec3 & |
center, |
|
|
float |
radius |
|
) |
| const |
void setupFromMatrix |
( |
const kmMat4 & |
view, |
|
|
const kmMat4 & |
projection |
|
) |
| |
void setupProjectionOrthogonal |
( |
const ViewTransform & |
view, |
|
|
float |
width, |
|
|
float |
height, |
|
|
float |
near, |
|
|
float |
far |
|
) |
| |
void setupProjectionPerspective |
( |
const ViewTransform & |
view, |
|
|
float |
left, |
|
|
float |
right, |
|
|
float |
top, |
|
|
float |
bottom, |
|
|
float |
near, |
|
|
float |
far |
|
) |
| |
void setupProjectionPerspectiveFov |
( |
const ViewTransform & |
view, |
|
|
float |
fov, |
|
|
float |
ratio, |
|
|
float |
near, |
|
|
float |
far |
|
) |
| |
kmPlane _frustumPlanes[FrustumPlane::FRUSTUM_NUMBER] |
|
protected |
The documentation for this class was generated from the following file:
- /Users/cocos2d/MyWork/cocos2d-x-develop/cocos/2d/renderer/CCFrustum.h