Renamed some functions to use latest raylib version
This commit is contained in:
parent
0872365938
commit
fe3256be9f
3 changed files with 5 additions and 5 deletions
|
@ -145,7 +145,7 @@ int main(void)
|
||||||
|
|
||||||
DrawFPS(10, 10);
|
DrawFPS(10, 10);
|
||||||
|
|
||||||
DrawText(FormatText("Screen Size: [%i, %i]", GetScreenWidth(), GetScreenHeight()), 10, 40, 10, GREEN);
|
DrawText(TextFormat("Screen Size: [%i, %i]", GetScreenWidth(), GetScreenHeight()), 10, 40, 10, GREEN);
|
||||||
|
|
||||||
// Draw window state info
|
// Draw window state info
|
||||||
DrawText("Following flags can be set after window creation:", 10, 60, 10, GRAY);
|
DrawText("Following flags can be set after window creation:", 10, 60, 10, GRAY);
|
||||||
|
|
|
@ -73,8 +73,8 @@ int main(void)
|
||||||
|
|
||||||
Matrix *transforms = RL_MALLOC(count*sizeof(Matrix)); // Pre-multiplied transformations passed to rlgl
|
Matrix *transforms = RL_MALLOC(count*sizeof(Matrix)); // Pre-multiplied transformations passed to rlgl
|
||||||
|
|
||||||
Shader shader = LoadShader(FormatText("resources/shaders/glsl%i/base_lighting_instanced.vs", GLSL_VERSION),
|
Shader shader = LoadShader(TextFormat("resources/shaders/glsl%i/base_lighting_instanced.vs", GLSL_VERSION),
|
||||||
FormatText("resources/shaders/glsl%i/lighting.fs", GLSL_VERSION));
|
TextFormat("resources/shaders/glsl%i/lighting.fs", GLSL_VERSION));
|
||||||
|
|
||||||
// Get some shader loactions
|
// Get some shader loactions
|
||||||
shader.locs[LOC_MATRIX_MVP] = GetShaderLocation(shader, "mvp");
|
shader.locs[LOC_MATRIX_MVP] = GetShaderLocation(shader, "mvp");
|
||||||
|
|
|
@ -151,8 +151,8 @@
|
||||||
#define MAGENTA CLITERAL(Color){ 255, 0, 255, 255 } // Magenta
|
#define MAGENTA CLITERAL(Color){ 255, 0, 255, 255 } // Magenta
|
||||||
#define RAYWHITE CLITERAL(Color){ 245, 245, 245, 255 } // My own White (raylib logo)
|
#define RAYWHITE CLITERAL(Color){ 245, 245, 245, 255 } // My own White (raylib logo)
|
||||||
|
|
||||||
// Temporal hack to avoid breaking old codebases using
|
// Temporal hacks to avoid breaking old codebases using
|
||||||
// deprecated raylib implementation of these functions
|
// deprecated raylib implementation or definitions
|
||||||
#define FormatText TextFormat
|
#define FormatText TextFormat
|
||||||
#define LoadText LoadFileText
|
#define LoadText LoadFileText
|
||||||
#define GetExtension GetFileExtension
|
#define GetExtension GetFileExtension
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue