Fix examples warnings for macos (#3842)
This commit is contained in:
parent
f0807d2be1
commit
2aed94cfc2
@ -34,7 +34,6 @@ int main(void)
|
|||||||
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target)
|
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target)
|
||||||
camera.fovy = 45.0f; // Camera field-of-view Y
|
camera.fovy = 45.0f; // Camera field-of-view Y
|
||||||
camera.projection = CAMERA_PERSPECTIVE; // Camera projection type
|
camera.projection = CAMERA_PERSPECTIVE; // Camera projection type
|
||||||
Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position
|
|
||||||
|
|
||||||
Image imMap = LoadImage("resources/cubicmap.png"); // Load cubicmap image (RAM)
|
Image imMap = LoadImage("resources/cubicmap.png"); // Load cubicmap image (RAM)
|
||||||
Texture2D cubicmap = LoadTextureFromImage(imMap); // Convert image to texture to display (VRAM)
|
Texture2D cubicmap = LoadTextureFromImage(imMap); // Convert image to texture to display (VRAM)
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
#define GLSL_VERSION 100
|
#define GLSL_VERSION 100
|
||||||
#else
|
#else
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
|
#define GL_SILENCE_DEPRECATION // Silence Opengl API deprecation warnings
|
||||||
#include <OpenGL/gl3.h> // OpenGL 3 library for OSX
|
#include <OpenGL/gl3.h> // OpenGL 3 library for OSX
|
||||||
#include <OpenGL/gl3ext.h> // OpenGL 3 extensions library for OSX
|
#include <OpenGL/gl3ext.h> // OpenGL 3 extensions library for OSX
|
||||||
#else
|
#else
|
||||||
|
@ -60,7 +60,6 @@ int main(void)
|
|||||||
bool showFontAtlas = false;
|
bool showFontAtlas = false;
|
||||||
|
|
||||||
int codepointSize = 0;
|
int codepointSize = 0;
|
||||||
int codepoint = 0;
|
|
||||||
char *ptr = text;
|
char *ptr = text;
|
||||||
|
|
||||||
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
||||||
@ -77,13 +76,13 @@ int main(void)
|
|||||||
if (IsKeyPressed(KEY_RIGHT))
|
if (IsKeyPressed(KEY_RIGHT))
|
||||||
{
|
{
|
||||||
// Get next codepoint in string and move pointer
|
// Get next codepoint in string and move pointer
|
||||||
codepoint = GetCodepointNext(ptr, &codepointSize);
|
GetCodepointNext(ptr, &codepointSize);
|
||||||
ptr += codepointSize;
|
ptr += codepointSize;
|
||||||
}
|
}
|
||||||
else if (IsKeyPressed(KEY_LEFT))
|
else if (IsKeyPressed(KEY_LEFT))
|
||||||
{
|
{
|
||||||
// Get previous codepoint in string and move pointer
|
// Get previous codepoint in string and move pointer
|
||||||
codepoint = GetCodepointPrevious(ptr, &codepointSize);
|
GetCodepointPrevious(ptr, &codepointSize);
|
||||||
ptr -= codepointSize;
|
ptr -= codepointSize;
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user