浏览代码

Minor tweaks

Ray 4 年之前
父节点
当前提交
6ebe76cba7
共有 2 个文件被更改,包括 18 次插入18 次删除
  1. 6 6
      src/core.c
  2. 12 12
      src/rlgl.h

+ 6 - 6
src/core.c

@@ -225,8 +225,8 @@
     #include <android/window.h>             // Defines AWINDOW_FLAG_FULLSCREEN and others
     #include <android/window.h>             // Defines AWINDOW_FLAG_FULLSCREEN and others
     #include <android_native_app_glue.h>    // Defines basic app state struct and manages activity
     #include <android_native_app_glue.h>    // Defines basic app state struct and manages activity
 
 
-    #include <EGL/egl.h>                    // EGL library - Native platform display device control functions
-    #include <GLES2/gl2.h>                  // OpenGL ES 2.0 library
+    #include <EGL/egl.h>                    // Native platform windowing system interface
+    //#include <GLES2/gl2.h>                  // OpenGL ES 2.0 library (not required in this module)
 #endif
 #endif
 
 
 #if defined(PLATFORM_RPI) || defined(PLATFORM_DRM)
 #if defined(PLATFORM_RPI) || defined(PLATFORM_DRM)
@@ -251,14 +251,14 @@
     #include <xf86drmMode.h>            // Direct Rendering Manager modesetting interface
     #include <xf86drmMode.h>            // Direct Rendering Manager modesetting interface
 #endif
 #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
     #include "GLES2/gl2.h"              // OpenGL ES 2.0 library
 #endif
 #endif
 
 
 #if defined(PLATFORM_UWP)
 #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 "GLES2/gl2.h"              // OpenGL ES 2.0 library
     #include "uwp_events.h"             // UWP bootstrapping functions
     #include "uwp_events.h"             // UWP bootstrapping functions
 #endif
 #endif

+ 12 - 12
src/rlgl.h

@@ -182,10 +182,10 @@
 #endif
 #endif
 
 
 // Texture parameters (equivalent to OpenGL defines)
 // 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_NEAREST               0x2600      // GL_NEAREST
 #define RL_TEXTURE_FILTER_LINEAR                0x2601      // GL_LINEAR
 #define RL_TEXTURE_FILTER_LINEAR                0x2601      // GL_LINEAR
@@ -201,18 +201,18 @@
 #define RL_TEXTURE_WRAP_MIRROR_CLAMP            0x8742      // GL_MIRROR_CLAMP_EXT
 #define RL_TEXTURE_WRAP_MIRROR_CLAMP            0x8742      // GL_MIRROR_CLAMP_EXT
 
 
 // Matrix modes (equivalent to OpenGL)
 // 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
 // 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
 // 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
 // Types and Structures Definition