[ADD] custom rendering system
This commit is contained in:
26
src/renderEngine/Loader.h
Normal file
26
src/renderEngine/Loader.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "../models/Model.h"
|
||||
|
||||
namespace renderEngine
|
||||
{
|
||||
namespace loader
|
||||
{
|
||||
/*
|
||||
This function generates a model from model data.
|
||||
*/
|
||||
struct models::RawModel LoadToVAO(std::vector<float>& positions, std::vector<float>& textureCoords, std::vector<unsigned int>& indices);
|
||||
|
||||
/*
|
||||
Loads a texture from a file into openGL using stb_image.h
|
||||
*/
|
||||
GLuint LoadTexture(std::string fileName);
|
||||
|
||||
/*
|
||||
Call this function when cleaning up all the meshes (when exiting the program).
|
||||
*/
|
||||
void CleanUp();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user