-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOutlineShader.cpp
More file actions
41 lines (34 loc) · 835 Bytes
/
OutlineShader.cpp
File metadata and controls
41 lines (34 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "OutlineShader.h"
OutlineShader::OutlineShader()
{
}
OutlineShader::~OutlineShader()
{
}
void OutlineShader::bindAttributes()
{
bindAttribute(0, "vertexPosition");
}
void OutlineShader::getUniformLocations()
{
_isSelectedLoc = getUniformLocation("isSelected");
_modelMatrixLoc = getUniformLocation("model");
_viewMatrixLoc = getUniformLocation("view");
_projectionMatrixLoc = getUniformLocation("projection");
}
void OutlineShader::loadIsSelected(bool selected)
{
loadBool(_isSelectedLoc, selected);
}
void OutlineShader::loadModelMatrix(glm::mat4 matrix)
{
loadMatrix4f(_modelMatrixLoc, matrix);
}
void OutlineShader::loadViewMatrix(glm::mat4 matrix)
{
loadMatrix4f(_viewMatrixLoc, matrix);
}
void OutlineShader::loadProjectionMatrix(glm::mat4 matrix)
{
loadMatrix4f(_projectionMatrixLoc, matrix);
}