295 if (set_zmin !=
NULL) {
298 if (set_zmax !=
NULL) {
318 bool is_visible =
true;
319 for (
int i = 1; i < 5; i++) {
virtual ~CameraClass(void)
ProjectionType Get_Projection_Type(void)
const ViewportClass & Get_Viewport(void) const
virtual void Set_Position(const Vector3 &v)
const Matrix3D & Get_View_Matrix(void)
float Compute_Projected_Sphere_Radius(float dist, float radius)
void Set_Depth_Range(float zstart=0.0f, float zend=1.0f)
void Device_To_World_Space(const Vector2 &device_coord, Vector3 *world_coord)
void Set_Aspect_Ratio(float width_to_height)
virtual void Get_Obj_Space_Bounding_Box(AABoxClass &box) const
void Set_Clip_Planes(float znear, float zfar)
void Get_View_Plane(Vector2 &set_min, Vector2 &set_max) const
ProjectionResType Project(Vector3 &dest, const Vector3 &ws_point) const
Matrix4x4 ProjectionTransform
void Rotate_To_View_Space(Vector3 &dest, const Vector3 &ws_vector) const
virtual RenderObjClass * Clone(void) const
bool Cull_Box(const AABoxClass &box) const
CameraClass & operator=(const CameraClass &)
void Set_Viewport(const Vector2 &min, const Vector2 &max)
const OBBoxClass & Get_Near_Clip_Bounding_Box(void) const
void Get_Zbuffer_Range(float &znear, float &zfar) const
virtual void Get_Obj_Space_Bounding_Sphere(SphereClass &sphere) const
const PlaneClass * Get_Frustum_Planes(void) const
void Set_View_Plane(const Vector2 &min, const Vector2 &max)
void Set_Projection_Type(ProjectionType ptype)
void Un_Project(Vector3 &dest, const Vector2 &view_point) const
bool Cull_Sphere(const SphereClass &sphere) const
float Get_Horizontal_FOV(void) const
void Get_Clip_Planes(float &znear, float &zfar) const
void Get_Depth_Range(float *set_zstart, float *set_zend) const
const FrustumClass & Get_View_Space_Frustum(void) const
virtual void Set_Transform(const Matrix3D &m)
void Set_Zbuffer_Range(float znear, float zfar)
bool Cull_Sphere_On_Frustum_Sides(const SphereClass &sphere) const
Matrix3D CameraInvTransform
static void Convert_Old(Vector3 &pos)
const FrustumClass & Get_Frustum(void) const
void Transform_To_View_Space(Vector3 &dest, const Vector3 &ws_point) const
void Device_To_View_Space(const Vector2 &device_coord, Vector3 *view_coord)
const Matrix4x4 & Get_Projection_Matrix(void)
const Vector3 * Get_View_Space_Frustum_Corners(void) const
void Get_D3D_Projection_Matrix(Matrix4x4 *set_tm)
float Get_Depth(void) const
ProjectionType Projection
FrustumClass ViewSpaceFrustum
void Update_Frustum(void) const
virtual int Class_ID(void) const
const Vector3 * Get_Frustum_Corners(void) const
const PlaneClass * Get_View_Space_Frustum_Planes(void) const
float Get_Aspect_Ratio(void) const
ProjectionResType Project_Camera_Space_Point(Vector3 &dest, const Vector3 &cam_point) const
float Get_Vertical_FOV(void) const
virtual void Render(RenderInfoClass &rinfo)
static OverlapType Overlap_Test(const AAPlaneClass &plane, const Vector3 &point)
ViewportClass(const ViewportClass &vp)
ViewportClass(const Vector2 &min, const Vector2 &max)