[comment] commented some temporary code in the main and commented a new method that gets the size of a model.

This commit is contained in:
Lars
2021-05-21 15:21:27 +02:00
parent e10aea5a15
commit e2464ec8fd
3 changed files with 13 additions and 0 deletions

View File

@@ -128,6 +128,11 @@ namespace render_engine
glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(int) * indices.size(), &indices[0], GL_STATIC_DRAW);
}
/**
* @brief gets the width, height and depth of a model
* @param positions all the points of a model
* @returns vec3<float> the size values of a model (width, height and depth)
**/
static glm::vec3 GetSizeModel(std::vector<float>& positions)
{
float minX = 100;