mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
build on gcc 4.0
This commit is contained in:
parent
b4935bdcdf
commit
29f35eb5bd
@ -32,6 +32,15 @@
|
|||||||
|
|
||||||
TypeHandle MovingPartMatrix::_type_handle;
|
TypeHandle MovingPartMatrix::_type_handle;
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: MovingPartMatrix::Destructor
|
||||||
|
// Access: Public, Virtual
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
MovingPartMatrix::
|
||||||
|
~MovingPartMatrix() {
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: MovingPartMatrix::get_blend_value
|
// Function: MovingPartMatrix::get_blend_value
|
||||||
// Access: Public
|
// Access: Public
|
||||||
|
@ -40,6 +40,7 @@ public:
|
|||||||
INLINE MovingPartMatrix(PartGroup *parent, const string &name,
|
INLINE MovingPartMatrix(PartGroup *parent, const string &name,
|
||||||
const LMatrix4f &initial_value =
|
const LMatrix4f &initial_value =
|
||||||
LMatrix4f::ident_mat());
|
LMatrix4f::ident_mat());
|
||||||
|
virtual ~MovingPartMatrix();
|
||||||
|
|
||||||
virtual void get_blend_value(const PartBundle *root);
|
virtual void get_blend_value(const PartBundle *root);
|
||||||
|
|
||||||
|
@ -30,6 +30,15 @@
|
|||||||
|
|
||||||
TypeHandle MovingPartScalar::_type_handle;
|
TypeHandle MovingPartScalar::_type_handle;
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: MovingPartScalar::Destructor
|
||||||
|
// Access: Public, Virtual
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
MovingPartScalar::
|
||||||
|
~MovingPartScalar() {
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: MovingPartScalar::get_blend_value
|
// Function: MovingPartScalar::get_blend_value
|
||||||
// Access: Public
|
// Access: Public
|
||||||
|
@ -39,6 +39,7 @@ protected:
|
|||||||
public:
|
public:
|
||||||
INLINE MovingPartScalar(PartGroup *parent, const string &name,
|
INLINE MovingPartScalar(PartGroup *parent, const string &name,
|
||||||
const float &initial_value = 0);
|
const float &initial_value = 0);
|
||||||
|
virtual ~MovingPartScalar();
|
||||||
|
|
||||||
virtual void get_blend_value(const PartBundle *root);
|
virtual void get_blend_value(const PartBundle *root);
|
||||||
|
|
||||||
|
@ -486,7 +486,7 @@ test_intersection_from_sphere(const CollisionEntry &entry) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
LPoint2f p = to_2d(from_center - dist * get_normal());
|
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();
|
const ClipPlaneAttrib *cpa = entry.get_into_clip_planes();
|
||||||
if (cpa != (ClipPlaneAttrib *)NULL) {
|
if (cpa != (ClipPlaneAttrib *)NULL) {
|
||||||
|
@ -213,6 +213,38 @@ operator << (ostream &out, const EventParameter ¶m) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// 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
|
// Function: EventStoreValue::set_value
|
||||||
// Access: Public
|
// Access: Public
|
||||||
|
@ -113,10 +113,10 @@ private:
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class EventStoreValue : public EventStoreValueBase {
|
class EventStoreValue : public EventStoreValueBase {
|
||||||
private:
|
private:
|
||||||
// This constructor is only for make_from_bam().
|
INLINE EventStoreValue();
|
||||||
EventStoreValue() { }
|
|
||||||
public:
|
public:
|
||||||
EventStoreValue(const Type &value) : _value(value) { }
|
INLINE EventStoreValue(const Type &value);
|
||||||
|
virtual ~EventStoreValue();
|
||||||
|
|
||||||
INLINE void set_value(const Type &value);
|
INLINE void set_value(const Type &value);
|
||||||
INLINE const Type &get_value() const;
|
INLINE const Type &get_value() const;
|
||||||
|
@ -196,6 +196,7 @@ intersects_line(FLOATTYPE &t,
|
|||||||
const FLOATNAME(LVector3) &delta) const {
|
const FLOATNAME(LVector3) &delta) const {
|
||||||
FLOATTYPE denom = ::dot(get_normal(), delta);
|
FLOATTYPE denom = ::dot(get_normal(), delta);
|
||||||
if (IS_NEARLY_ZERO(denom)) {
|
if (IS_NEARLY_ZERO(denom)) {
|
||||||
|
t = 0.0f;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,6 +22,15 @@
|
|||||||
|
|
||||||
TypeHandle NurbsCurveInterface::_type_handle;
|
TypeHandle NurbsCurveInterface::_type_handle;
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: NurbsCurveInterface::Destructor
|
||||||
|
// Access: Published, Virtual
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
NurbsCurveInterface::
|
||||||
|
~NurbsCurveInterface() {
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: NurbsCurveInterface::set_cv_weight
|
// Function: NurbsCurveInterface::set_cv_weight
|
||||||
// Access: Published
|
// Access: Published
|
||||||
|
@ -37,6 +37,7 @@ class ParametricCurve;
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
class EXPCL_PANDA NurbsCurveInterface {
|
class EXPCL_PANDA NurbsCurveInterface {
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
|
virtual ~NurbsCurveInterface();
|
||||||
virtual void set_order(int order)=0;
|
virtual void set_order(int order)=0;
|
||||||
virtual int get_order() const=0;
|
virtual int get_order() const=0;
|
||||||
|
|
||||||
|
@ -372,8 +372,8 @@ PandaNode::
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
PandaNode::
|
PandaNode::
|
||||||
PandaNode(const PandaNode ©) :
|
PandaNode(const PandaNode ©) :
|
||||||
TypedWritable(copy),
|
|
||||||
ReferenceCount(copy),
|
ReferenceCount(copy),
|
||||||
|
TypedWritable(copy),
|
||||||
Namable(copy)
|
Namable(copy)
|
||||||
{
|
{
|
||||||
// Copying a node does not copy its children.
|
// Copying a node does not copy its children.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user