mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
voxel_engine.cpp - changed structure, added character controls, physics almost all files are modified (including shaders) + new source directory - physics
24 lines
564 B
C++
24 lines
564 B
C++
#ifndef GRAPHICS_SHADER_H_
|
|
#define GRAPHICS_SHADER_H_
|
|
|
|
#include <string>
|
|
#include <glm/glm.hpp>
|
|
|
|
class Shader {
|
|
public:
|
|
unsigned int id;
|
|
|
|
Shader(unsigned int id);
|
|
~Shader();
|
|
|
|
void use();
|
|
void uniformMatrix(std::string name, glm::mat4 matrix);
|
|
void uniform1i(std::string name, int x);
|
|
void uniform1f(std::string name, float x);
|
|
void uniform2f(std::string name, float x, float y);
|
|
void uniform3f(std::string name, float x, float y, float z);
|
|
};
|
|
|
|
extern Shader* load_shader(std::string vertexFile, std::string fragmentFile);
|
|
|
|
#endif /* GRAPHICS_SHADER_H_ */
|