#include #include "Chunk.h" #include #include #include #include #include Chunk::Chunk(int x, int y, int size, Color color) : m_x(x), m_y(y), m_size(size), m_color(color) {} void Chunk::LoadTextures(std::map textures) { // Access and process the textures myMap = textures; } void Chunk::Draw() { if (myMap["grass"]) DrawTexturePro(*(myMap["grass"]), { 0, 0, static_cast(myMap["grass"]->width), static_cast(myMap["grass"]->height) }, { 0, 0, static_cast(myMap["grass"]->width * 2), static_cast(myMap["grass"]->height * 2) }, { 0, 0 }, 0.0f, WHITE); }