Advertisement
Guest User

Untitled

a guest
Sep 17th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <gl\glm\glm.hpp>
  4.  
  5. class Bone
  6. {
  7. public:
  8. Bone() : _index(0)
  9. {}
  10.  
  11. void setIndex(unsigned int index) { _index = index; }
  12. void setNodeMatrix(const glm::mat4 &nodeMatrix) { _nodeMatrix = nodeMatrix; }
  13. void setOffsetMatrix(const glm::mat4 &offsetMatrix) { _offsetMatrix = offsetMatrix; }
  14. void setFinalMatrix(const glm::mat4 &finalMatrix) { _finalMatrix = finalMatrix; }
  15.  
  16. unsigned int index() const { return _index; }
  17. const glm::mat4& nodeMatrix() const { return _nodeMatrix; }
  18. const glm::mat4& offsetMatrix() const { return _offsetMatrix; }
  19. const glm::mat4& finalMatrix() const { return _finalMatrix; }
  20.  
  21. private:
  22. unsigned int _index;
  23.  
  24. glm::mat4 _nodeMatrix;
  25. glm::mat4 _offsetMatrix;
  26. glm::mat4 _finalMatrix;
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement