Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/builder/builderTypes.h

Go to the documentation of this file.
00001 // Filename: builderTypes.h
00002 // Created by:  drose (11Sep97)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 #ifndef BUILDERTYPES_H
00019 #define BUILDERTYPES_H
00020 
00021 #include <pandabase.h>
00022 
00023 #include <luse.h>
00024 #include <pta_TexCoordf.h>
00025 #include <pta_Vertexf.h>
00026 #include <pta_Normalf.h>
00027 #include <pta_Colorf.h>
00028 
00029 typedef TexCoordf BuilderTC;
00030 typedef Vertexf BuilderV;
00031 typedef Normalf BuilderN;
00032 typedef Colorf BuilderC;
00033 
00034 typedef PTA_TexCoordf PTA_BuilderTC;
00035 typedef PTA_Vertexf PTA_BuilderV;
00036 typedef PTA_Normalf PTA_BuilderN;
00037 typedef PTA_Colorf PTA_BuilderC;
00038 
00039 enum BuilderAttribFlags {
00040   BAF_coord                  = 0x00001,
00041   BAF_normal                 = 0x00002,
00042   BAF_texcoord               = 0x00004,
00043   BAF_color                  = 0x00008,
00044   BAF_pixel_size             = 0x00010,
00045 
00046   BAF_overall_updated        = 0x00100,
00047   BAF_overall_normal         = 0x00200,
00048   BAF_overall_color          = 0x00400,
00049   BAF_overall_pixel_size     = 0x00800,
00050 
00051   BAF_vertex_normal          = 0x01000,
00052   BAF_vertex_texcoord        = 0x02000,
00053   BAF_vertex_color           = 0x04000,
00054   BAF_vertex_pixel_size      = 0x08000,
00055 
00056   BAF_component_normal       = 0x10000,
00057   BAF_component_color        = 0x20000,
00058   BAF_component_pixel_size   = 0x04000,
00059 };
00060 
00061 ostream &operator << (ostream &out, BuilderAttribFlags baf);
00062 
00063 enum BuilderPrimType {
00064   BPT_poly,
00065   BPT_point,
00066   BPT_line,
00067 
00068   // The following types are generated internally by the builder and
00069   // mesher.  Normally they will not be seen by the user.
00070   BPT_tri,
00071   BPT_tristrip,
00072   BPT_trifan,
00073   BPT_quad,
00074   BPT_quadstrip,
00075 };
00076 
00077 ostream &operator << (ostream &out, BuilderPrimType bpt);
00078 
00079 #endif

Generated on Fri May 2 00:34:47 2003 for Panda by doxygen1.3