// // Created by sebastian on 24.12.25. // #ifndef DICEWARS_SIEDLER_LOADER_H #define DICEWARS_SIEDLER_LOADER_H #include #include #include "../model/RawModel.h" #include "../textures/ModelTexture.h" #include "glad/glad.h" class Loader { public: RawModel loadToVAO(const std::vector& vertices, const std::vector& textureCoords, const std::vector& indices); ~Loader(); void cleanUp(); ModelTexture loadTextureFromFile(const std::string& path); private: GLuint createVAO(); GLuint loadTexture(const std::string &path); void storeDataInAttributeList(int attributeNumber, int coordinateSize, const std::vector &data); void bindIndicesBuffer(const std::vector &indices); void unbindVAO(); std::vector vaoIDs; std::vector vboIDs; std::vector textureIDs; }; #endif //DICEWARS_SIEDLER_LOADER_H