VertexElement.h 549 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef VERTEXELEMENT_H_
  2. #define VERTEXELEMENT_H_
  3. #include "Object.h"
  4. namespace gameplay
  5. {
  6. class VertexElement : public Object
  7. {
  8. public:
  9. /**
  10. * Constructor.
  11. */
  12. VertexElement(unsigned int t, unsigned int c);
  13. /**
  14. * Destructor.
  15. */
  16. virtual ~VertexElement(void);
  17. virtual const char* getElementName(void) const;
  18. virtual void writeBinary(FILE* file);
  19. virtual void writeText(FILE* file);
  20. static const char* usageStr(unsigned int usage);
  21. unsigned int usage;
  22. unsigned int size;
  23. };
  24. }
  25. #endif