build on gcc 4.0

This commit is contained in:
David Rose 2005-05-18 16:32:45 +00:00
parent b4935bdcdf
commit 29f35eb5bd
11 changed files with 68 additions and 5 deletions

View File

@ -32,6 +32,15 @@
TypeHandle MovingPartMatrix::_type_handle;
////////////////////////////////////////////////////////////////////
// Function: MovingPartMatrix::Destructor
// Access: Public, Virtual
// Description:
////////////////////////////////////////////////////////////////////
MovingPartMatrix::
~MovingPartMatrix() {
}
////////////////////////////////////////////////////////////////////
// Function: MovingPartMatrix::get_blend_value
// Access: Public

View File

@ -40,6 +40,7 @@ public:
INLINE MovingPartMatrix(PartGroup *parent, const string &name,
const LMatrix4f &initial_value =
LMatrix4f::ident_mat());
virtual ~MovingPartMatrix();
virtual void get_blend_value(const PartBundle *root);

View File

@ -30,6 +30,15 @@
TypeHandle MovingPartScalar::_type_handle;
////////////////////////////////////////////////////////////////////
// Function: MovingPartScalar::Destructor
// Access: Public, Virtual
// Description:
////////////////////////////////////////////////////////////////////
MovingPartScalar::
~MovingPartScalar() {
}
////////////////////////////////////////////////////////////////////
// Function: MovingPartScalar::get_blend_value
// Access: Public

View File

@ -39,6 +39,7 @@ protected:
public:
INLINE MovingPartScalar(PartGroup *parent, const string &name,
const float &initial_value = 0);
virtual ~MovingPartScalar();
virtual void get_blend_value(const PartBundle *root);

View File

@ -486,7 +486,7 @@ test_intersection_from_sphere(const CollisionEntry &entry) const {
}
LPoint2f p = to_2d(from_center - dist * get_normal());
float edge_dist;
float edge_dist = 0.0f;
const ClipPlaneAttrib *cpa = entry.get_into_clip_planes();
if (cpa != (ClipPlaneAttrib *)NULL) {

View File

@ -213,6 +213,38 @@ operator << (ostream &out, const EventParameter &param) {
}
////////////////////////////////////////////////////////////////////
// Function: EventStoreValue::Default Constructor
// Access: Private
// Description: This constructor is only for make_from_bam().
////////////////////////////////////////////////////////////////////
template<class Type>
EventStoreValue<Type>::
EventStoreValue() {
}
////////////////////////////////////////////////////////////////////
// Function: EventStoreValue::Constructor
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
template<class Type>
EventStoreValue<Type>::
EventStoreValue(const Type &value) :
_value(value)
{
}
////////////////////////////////////////////////////////////////////
// Function: EventStoreValue::Destructor
// Access: Public, Virtual
// Description:
////////////////////////////////////////////////////////////////////
template<class Type>
EventStoreValue<Type>::
~EventStoreValue() {
}
////////////////////////////////////////////////////////////////////
// Function: EventStoreValue::set_value
// Access: Public

View File

@ -113,10 +113,10 @@ private:
template<class Type>
class EventStoreValue : public EventStoreValueBase {
private:
// This constructor is only for make_from_bam().
EventStoreValue() { }
INLINE EventStoreValue();
public:
EventStoreValue(const Type &value) : _value(value) { }
INLINE EventStoreValue(const Type &value);
virtual ~EventStoreValue();
INLINE void set_value(const Type &value);
INLINE const Type &get_value() const;

View File

@ -196,6 +196,7 @@ intersects_line(FLOATTYPE &t,
const FLOATNAME(LVector3) &delta) const {
FLOATTYPE denom = ::dot(get_normal(), delta);
if (IS_NEARLY_ZERO(denom)) {
t = 0.0f;
return false;
}

View File

@ -22,6 +22,15 @@
TypeHandle NurbsCurveInterface::_type_handle;
////////////////////////////////////////////////////////////////////
// Function: NurbsCurveInterface::Destructor
// Access: Published, Virtual
// Description:
////////////////////////////////////////////////////////////////////
NurbsCurveInterface::
~NurbsCurveInterface() {
}
////////////////////////////////////////////////////////////////////
// Function: NurbsCurveInterface::set_cv_weight
// Access: Published

View File

@ -37,6 +37,7 @@ class ParametricCurve;
////////////////////////////////////////////////////////////////////
class EXPCL_PANDA NurbsCurveInterface {
PUBLISHED:
virtual ~NurbsCurveInterface();
virtual void set_order(int order)=0;
virtual int get_order() const=0;

View File

@ -372,8 +372,8 @@ PandaNode::
////////////////////////////////////////////////////////////////////
PandaNode::
PandaNode(const PandaNode &copy) :
TypedWritable(copy),
ReferenceCount(copy),
TypedWritable(copy),
Namable(copy)
{
// Copying a node does not copy its children.