mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
build on gcc 4.0
This commit is contained in:
parent
b4935bdcdf
commit
29f35eb5bd
@ -32,6 +32,15 @@
|
||||
|
||||
TypeHandle MovingPartMatrix::_type_handle;
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: MovingPartMatrix::Destructor
|
||||
// Access: Public, Virtual
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
MovingPartMatrix::
|
||||
~MovingPartMatrix() {
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: MovingPartMatrix::get_blend_value
|
||||
// Access: Public
|
||||
|
@ -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);
|
||||
|
||||
|
@ -30,6 +30,15 @@
|
||||
|
||||
TypeHandle MovingPartScalar::_type_handle;
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: MovingPartScalar::Destructor
|
||||
// Access: Public, Virtual
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
MovingPartScalar::
|
||||
~MovingPartScalar() {
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: MovingPartScalar::get_blend_value
|
||||
// Access: Public
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
// Access: Public
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -22,6 +22,15 @@
|
||||
|
||||
TypeHandle NurbsCurveInterface::_type_handle;
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: NurbsCurveInterface::Destructor
|
||||
// Access: Published, Virtual
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
NurbsCurveInterface::
|
||||
~NurbsCurveInterface() {
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: NurbsCurveInterface::set_cv_weight
|
||||
// Access: Published
|
||||
|
@ -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;
|
||||
|
||||
|
@ -372,8 +372,8 @@ PandaNode::
|
||||
////////////////////////////////////////////////////////////////////
|
||||
PandaNode::
|
||||
PandaNode(const PandaNode ©) :
|
||||
TypedWritable(copy),
|
||||
ReferenceCount(copy),
|
||||
TypedWritable(copy),
|
||||
Namable(copy)
|
||||
{
|
||||
// Copying a node does not copy its children.
|
||||
|
Loading…
x
Reference in New Issue
Block a user