blocks.h 634 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #include <glm/vec2.hpp>
  3. enum BlockTypes
  4. {
  5. air = 0,
  6. grassBlock,
  7. dirt,
  8. stone,
  9. ice,
  10. woodLog,
  11. wooden_plank,
  12. cobblestone,
  13. gold_block,
  14. bricks,
  15. sand,
  16. sand_stone,
  17. snow_dirt,
  18. leaves,
  19. gold_ore,
  20. coar_ore,
  21. stoneBrick,
  22. iron_ore,
  23. diamond_ore,
  24. bookShelf,
  25. birch_wood,
  26. gravel,
  27. grass,
  28. rose,
  29. iron_block,
  30. glowStone,
  31. redstone_ore,
  32. crafting_table,
  33. furnace_on,
  34. furnace_off,
  35. glass,
  36. hay,
  37. BlocksCount
  38. };
  39. glm::vec2 getAtlasTop(int type);
  40. glm::vec2 getAtlasBottom(int type);
  41. glm::vec2 getAtlasLeft(int type);
  42. glm::vec2 getAtlasRight(int type);
  43. glm::vec2 getAtlasFront(int type);
  44. glm::vec2 getAtlasBack(int type);