18 #ifndef __H__OCULAR_GRAPHICS_RESOURCE_LOADER_OBJ__H__
19 #define __H__OCULAR_GRAPHICS_RESOURCE_LOADER_OBJ__H__
21 #include "Resources/ResourceLoader.hpp"
22 #include "Graphics/Mesh/Vertex.hpp"
33 struct OBJVertexGroup;
109 void createMesh(
Mesh* mesh, OBJGroup
const* group);
110 void addFace(OBJFace
const* face, std::vector<Vertex>* vertices, std::vector<uint32_t>* indices,
Math::Vector3f& min,
Math::Vector3f& max);
118 void createMaterial(
Material* material, OBJMaterial
const* objMaterial, std::string
const& relPath);
124 bool isFileValid(
Core::File const& file)
const;
125 void splitParentSubNames(std::string
const& mappingName, std::string& parent, std::string& sub)
const;
129 OBJState* m_CurrState;
Definition: ResourceLoader.hpp:55
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Combination of a VertexBuffer and IndexBuffer.
Definition: Mesh.hpp:49
Definition: MultiResource.hpp:55
Definition: ResourceLoader_OBJ.hpp:66
virtual bool loadSubResource(Core::Resource *&resource, Core::File const &file, std::string const &mappingName) override
Definition: ResourceLoader_OBJ.cpp:110
virtual bool exploreResource(Core::File const &file) override
Definition: ResourceLoader_OBJ.cpp:143
virtual bool loadResource(Core::Resource *&resource, Core::File const &file, std::string const &mappingName) override
Definition: ResourceLoader_OBJ.cpp:61
Definition: Material.hpp:62
Definition: Resource.hpp:46