CustomGeometry.pkg 727 B

123456789101112131415161718192021
  1. $#include "CustomGeometry.h"
  2. class CustomGeometry : public Drawable
  3. {
  4. void Clear();
  5. void SetNumGeometries(unsigned num);
  6. void BeginGeometry(unsigned index, PrimitiveType type);
  7. void DefineVertex(const Vector3& position);
  8. void DefineNormal(const Vector3& normal);
  9. void DefineTangent(const Vector4& tangent);
  10. void DefineColor(const Color& color);
  11. void DefineTexCoord(const Vector2& texCoord);
  12. void Commit();
  13. void SetMaterial(Material* material);
  14. bool SetMaterial(unsigned index, Material* material);
  15. unsigned GetNumGeometries();
  16. Material* GetMaterial(unsigned index = 0);
  17. tolua_property__get_set Material* material;
  18. tolua_property__get_set unsigned numGeometries;
  19. };