1 #ifndef RAYLIB_CPP_SHADER_HPP_
2 #define RAYLIB_CPP_SHADER_HPP_
12 #include "./raylib-cpp-utils.hpp"
27 set(GetShaderDefault());
35 GETTERSETTER(
unsigned int,Id,
id)
36 GETTERSETTER(
int*,Locs,locs)
53 ::UnloadShader(*
this);
56 static Shader Load(
const std::string& vsFileName,
const std::string& fsFileName) {
57 return ::LoadShader(vsFileName.c_str(), fsFileName.c_str());
59 static Shader LoadCode(
const std::string& vsCode,
const std::string& fsCode) {
60 char* param1 = (
char*)vsCode.c_str();
61 char* param2 = (
char*)fsCode.c_str();
62 return ::LoadShaderCode(param1, param2);
76 return ::GetShaderLocation(*
this, uniformName.c_str());