/** * 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 cLwoPoints.h * @author drose * @date 2001-04-25 */ #ifndef CLWOPOINTS_H #define CLWOPOINTS_H #include "pandatoolbase.h" #include "lwoPoints.h" #include "eggVertexPool.h" #include "pointerTo.h" #include "pmap.h" class LwoToEggConverter; class LwoVertexMap; class CLwoLayer; /** * This class is a wrapper around LwoPoints and stores additional information * useful during the conversion-to-egg process. */ class CLwoPoints { public: INLINE CLwoPoints(LwoToEggConverter *converter, const LwoPoints *points, CLwoLayer *layer); void add_vmap(const LwoVertexMap *lwo_vmap); bool get_uv(const std::string &uv_name, int n, LPoint2 &uv) const; void make_egg(); void connect_egg(); LwoToEggConverter *_converter; CPT(LwoPoints) _points; CLwoLayer *_layer; PT(EggVertexPool) _egg_vpool; // A number of vertex maps of different types may be associated, but we only // care about some of the types here. typedef pmap VMap; VMap _txuv; VMap _pick; }; #include "cLwoPoints.I" #endif