[FEATURE] simple GUI support
This commit is contained in:
31
src/shaders/gui_shader.h
Normal file
31
src/shaders/gui_shader.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
#include "shader_program.h"
|
||||
|
||||
namespace shaders
|
||||
{
|
||||
/*
|
||||
* This class handles the shaders for all the GUI items
|
||||
*/
|
||||
|
||||
class GuiShader : public ShaderProgram
|
||||
{
|
||||
private:
|
||||
GLuint location_model_matrix;
|
||||
|
||||
public:
|
||||
GuiShader();
|
||||
|
||||
/*
|
||||
* @brief: A method to load the model matrix into the shader
|
||||
*
|
||||
* @param matrix: The model matrix
|
||||
*/
|
||||
void LoadModelMatrix(const glm::mat4& matrix) const;
|
||||
|
||||
protected:
|
||||
void SetAttributes() const override;
|
||||
void GetAllUniformLocations() override;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user