mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 17:19:27 +00:00
Added overloads for const std::string& and const char* arguments
This commit is contained in:
@@ -45,6 +45,10 @@ class Shader : public ::Shader {
|
||||
return ::LoadShader(vsFileName.c_str(), fsFileName.c_str());
|
||||
}
|
||||
|
||||
static ::Shader Load(const char* vsFileName, const char* fsFileName) {
|
||||
return ::LoadShader(vsFileName, fsFileName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Load a shader from memory.
|
||||
*
|
||||
@@ -54,6 +58,10 @@ class Shader : public ::Shader {
|
||||
return ::LoadShaderFromMemory(vsCode.c_str(), fsCode.c_str());
|
||||
}
|
||||
|
||||
static ::Shader LoadFromMemory(const char* vsCode, const char* fsCode) {
|
||||
return ::LoadShaderFromMemory(vsCode, fsCode);
|
||||
}
|
||||
|
||||
GETTERSETTER(unsigned int, Id, id)
|
||||
GETTERSETTER(int*, Locs, locs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user