00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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
00069
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