open_toontown_panda3d/pandatool/src/eggprogs/eggToC.h

59 lines
1.3 KiB
C++

// Filename: eggToC.h
// Created by: drose (03Aug01)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
#ifndef EGGTOC_H
#define EGGTOC_H
#include "pandatoolbase.h"
#include "eggToSomething.h"
#include "pmap.h"
class EggNode;
class EggVertexPool;
class EggBin;
////////////////////////////////////////////////////////////////////
// Class : EggToC
// Description :
////////////////////////////////////////////////////////////////////
class EggToC : public EggToSomething {
public:
EggToC();
void run();
void traverse(EggNode *node);
void write_vertex_pool(EggVertexPool *vpool);
void write_bin(EggBin *bin);
bool _vertices;
bool _uvs;
bool _vertex_normals;
bool _vertex_colors;
bool _polygons;
bool _polygon_normals;
bool _polygon_colors;
bool _triangulate_polygons;
typedef pmap<EggVertexPool *, int> VertexPools;
VertexPools _vertex_pools;
int _next_vpool_index;
int _next_bin_index;
};
#endif