MySchoolEngine / GLEngine

The goal of this repository is to build rendering focused game engine. Feel free to join me and extend this project.
https://myschoolengine.github.io/GLEngine-Documentation/
Other
21 stars 1 forks source link

Type safe uniform variables setting #52

Open RohacekD opened 5 years ago

RohacekD commented 5 years ago

E.g. uniform ivec2 variable; can be initialized through

void C_ShaderProgram::SetUniform(N name, const glm::ivec2 & value)

which has undefined behaviour IMHO.