[EDIT] comments on each function
This commit is contained in:
@@ -9,17 +9,24 @@ namespace render_engine
|
||||
namespace loader
|
||||
{
|
||||
/*
|
||||
This function generates a model from model data.
|
||||
@brief: This function generates a model from model data.
|
||||
|
||||
@param position: The positions of each vertex (in order: x, y, z) in the model
|
||||
@param texture_coords: The texture coordinates of the model
|
||||
@param normals: The normals of each face of the model
|
||||
@param indices: A list with a sort of lookup table to the positions parameter
|
||||
*/
|
||||
models::RawModel LoadToVAO(std::vector<float>& positions, std::vector<float>& texture_coords, std::vector<float>& normals, std::vector<unsigned int>& indices);
|
||||
|
||||
/*
|
||||
Loads a texture from a file into openGL using stb_image.h
|
||||
@brief: Loads a texture from a file into openGL using stb_image.h
|
||||
|
||||
@param file_name: The filepath to the texture
|
||||
*/
|
||||
GLuint LoadTexture(std::string file_name);
|
||||
|
||||
/*
|
||||
Call this function when cleaning up all the meshes (when exiting the program).
|
||||
@brief: Call this function when cleaning up all the meshes (when exiting the program).
|
||||
*/
|
||||
void CleanUp();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user