*** empty log message ***
This commit is contained in:
parent
1ce0e287e0
commit
ce2a4852d6
|
|
@ -17,8 +17,10 @@
|
|||
// Description : An orthographic-type projection, with a frustum.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
class EXPCL_PANDA OrthoProjection : public Projection {
|
||||
public:
|
||||
PUBLISHED:
|
||||
INLINE OrthoProjection(const Frustumf &frustum);
|
||||
|
||||
public:
|
||||
virtual Projection *make_copy() const;
|
||||
virtual LMatrix4f get_projection_mat(CoordinateSystem cs = CS_default) const;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,8 +17,10 @@
|
|||
// Description : A perspective-type projection, with a frustum.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
class EXPCL_PANDA PerspectiveProjection : public Projection {
|
||||
public:
|
||||
PUBLISHED:
|
||||
INLINE PerspectiveProjection(const Frustumf &frustum);
|
||||
|
||||
public:
|
||||
virtual Projection *make_copy() const;
|
||||
virtual LMatrix4f get_projection_mat(CoordinateSystem cs = CS_default) const;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,9 +21,11 @@ class BoundingVolume;
|
|||
// perspective and orthographic projections.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
class EXPCL_PANDA Projection : public TypedReferenceCount {
|
||||
PUBLISHED:
|
||||
virtual Projection *make_copy() const=0;
|
||||
|
||||
public:
|
||||
virtual LMatrix4f get_projection_mat(CoordinateSystem cs = CS_default) const=0;
|
||||
virtual Projection *make_copy() const=0;
|
||||
virtual Geom* make_geometry(const Colorf &color = Colorf(0.0, 1.0, 0.0, 1.0),
|
||||
CoordinateSystem cs = CS_default) const;
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
config_mathutil.h \
|
||||
fftCompressor.cxx fftCompressor.h \
|
||||
finiteBoundingVolume.cxx finiteBoundingVolume.h \
|
||||
frustum.I frustum.h \
|
||||
geometricBoundingVolume.I geometricBoundingVolume.cxx \
|
||||
geometricBoundingVolume.h look_at.I look_at.cxx look_at.h \
|
||||
omniBoundingVolume.I omniBoundingVolume.cxx omniBoundingVolume.h \
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
////////////////////////////////////////////////////////////////////
|
||||
// Includes
|
||||
////////////////////////////////////////////////////////////////////
|
||||
#include "frustum.h"
|
||||
#include "mathutil.h"
|
||||
#include "config_mathutil.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
forcetype Frustum<float>
|
||||
forcetype Frustum<double>
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
////////////////////////////////////////////////////////////////////
|
||||
template<class P_numtype>
|
||||
class EXPCL_PANDA Frustum {
|
||||
public:
|
||||
PUBLISHED:
|
||||
Frustum();
|
||||
|
||||
void make_ortho_2D(void);
|
||||
|
|
@ -44,7 +44,8 @@ public:
|
|||
void get_perspective_params(P_numtype &xfov, P_numtype &yfov,
|
||||
P_numtype &aspect, P_numtype &fnear,
|
||||
P_numtype &ffar) const;
|
||||
|
||||
|
||||
public:
|
||||
LMatrix4<P_numtype>
|
||||
get_perspective_projection_mat(CoordinateSystem cs = CS_default) const;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue