mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
pt_eggTexture etc.
This commit is contained in:
parent
6a1e335981
commit
d278d63c15
@ -372,7 +372,7 @@ convert_face(const FltFace *flt_face, FltToEggLevelState &state) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Collect the vertices for this primitive.
|
// Collect the vertices for this primitive.
|
||||||
vector< PT(EggVertex) > vertices;
|
vector< PT_EggVertex > vertices;
|
||||||
|
|
||||||
const FltVertexList *vlist = (FltVertexList *)NULL;
|
const FltVertexList *vlist = (FltVertexList *)NULL;
|
||||||
int num_children = flt_face->get_num_children();
|
int num_children = flt_face->get_num_children();
|
||||||
@ -712,9 +712,9 @@ parse_comment(const string &comment, const string &name,
|
|||||||
// The vertex is not automatically added to the vertex
|
// The vertex is not automatically added to the vertex
|
||||||
// pool.
|
// pool.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
PT(EggVertex) FltToEggConverter::
|
PT_EggVertex FltToEggConverter::
|
||||||
make_egg_vertex(const FltVertex *flt_vertex) {
|
make_egg_vertex(const FltVertex *flt_vertex) {
|
||||||
PT(EggVertex) egg_vertex = new EggVertex;
|
PT_EggVertex egg_vertex = new EggVertex;
|
||||||
egg_vertex->set_pos(flt_vertex->_pos);
|
egg_vertex->set_pos(flt_vertex->_pos);
|
||||||
|
|
||||||
if (flt_vertex->_has_normal) {
|
if (flt_vertex->_has_normal) {
|
||||||
@ -739,7 +739,7 @@ make_egg_vertex(const FltVertex *flt_vertex) {
|
|||||||
// or returns a pointer to one previously made for the
|
// or returns a pointer to one previously made for the
|
||||||
// same FltTexture.
|
// same FltTexture.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
PT(EggTexture) FltToEggConverter::
|
PT_EggTexture FltToEggConverter::
|
||||||
make_egg_texture(const FltTexture *flt_texture) {
|
make_egg_texture(const FltTexture *flt_texture) {
|
||||||
Textures::const_iterator ti;
|
Textures::const_iterator ti;
|
||||||
ti = _textures.find(flt_texture);
|
ti = _textures.find(flt_texture);
|
||||||
@ -754,7 +754,7 @@ make_egg_texture(const FltTexture *flt_texture) {
|
|||||||
convert_texture_path(flt_texture->_filename,
|
convert_texture_path(flt_texture->_filename,
|
||||||
_flt_header->get_texture_path());
|
_flt_header->get_texture_path());
|
||||||
|
|
||||||
PT(EggTexture) egg_texture = new EggTexture(tref_name, filename);
|
PT_EggTexture egg_texture = new EggTexture(tref_name, filename);
|
||||||
|
|
||||||
_textures.insert(Textures::value_type(flt_texture, egg_texture));
|
_textures.insert(Textures::value_type(flt_texture, egg_texture));
|
||||||
|
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
#include <eggVertex.h>
|
#include <eggVertex.h>
|
||||||
#include <eggVertexPool.h>
|
#include <eggVertexPool.h>
|
||||||
#include <eggTexture.h>
|
#include <eggTexture.h>
|
||||||
|
#include <pt_EggTexture.h>
|
||||||
|
#include <pt_EggVertex.h>
|
||||||
#include <pointerTo.h>
|
#include <pointerTo.h>
|
||||||
|
|
||||||
class FltRecord;
|
class FltRecord;
|
||||||
@ -68,7 +70,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
void cleanup();
|
void cleanup();
|
||||||
|
|
||||||
typedef vector< PT(EggVertex) > EggVertices;
|
typedef vector< PT_EggVertex > EggVertices;
|
||||||
|
|
||||||
void convert_record(const FltRecord *flt_record, FltToEggLevelState &state);
|
void convert_record(const FltRecord *flt_record, FltToEggLevelState &state);
|
||||||
void dispatch_record(const FltRecord *flt_record, FltToEggLevelState &state);
|
void dispatch_record(const FltRecord *flt_record, FltToEggLevelState &state);
|
||||||
@ -93,8 +95,8 @@ private:
|
|||||||
bool parse_comment(const string &comment, const string &name,
|
bool parse_comment(const string &comment, const string &name,
|
||||||
EggNode *egg_node);
|
EggNode *egg_node);
|
||||||
|
|
||||||
PT(EggVertex) make_egg_vertex(const FltVertex *flt_vertex);
|
PT_EggVertex make_egg_vertex(const FltVertex *flt_vertex);
|
||||||
PT(EggTexture) make_egg_texture(const FltTexture *flt_texture);
|
PT_EggTexture make_egg_texture(const FltTexture *flt_texture);
|
||||||
|
|
||||||
CPT(FltHeader) _flt_header;
|
CPT(FltHeader) _flt_header;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user