historical/toontown-classic.git/panda/include/eggToC.h

57 lines
1,023 B
C
Raw Normal View History

2024-01-16 11:20:27 -06:00
/**
* 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."
*
* @file eggToC.h
* @author drose
* @date 2001-08-03
*/
#ifndef EGGTOC_H
#define EGGTOC_H
#include "pandatoolbase.h"
#include "eggToSomething.h"
#include "pmap.h"
class EggNode;
class EggVertexPool;
class EggBin;
/**
*
*/
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