aboutsummaryrefslogtreecommitdiff
path: root/src/rlgl.c
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2016-06-02 01:26:44 +0200
committerRay <raysan5@gmail.com>2016-06-02 01:26:44 +0200
commit17878550b1e2dde44fcd1e668c92ca2d96680a28 (patch)
tree40811b7f15dc77d88ec80a7029691e034bb53cb8 /src/rlgl.c
parent7afa0b09ab00b610ad084026022df788fb787229 (diff)
downloadraylib-17878550b1e2dde44fcd1e668c92ca2d96680a28.tar.gz
raylib-17878550b1e2dde44fcd1e668c92ca2d96680a28.zip
Review heades usage
This is a first step toward a bigger project. Some modules could be ported to header-only to be used as standalone.
Diffstat (limited to 'src/rlgl.c')
-rw-r--r--src/rlgl.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index aa536e2a..cca48ba2 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -28,41 +28,41 @@
#include "rlgl.h"
-#include <stdio.h> // Standard input / output lib
-#include <stdlib.h> // Declares malloc() and free() for memory management, rand()
-#include <string.h> // Declares strcmp(), strlen(), strtok()
+#include <stdio.h> // Standard input / output lib
+#include <stdlib.h> // Required for: malloc(), free(), rand()
+#include <string.h> // Required for: strcmp(), strlen(), strtok()
#ifndef RLGL_STANDALONE
- #include "raymath.h" // Required for Vector3 and Matrix functions
+ #include "raymath.h" // Required for Vector3 and Matrix functions
#endif
#if defined(GRAPHICS_API_OPENGL_11)
- #ifdef __APPLE__ // OpenGL include for OSX
- #include <OpenGL/gl.h>
+ #ifdef __APPLE__
+ #include <OpenGL/gl.h> // OpenGL 1.1 library for OSX
#else
- #include <GL/gl.h> // Basic OpenGL include
+ #include <GL/gl.h> // OpenGL 1.1 library
#endif
#endif
#if defined(GRAPHICS_API_OPENGL_33)
- #ifdef __APPLE__ // OpenGL include for OSX
- #include <OpenGL/gl3.h>
+ #ifdef __APPLE__
+ #include <OpenGL/gl3.h> // OpenGL 3 library for OSX
#else
//#define GLEW_STATIC
//#include <GL/glew.h> // GLEW header, includes OpenGL headers
- #include "glad.h" // glad header, includes OpenGL headers
+ #include "glad.h" // GLAD library, includes OpenGL headers
#endif
#endif
#if defined(GRAPHICS_API_OPENGL_ES2)
- #include <EGL/egl.h>
- #include <GLES2/gl2.h>
- #include <GLES2/gl2ext.h>
+ #include <EGL/egl.h> // EGL library
+ #include <GLES2/gl2.h> // OpenGL ES 2.0 library
+ #include <GLES2/gl2ext.h> // OpenGL ES 2.0 extensions library
#endif
#if defined(RLGL_STANDALONE)
- #include <stdarg.h> // Used for functions with variable number of parameters (TraceLog())
-#endif
+ #include <stdarg.h> // Required for: va_list, va_start(), vfprintf(), va_end()
+#endif // NOTE: Used on TraceLog()
//----------------------------------------------------------------------------------
// Defines and Macros