Geometry.pkg 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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, unsigned elementMask = MASK_DEFAULT);
  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. unsigned GetVertexElementMask(unsigned index) const;
  15. IndexBuffer* GetIndexBuffer() const;
  16. PrimitiveType GetPrimitiveType() const;
  17. unsigned GetIndexStart() const;
  18. unsigned GetIndexCount() const;
  19. unsigned GetVertexStart() const;
  20. unsigned GetVertexCount() const;
  21. float GetLodDistance();
  22. bool IsEmpty() const;
  23. tolua_property__get_set unsigned numVertexBuffers;
  24. tolua_property__get_set IndexBuffer* indexBuffer;
  25. tolua_readonly tolua_property__get_set PrimitiveType primitiveType;
  26. tolua_readonly tolua_property__get_set unsigned indexStart;
  27. tolua_readonly tolua_property__get_set unsigned indexCount;
  28. tolua_readonly tolua_property__get_set unsigned vertexStart;
  29. tolua_readonly tolua_property__get_set unsigned vertexCount;
  30. tolua_property__get_set float lodDistance;
  31. tolua_readonly tolua_property__is_set bool empty;
  32. };
  33. ${
  34. #define TOLUA_DISABLE_tolua_GraphicsLuaAPI_Geometry_new00
  35. static int tolua_GraphicsLuaAPI_Geometry_new00(lua_State* tolua_S)
  36. {
  37. return ToluaNewObject<Geometry>(tolua_S);
  38. }
  39. #define TOLUA_DISABLE_tolua_GraphicsLuaAPI_Geometry_new00_local
  40. static int tolua_GraphicsLuaAPI_Geometry_new00_local(lua_State* tolua_S)
  41. {
  42. return ToluaNewObjectGC<Geometry>(tolua_S);
  43. }
  44. $}