Geometry.pkg 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. $#include "Graphics/Geometry.h"
  2. class Geometry : public Object
  3. {
  4. Geometry();
  5. ~Geometry();
  6. bool SetNumVertexBuffers(unsigned num);
  7. bool SetVertexBuffer(unsigned index, VertexBuffer* buffer);
  8. void SetIndexBuffer(IndexBuffer* buffer);
  9. bool SetDrawRange(PrimitiveType type, unsigned indexStart, unsigned indexCount, bool getUsedVertexRange = true);
  10. bool SetDrawRange(PrimitiveType type, unsigned indexStart, unsigned indexCount, unsigned vertexStart, unsigned vertexCount, bool checkIllegal = true);
  11. void SetLodDistance(float distance);
  12. unsigned GetNumVertexBuffers() const;
  13. VertexBuffer* GetVertexBuffer(unsigned index) const;
  14. IndexBuffer* GetIndexBuffer() const;
  15. PrimitiveType GetPrimitiveType() const;
  16. unsigned GetIndexStart() const;
  17. unsigned GetIndexCount() const;
  18. unsigned GetVertexStart() const;
  19. unsigned GetVertexCount() const;
  20. float GetLodDistance();
  21. bool IsEmpty() const;
  22. tolua_property__get_set unsigned numVertexBuffers;
  23. tolua_property__get_set IndexBuffer* indexBuffer;
  24. tolua_readonly tolua_property__get_set PrimitiveType primitiveType;
  25. tolua_readonly tolua_property__get_set unsigned indexStart;
  26. tolua_readonly tolua_property__get_set unsigned indexCount;
  27. tolua_readonly tolua_property__get_set unsigned vertexStart;
  28. tolua_readonly tolua_property__get_set unsigned vertexCount;
  29. tolua_property__get_set float lodDistance;
  30. tolua_readonly tolua_property__is_set bool empty;
  31. };
  32. ${
  33. #define TOLUA_DISABLE_tolua_GraphicsLuaAPI_Geometry_new00
  34. static int tolua_GraphicsLuaAPI_Geometry_new00(lua_State* tolua_S)
  35. {
  36. return ToluaNewObject<Geometry>(tolua_S);
  37. }
  38. #define TOLUA_DISABLE_tolua_GraphicsLuaAPI_Geometry_new00_local
  39. static int tolua_GraphicsLuaAPI_Geometry_new00_local(lua_State* tolua_S)
  40. {
  41. return ToluaNewObjectGC<Geometry>(tolua_S);
  42. }
  43. $}