home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 5164 / miletos.7z / mesh.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2011-04-02  |  675 b   |  49 lines

  1. #define __MILETOS_MESH_CPP__
  2.  
  3. //
  4. // Libmiletos
  5. //
  6. // Copyright (C) Lauris Kaplinski 2008
  7. //
  8.  
  9. #if 0
  10. static const int debug = 1;
  11.  
  12. #include <sehle/renderable.h>
  13.  
  14. #include "xml/base.h"
  15.  
  16. #include "mesh.h"
  17.  
  18. namespace Miletos {
  19.  
  20. // SMesh
  21.  
  22. Sehle::Renderable *
  23. SMesh::show (Sehle::Graph *graph, Sehle::u32 contextmask)
  24. {
  25.     Sehle::StaticMesh *mesh = new Sehle::StaticMesh(graph, contextmask);
  26.  
  27.     buildMesh (mesh);
  28.  
  29.     return mesh;
  30. }
  31.  
  32. const Object::Type *
  33. SMesh::objectType (void)
  34. {
  35.     return type ();
  36. }
  37.  
  38. const Object::Type *
  39. SMesh::type (void)
  40. {
  41.     static Type *mytype = NULL;
  42.     if (!mytype) mytype = new Type("SMesh", Item::type (), 0, NULL);
  43.     return mytype;
  44. }
  45.  
  46. } // Namespace Miletos
  47.  
  48. #endif
  49.