*** empty log message ***

This commit is contained in:
David Rose 2001-01-23 05:19:26 +00:00
parent 1ce0e287e0
commit ce2a4852d6
7 changed files with 15 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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 \

View File

@ -6,7 +6,6 @@
////////////////////////////////////////////////////////////////////
// Includes
////////////////////////////////////////////////////////////////////
#include "frustum.h"
#include "mathutil.h"
#include "config_mathutil.h"

View File

@ -0,0 +1,2 @@
forcetype Frustum<float>
forcetype Frustum<double>

View File

@ -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;