Formatted classes
This commit is contained in:
11
src/Assets.h
11
src/Assets.h
@@ -9,15 +9,16 @@
|
||||
#include "Texture.h"
|
||||
#include "Shader.h"
|
||||
|
||||
class Assets {
|
||||
private:
|
||||
class Assets
|
||||
{
|
||||
private:
|
||||
std::map<std::string, Texture2D> textures;
|
||||
std::map<std::string, Shader> shaders;
|
||||
|
||||
Texture2D loadTextureFromFile(const GLchar *file, GLboolean alpha);
|
||||
Shader loadShaderFromFile(const GLchar *vShaderFile,const GLchar *fShaderFile, const GLchar *gShaderFile=nullptr);
|
||||
Shader loadShaderFromFile(const GLchar *vShaderFile, const GLchar *fShaderFile, const GLchar *gShaderFile = nullptr);
|
||||
|
||||
public:
|
||||
public:
|
||||
Assets() {}
|
||||
~Assets();
|
||||
|
||||
@@ -25,8 +26,6 @@ class Assets {
|
||||
Shader getShader(std::string name);
|
||||
Texture2D loadTexture(const GLchar *file, GLboolean alpha, std::string name);
|
||||
Texture2D getTexture(std::string name);
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user