From 6ebe76cba73d270b2cbad5341e2fe7ef16fca40e Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 27 Apr 2021 11:05:05 +0200 Subject: [PATCH] Minor tweaks --- src/core.c | 12 ++++++------ src/rlgl.h | 24 ++++++++++++------------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/core.c b/src/core.c index 07280cbe6..553662f82 100644 --- a/src/core.c +++ b/src/core.c @@ -225,8 +225,8 @@ #include // Defines AWINDOW_FLAG_FULLSCREEN and others #include // Defines basic app state struct and manages activity - #include // EGL library - Native platform display device control functions - #include // OpenGL ES 2.0 library + #include // Native platform windowing system interface + //#include // OpenGL ES 2.0 library (not required in this module) #endif #if defined(PLATFORM_RPI) || defined(PLATFORM_DRM) @@ -251,14 +251,14 @@ #include // Direct Rendering Manager modesetting interface #endif - #include "EGL/egl.h" // EGL library - Native platform display device control functions - #include "EGL/eglext.h" // EGL library - Extensions + #include "EGL/egl.h" // Native platform windowing system interface + #include "EGL/eglext.h" // EGL extensions #include "GLES2/gl2.h" // OpenGL ES 2.0 library #endif #if defined(PLATFORM_UWP) - #include "EGL/egl.h" // EGL library - Native platform display device control functions - #include "EGL/eglext.h" // EGL library - Extensions + #include "EGL/egl.h" // Native platform windowing system interface + #include "EGL/eglext.h" // EGL extensions #include "GLES2/gl2.h" // OpenGL ES 2.0 library #include "uwp_events.h" // UWP bootstrapping functions #endif diff --git a/src/rlgl.h b/src/rlgl.h index e67d743df..d7775260d 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -182,10 +182,10 @@ #endif // Texture parameters (equivalent to OpenGL defines) -#define RL_TEXTURE_WRAP_S 0x2802 // GL_TEXTURE_WRAP_S -#define RL_TEXTURE_WRAP_T 0x2803 // GL_TEXTURE_WRAP_T -#define RL_TEXTURE_MAG_FILTER 0x2800 // GL_TEXTURE_MAG_FILTER -#define RL_TEXTURE_MIN_FILTER 0x2801 // GL_TEXTURE_MIN_FILTER +#define RL_TEXTURE_WRAP_S 0x2802 // GL_TEXTURE_WRAP_S +#define RL_TEXTURE_WRAP_T 0x2803 // GL_TEXTURE_WRAP_T +#define RL_TEXTURE_MAG_FILTER 0x2800 // GL_TEXTURE_MAG_FILTER +#define RL_TEXTURE_MIN_FILTER 0x2801 // GL_TEXTURE_MIN_FILTER #define RL_TEXTURE_FILTER_NEAREST 0x2600 // GL_NEAREST #define RL_TEXTURE_FILTER_LINEAR 0x2601 // GL_LINEAR @@ -201,18 +201,18 @@ #define RL_TEXTURE_WRAP_MIRROR_CLAMP 0x8742 // GL_MIRROR_CLAMP_EXT // Matrix modes (equivalent to OpenGL) -#define RL_MODELVIEW 0x1700 // GL_MODELVIEW -#define RL_PROJECTION 0x1701 // GL_PROJECTION -#define RL_TEXTURE 0x1702 // GL_TEXTURE +#define RL_MODELVIEW 0x1700 // GL_MODELVIEW +#define RL_PROJECTION 0x1701 // GL_PROJECTION +#define RL_TEXTURE 0x1702 // GL_TEXTURE // Primitive assembly draw modes -#define RL_LINES 0x0001 // GL_LINES -#define RL_TRIANGLES 0x0004 // GL_TRIANGLES -#define RL_QUADS 0x0007 // GL_QUADS +#define RL_LINES 0x0001 // GL_LINES +#define RL_TRIANGLES 0x0004 // GL_TRIANGLES +#define RL_QUADS 0x0007 // GL_QUADS // GL equivalent data types -#define RL_UNSIGNED_BYTE 0x1401 // GL_UNSIGNED_BYTE -#define RL_FLOAT 0x1406 // GL_FLOAT +#define RL_UNSIGNED_BYTE 0x1401 // GL_UNSIGNED_BYTE +#define RL_FLOAT 0x1406 // GL_FLOAT //---------------------------------------------------------------------------------- // Types and Structures Definition