cocos2d-x  3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Frustum Class Reference

#include <CCFrustum.h>

Public Member Functions

 Frustum ()
 Constructor & Destructor. More...
 
 ~Frustum ()
 ~Frustum ()
 ~Frustum ()
bool initFrustum (const Camera *camera)
 init frustum from camera. More...
 
var initFrustum ( var camera)
 init frustum from camera. More...
 
local initFrustum ( local camera)
 init frustum from camera. More...
 
bool isOutOfFrustum (const AABB &aabb) const
 is aabb out of frustum. More...
 
var isOutOfFrustum ( var aabb)
 is aabb out of frustum. More...
 
local isOutOfFrustum ( local aabb)
 is aabb out of frustum. More...
 
bool isOutOfFrustum (const OBB &obb) const
 is obb out of frustum More...
 
var isOutOfFrustum ( var obb)
 is obb out of frustum More...
 
local isOutOfFrustum ( local obb)
 is obb out of frustum More...
 
void setClipZ (bool clipZ)
 get & set z clip. More...
 
var setClipZ ( var clipZ)
 get & set z clip. More...
 
local setClipZ ( local clipZ)
 get & set z clip. More...
 
bool isClipZ ()
var isClipZ ()
local isClipZ ()

Protected Member Functions

void createPlane (const Camera *camera)
 create clip plane More...
 
var createPlane ( var camera)
 create clip plane More...
 
local createPlane ( local camera)
 create clip plane More...
 

Protected Attributes

Plane _plane [6]
local _plane ()
bool _clipZ
var _clipZ
local _clipZ
bool _initialized
var _initialized
local _initialized

Friends

class Camera

Constructor & Destructor Documentation

Frustum ( )
inline

Constructor & Destructor.

var Frustum ( )
inline

Constructor & Destructor.

local Frustum ( )
inline

Constructor & Destructor.

~Frustum ( )
inline
var ~Frustum ( )
inline
local ~Frustum ( )
inline

Member Function Documentation

void createPlane ( const Camera camera)
protected

create clip plane

var createPlane ( var  camera)
protected

create clip plane

local createPlane ( local  camera)
protected

create clip plane

bool initFrustum ( const Camera camera)

init frustum from camera.

var initFrustum ( var  camera)

init frustum from camera.

local initFrustum ( local  camera)

init frustum from camera.

bool isClipZ ( )
inline
var isClipZ ( )
inline
local isClipZ ( )
inline
bool isOutOfFrustum ( const AABB aabb) const

is aabb out of frustum.

var isOutOfFrustum ( var  aabb)

is aabb out of frustum.

local isOutOfFrustum ( local  aabb)

is aabb out of frustum.

bool isOutOfFrustum ( const OBB obb) const

is obb out of frustum

var isOutOfFrustum ( var  obb)

is obb out of frustum

local isOutOfFrustum ( local  obb)

is obb out of frustum

void setClipZ ( bool  clipZ)
inline

get & set z clip.

if bclipZ == true use near and far plane

var setClipZ ( var  clipZ)
inline

get & set z clip.

if bclipZ == true use near and far plane

local setClipZ ( local  clipZ)
inline

get & set z clip.

if bclipZ == true use near and far plane

Friends And Related Function Documentation

friend class Camera
friend
var Camera
friend
local Camera
friend

Member Data Documentation

bool _clipZ
protected
var _clipZ
protected
local _clipZ
protected
bool _initialized
protected
var _initialized
protected
local _initialized
protected
Plane _plane[6]
protected
Plane _plane[6]
protected
Plane _plane[6]
protected

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