8 #ifndef MODELLOADER_HPP
9 #define MODELLOADER_HPP
13 #include <glm/glm.hpp>
37 bool load(
const std::string absoluteFilePath);
57 float m_boundingSphere;
93 void clearVertexObjects();
107 void setupColorMode(
enum ColorMode colorMode,
bool isLoading);
109 std::vector<glm::vec4> m_bufferVertexPos;
110 std::vector<glm::vec3> m_bufferColors;
111 std::vector<GLfloat> m_bufferRadii;
112 std::vector<glm::vec3> m_bufferChainColors;
113 std::vector<glm::vec4> m_bufferTextureQuads;
117 double m_sizeTexture;
121 enum ColorMode m_colorMode;
123 std::vector<Atom*> m_atoms;
124 std::map<std::string, glm::vec3> m_colors;
125 std::map<std::string, glm::vec3> m_chainColors;
126 std::vector<glm::vec3> m_existingChainColors;
128 std::map<std::string, float> m_radius;
GLuint getVao() const
A member function to get the vertex array object.
Definition: ModelLoader.cpp:268
Definition: ModelLoader.hpp:19
ModelLoader()
Default constructor.
Definition: ModelLoader.cpp:17
bool load(const std::string absoluteFilePath)
A member function to load a model given by an absolute file path.
Definition: ModelLoader.cpp:43
void setTextureSize(int size)
A member function to set the texture size.
Definition: ModelLoader.cpp:38
int getAtomCount()
A member function to get the atom count.
Definition: ModelLoader.cpp:309
~ModelLoader()
Destructor.
Definition: ModelLoader.cpp:34