Changes for include/RenderObject.hpp: 16 added lines, 11 removed lines.
Original line number
Diff line number
Diff line
#pragma once
#include<glApi.hpp>
#include<ObjLoader.hpp>
#include<utils.hpp>
#include<stb_image.h>
#include<memory>
#include"RenderObjectPart.hpp"
/**
* @brief The RenderObject class
*
* A RenderObject is split into parts, sharing the same geometry (VBOs), but referencing different primitive subsets (IBO) and materials (textures, ...).
*/
classRenderObject{
private:
std::vector<RenderObjectPart>m_parts;// Sub-parts of the object
std::unique_ptr<Sampler>m_diffusemap;// Diffuse map of the object
std::unique_ptr<Sampler>m_normalmap;// Normal map of the object
std::unique_ptr<Sampler>m_specularmap;// Specular map of the object
std::shared_ptr<Program>program;// OpenGL program to render the object
glm::vec3dimensions;// Dimensions of the object (used to compute OBBs)