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

panda/src/builder/builderTypes.cxx

Go to the documentation of this file.
00001 // Filename: builderTypes.cxx
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 
00019 #include "builderTypes.h"
00020 #include <notify.h>
00021 
00022 ostream &operator << (ostream &out, BuilderAttribFlags baf) {
00023   const char *space = "";
00024   if (baf & BAF_coord) {
00025     out << space << "coord";
00026     space = " ";
00027   }
00028   if (baf & BAF_normal) {
00029     out << space << "normal";
00030     space = " ";
00031   }
00032   if (baf & BAF_texcoord) {
00033     out << space << "texcoord";
00034     space = " ";
00035   }
00036   if (baf & BAF_color) {
00037     out << space << "color";
00038     space = " ";
00039   }
00040   if (baf & BAF_pixel_size) {
00041     out << space << "pixel_size";
00042     space = " ";
00043   }
00044   if (baf & BAF_overall_updated) {
00045     out << space << "overall_updated";
00046     space = " ";
00047   }
00048   if (baf & BAF_overall_normal) {
00049     out << space << "overall_normal";
00050     space = " ";
00051   }
00052   if (baf & BAF_overall_color) {
00053     out << space << "overall_color";
00054     space = " ";
00055   }
00056   if (baf & BAF_overall_pixel_size) {
00057     out << space << "overall_pixel_size";
00058     space = " ";
00059   }
00060   if (baf & BAF_vertex_normal) {
00061     out << space << "vertex_normal";
00062     space = " ";
00063   }
00064   if (baf & BAF_vertex_texcoord) {
00065     out << space << "vertex_texcoord";
00066     space = " ";
00067   }
00068   if (baf & BAF_vertex_color) {
00069     out << space << "vertex_color";
00070     space = " ";
00071   }
00072   if (baf & BAF_vertex_pixel_size) {
00073     out << space << "vertex_pixel_size";
00074     space = " ";
00075   }
00076   if (baf & BAF_component_normal) {
00077     out << space << "component_normal";
00078     space = " ";
00079   }
00080   if (baf & BAF_component_color) {
00081     out << space << "component_color";
00082     space = " ";
00083   }
00084   if (baf & BAF_component_pixel_size) {
00085     out << space << "component_pixel_size";
00086     space = " ";
00087   }
00088   return out;
00089 }
00090 
00091 
00092 ostream &operator << (ostream &out, BuilderPrimType bpt) {
00093   switch (bpt) {
00094   case BPT_poly:
00095     return out << "poly";
00096   case BPT_point:
00097     return out << "point";
00098   case BPT_line:
00099     return out << "line";
00100   case BPT_tri:
00101     return out << "tri";
00102   case BPT_tristrip:
00103     return out << "tristrip";
00104   case BPT_trifan:
00105     return out << "trifan";
00106   case BPT_quad:
00107     return out << "quad";
00108   case BPT_quadstrip:
00109     return out << "quadstrip";
00110   }
00111   nassertr(false, out);
00112   return out << "(**invalid**)";
00113 }
00114 

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