more win32 build issues

This commit is contained in:
David Rose 2011-12-20 20:26:08 +00:00
parent 0053d01843
commit e9b967435e
9 changed files with 30 additions and 30 deletions

View File

@ -359,7 +359,7 @@ update_motion_trail (PN_stdfloat current_time, LMatrix4 *transform) {
total_frames = _frame_list.size ( );
if (total_frames >= 1) {
list <CMotionTrailFrame>::iterator frame_iterator;
FrameList::iterator frame_iterator;
CMotionTrailFrame motion_trail_frame;
frame_iterator = _frame_list.begin ( );
@ -419,7 +419,7 @@ update_motion_trail (PN_stdfloat current_time, LMatrix4 *transform) {
motion_trail_frame._time = current_time;
motion_trail_frame._transform = *transform;
_frame_list.push_front (motion_trail_frame);
_frame_list.push_front(motion_trail_frame);
}
// convert frames and vertices to geometry
@ -435,7 +435,7 @@ update_motion_trail (PN_stdfloat current_time, LMatrix4 *transform) {
PN_stdfloat delta_time;
CMotionTrailFrame last_motion_trail_frame;
list <CMotionTrailVertex>::iterator vertex_iterator;
VertexList::iterator vertex_iterator;
// convert vertex list to vertex array
int index = 0;
@ -494,7 +494,7 @@ update_motion_trail (PN_stdfloat current_time, LMatrix4 *transform) {
segment_index = 0;
list <CMotionTrailFrame>::iterator frame_iterator;
FrameList::iterator frame_iterator;
frame_iterator = _frame_list.begin ( );
while (segment_index < total_segments) {
int vertex_segement_index;
@ -747,7 +747,7 @@ update_motion_trail (PN_stdfloat current_time, LMatrix4 *transform) {
CMotionTrailFrame motion_trail_frame_end;
segment_index = 0;
list <CMotionTrailFrame>::iterator frame_iterator;
FrameList::iterator frame_iterator;
frame_iterator = _frame_list.begin ( );
while (segment_index < total_segments) {

View File

@ -23,25 +23,23 @@
#include "geomTriangles.h"
#include "luse.h"
#include "nurbsCurveEvaluator.h"
#include <list>
#include "plist.h"
#include "pvector.h"
class CMotionTrailVertex {
public:
LVector4 _vertex;
LVector4 _start_color;
LVector4 _end_color;
LPoint4 _vertex;
LVecBase4 _start_color;
LVecBase4 _end_color;
PN_stdfloat _v;
PT(NurbsCurveEvaluator) _nurbs_curve_evaluator;
};
class CMotionTrailFrame {
public:
UnalignedLMatrix4 _transform;
PN_stdfloat _time;
LMatrix4 _transform;
};
////////////////////////////////////////////////////////////////////
@ -126,8 +124,10 @@ public:
PN_stdfloat _last_update_time;
list <CMotionTrailVertex> _vertex_list;
list <CMotionTrailFrame> _frame_list;
typedef epvector<CMotionTrailVertex> VertexList;
VertexList _vertex_list;
typedef plist<CMotionTrailFrame> FrameList;
FrameList _frame_list;
// parameters
PN_stdfloat _color_scale;

View File

@ -94,10 +94,10 @@ get_splat_layer_tiling(int n) const {
// is used just to match the color of the grass to its
// terrain.
////////////////////////////////////////////////////////////////////
INLINE const LVecBase4 &STTerrain::
INLINE LColor STTerrain::
get_splat_layer_color(int n) const {
nassertr(n >= 0 && n < (int)_splat_layers.size(), _splat_layers[0]._color);
return _splat_layers[n]._color;
return LVecBase4(_splat_layers[n]._color);
}
////////////////////////////////////////////////////////////////////

View File

@ -54,7 +54,7 @@ PUBLISHED:
INLINE int get_num_splat_layers() const;
INLINE const Filename &get_splat_layer(int n) const;
INLINE PN_stdfloat get_splat_layer_tiling(int n) const;
INLINE const LVecBase4 &get_splat_layer_color(int n) const;
INLINE LColor get_splat_layer_color(int n) const;
INLINE const GeomVertexFormat *get_vertex_format();
@ -93,7 +93,7 @@ protected:
public:
Filename _filename;
PN_stdfloat _tiling;
LVecBase4 _color;
UnalignedLVecBase4 _color;
};
typedef pvector<SplatLayer> SplatLayers;

View File

@ -952,14 +952,14 @@ public:
TVertTable _tvert_tab;
CVertTable _cvert_tab;
int GetTVert(LTexCoordd uv);
int GetCVert(LColor col);
int GetTVert(const LTexCoordd &uv);
int GetCVert(const LColor &col);
int AddFace(unsigned numVertices, MIntArray mvertIndices, MIntArray mtvertIndices, MayaEggTex *tex);
void ConnectTextures(void);
};
int MayaEggMesh::GetTVert(LTexCoordd uv)
int MayaEggMesh::GetTVert(const LTexCoordd &uv)
{
if (_tvert_tab.count(uv)) {
if (mayaloader_cat.is_spam()) {
@ -977,7 +977,7 @@ int MayaEggMesh::GetTVert(LTexCoordd uv)
return idx;
}
int MayaEggMesh::GetCVert(LColor col)
int MayaEggMesh::GetCVert(const LColor &col)
{
// if (_cvert_tab.count(col))
// return _cvert_tab[col];

View File

@ -114,7 +114,7 @@ get_polys() {
////////////////////////////////////////////////////////////////////
void IndexedFaceSet::
get_vrml_colors(const VrmlNode *color_node, double transparency,
pvector<LColor> &color_list) {
pvector<UnalignedLVecBase4> &color_list) {
const MFArray *color = color_node->get_value("color")._mf;
MFArray::const_iterator ci;
for (ci = color->begin(); ci != color->end(); ++ci) {
@ -171,7 +171,7 @@ get_colors() {
const VrmlNode *color = _geometry->get_value("color")._sfnode._p;
if (color != NULL) {
// Vertex or face colors.
pvector<LColor> color_list;
pvector<UnalignedLVecBase4> color_list;
get_vrml_colors(color, _appearance._transparency, color_list);
bool colorPerVertex = _geometry->get_value("colorPerVertex")._sfbool;

View File

@ -42,7 +42,7 @@ private:
void get_coord_values();
void get_polys();
void get_vrml_colors(const VrmlNode *color_node, double transparency,
pvector<LColor> &color_list);
pvector<UnalignedLVecBase4> &color_list);
void get_vrml_normals(const VrmlNode *normal_node,
pvector<LNormald> &normal_list);
void get_vrml_uvs(const VrmlNode *texCoord_node,
@ -69,7 +69,7 @@ private:
epvector<VrmlVertex> _verts;
};
pvector<LVertexd> _coord_values;
pvector<VrmlPolygon> _polys;
epvector<VrmlPolygon> _polys;
pvector<LTexCoordd> _per_vertex_uvs;
pvector<LNormald> _per_vertex_normals;

View File

@ -60,7 +60,7 @@ public:
LMatrix4d _mat;
};
typedef pvector<FrameEntry> FrameEntries;
typedef epvector<FrameEntry> FrameEntries;
class FrameData {
public:

View File

@ -100,11 +100,11 @@ private:
class SkinWeightsData {
public:
LMatrix4d _matrix_offset;
string _joint_name;
WeightMap _weight_map;
LMatrix4d _matrix_offset;
};
typedef pvector<SkinWeightsData> SkinWeights;
typedef epvector<SkinWeightsData> SkinWeights;
SkinWeights _skin_weights;
typedef pmap<XFileVertex *, int, IndirectCompareTo<XFileVertex> > UniqueVertices;