a few more win32 build issues reported by forum users

This commit is contained in:
David Rose 2011-12-20 15:05:37 +00:00
parent ba249508c4
commit 17f51995e3
9 changed files with 19 additions and 17 deletions

View File

@ -128,7 +128,7 @@ set_position(const LVecBase3f &pos) {
}
INLINE void OdeBody::
set_rotation(const LMatrix3f r) {
set_rotation(const LMatrix3f &r) {
dMatrix3 mat3 = { r(0, 0), r(0, 1), r(0, 2), 0,
r(1, 0), r(1, 1), r(1, 2), 0,
r(2, 0), r(2, 1), r(2, 2), 0 };
@ -137,7 +137,7 @@ set_rotation(const LMatrix3f r) {
}
INLINE void OdeBody::
set_quaternion(const LQuaternionf q) {
set_quaternion(const LQuaternionf &q) {
dQuaternion quat = { q[0], q[1], q[2], q[3] };
dBodySetQuaternion(_id, quat);
}

View File

@ -62,8 +62,8 @@ PUBLISHED:
INLINE void set_position(dReal x, dReal y, dReal z);
INLINE void set_position(const LVecBase3f &pos);
INLINE void set_rotation(const LMatrix3f r);
INLINE void set_quaternion(const LQuaternionf q);
INLINE void set_rotation(const LMatrix3f &r);
INLINE void set_quaternion(const LQuaternionf &q);
INLINE void set_linear_vel(dReal x, dReal y, dReal z);
INLINE void set_linear_vel(const LVecBase3f &vel);
INLINE void set_angular_vel(dReal x, dReal y, dReal z);

View File

@ -16,7 +16,7 @@
// Function : get_precomputed_linear_matrices
// Access : protected
////////////////////////////////////////////////////////////////////
INLINE const pvector< LMatrix4 > &BaseIntegrator::
INLINE const BaseIntegrator::MatrixVector &BaseIntegrator::
get_precomputed_linear_matrices() const {
return _precomputed_linear_matrices;
}
@ -25,7 +25,7 @@ get_precomputed_linear_matrices() const {
// Function : get_precomputed_angular_matrices
// Access : protected
////////////////////////////////////////////////////////////////////
INLINE const pvector< LMatrix4 > &BaseIntegrator::
INLINE const BaseIntegrator::MatrixVector &BaseIntegrator::
get_precomputed_angular_matrices() const {
return _precomputed_angular_matrices;
}

View File

@ -374,7 +374,7 @@ convert_filter_type(const FUDaeTextureFilterFunction::FilterFunction orig_type)
// Description: Converts collada blend attribs to Panda's equivalents.
////////////////////////////////////////////////////////////////////
PT(DaeMaterials::DaeBlendSettings) DaeMaterials::
convert_blend(FCDEffectStandard::TransparencyMode mode, LColor transparent, double transparency) {
convert_blend(FCDEffectStandard::TransparencyMode mode, const LColor &transparent, double transparency) {
// Create the DaeBlendSettings and fill it with some defaults.
PT(DaeBlendSettings) blend = new DaeBlendSettings();
blend->_enabled = true;

View File

@ -79,7 +79,7 @@ private:
void process_texture_bucket(const string semantic, const FCDEffectStandard* effect_common, FUDaeTextureChannel::Channel bucket, EggTexture::EnvType envtype = EggTexture::ET_unspecified, EggTexture::Format format = EggTexture::F_unspecified);
void process_extra(const string semantic, const FCDExtra* extra);
static PT(DaeBlendSettings) convert_blend(FCDEffectStandard::TransparencyMode mode, LColor transparent, double transparency);
static PT(DaeBlendSettings) convert_blend(FCDEffectStandard::TransparencyMode mode, const LColor &transparent, double transparency);
pmap<const string, PT(DaeMaterial)> _materials;

View File

@ -727,12 +727,13 @@ get_color_name(int color_index) const {
// including alpha.
////////////////////////////////////////////////////////////////////
int FltHeader::
get_closest_color(LColor color) const {
get_closest_color(const LColor &color0) const {
// Since the colortable stores the brightest colors, with
// num_color_shades scaled versions of each color implicitly
// available, we really only care about the relative brightnesses of
// the various components. Normalize the color in terms of the
// largest of these.
LColor color = color0;
double scale = 1.0;
@ -792,13 +793,14 @@ get_closest_color(LColor color) const {
// ignoring alpha.
////////////////////////////////////////////////////////////////////
int FltHeader::
get_closest_rgb(LRGBColor color) const {
get_closest_rgb(const LRGBColor &color0) const {
// Since the colortable stores the brightest colors, with
// num_color_shades scaled versions of each color implicitly
// available, we really only care about the relative brightnesses of
// the various components. Normalize the color in terms of the
// largest of these.
LRGBColor color = color0;
double scale = 1.0;
if (color[0] == 0.0 && color[1] == 0.0 && color[2] == 0.0) {

View File

@ -187,8 +187,8 @@ public:
bool has_color_name(int color_index) const;
string get_color_name(int color_index) const;
int get_closest_color(LColor color) const;
int get_closest_rgb(LRGBColor color) const;
int get_closest_color(const LColor &color) const;
int get_closest_rgb(const LRGBColor &color) const;
int get_num_color_entries() const;
int get_num_color_shades() const;

View File

@ -364,8 +364,8 @@ public:
CVertTable _cvert_tab;
int GetVert(EggVertex *vert, EggGroup *context);
int GetTVert(LTexCoordd uv);
int GetCVert(LColor col);
int GetTVert(const LTexCoordd &uv);
int GetCVert(const LColor &col);
int AddFace(int v0, int v1, int v2, int tv0, int tv1, int tv2, int cv0, int cv1, int cv2, int tex);
EggGroup *GetControlJoint(void);
};
@ -404,7 +404,7 @@ int MaxEggMesh::GetVert(EggVertex *vert, EggGroup *context)
return vtx._index;
}
int MaxEggMesh::GetTVert(LTexCoordd uv)
int MaxEggMesh::GetTVert(const LTexCoordd &uv)
{
if (_tvert_tab.count(uv))
return _tvert_tab[uv];
@ -418,7 +418,7 @@ int MaxEggMesh::GetTVert(LTexCoordd uv)
return idx;
}
int MaxEggMesh::GetCVert(LColor col)
int MaxEggMesh::GetCVert(const LColor &col)
{
if (_cvert_tab.count(col))
return _cvert_tab[col];

View File

@ -66,7 +66,7 @@ private:
class VrmlPolygon {
public:
EggPolygon _attrib;
pvector<VrmlVertex> _verts;
epvector<VrmlVertex> _verts;
};
pvector<LVertexd> _coord_values;
pvector<VrmlPolygon> _polys;