Explorar el Código

Fix examples warnings for macos (#3842)

pull/3846/head
aiafrasinei hace 9 meses
cometido por GitHub
padre
commit
2aed94cfc2
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: B5690EEEBB952194
Se han modificado 3 ficheros con 3 adiciones y 4 borrados
  1. +0
    -1
      examples/models/models_first_person_maze.c
  2. +1
    -0
      examples/others/raylib_opengl_interop.c
  3. +2
    -3
      examples/text/text_codepoints_loading.c

+ 0
- 1
examples/models/models_first_person_maze.c Ver fichero

@ -34,7 +34,6 @@ int main(void)
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.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)
Texture2D cubicmap = LoadTextureFromImage(imMap); // Convert image to texture to display (VRAM)

+ 1
- 0
examples/others/raylib_opengl_interop.c Ver fichero

@ -35,6 +35,7 @@
#define GLSL_VERSION 100
#else
#if defined(__APPLE__)
#define GL_SILENCE_DEPRECATION // Silence Opengl API deprecation warnings
#include <OpenGL/gl3.h> // OpenGL 3 library for OSX
#include <OpenGL/gl3ext.h> // OpenGL 3 extensions library for OSX
#else

+ 2
- 3
examples/text/text_codepoints_loading.c Ver fichero

@ -60,7 +60,6 @@ int main(void)
bool showFontAtlas = false;
int codepointSize = 0;
int codepoint = 0;
char *ptr = text;
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
@ -77,13 +76,13 @@ int main(void)
if (IsKeyPressed(KEY_RIGHT))
{
// Get next codepoint in string and move pointer
codepoint = GetCodepointNext(ptr, &codepointSize);
GetCodepointNext(ptr, &codepointSize);
ptr += codepointSize;
}
else if (IsKeyPressed(KEY_LEFT))
{
// Get previous codepoint in string and move pointer
codepoint = GetCodepointPrevious(ptr, &codepointSize);
GetCodepointPrevious(ptr, &codepointSize);
ptr -= codepointSize;
}
//----------------------------------------------------------------------------------

Cargando…
Cancelar
Guardar