summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.c
diff options
context:
space:
mode:
authorRay <[email protected]>2017-03-05 15:49:19 +0100
committerGitHub <[email protected]>2017-03-05 15:49:19 +0100
commitbb7b9adb371f89f3c8677bdca5418013fe73d9c1 (patch)
tree99f1dd9b8c42afb190dc30937dfe2ccc3458ff77 /src/rlgl.c
parentb16f11845259205b484c3633b9b9375a69a917ae (diff)
parent203d1a154eb5b78fc5f56e9dead04c3a89bcd39e (diff)
downloadraylib-bb7b9adb371f89f3c8677bdca5418013fe73d9c1.tar.gz
raylib-bb7b9adb371f89f3c8677bdca5418013fe73d9c1.zip
Merge pull request #236 from raysan5/develop
Integrate Develop branch
Diffstat (limited to 'src/rlgl.c')
-rw-r--r--src/rlgl.c46
1 files changed, 36 insertions, 10 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index ce17adc3..ffc9d741 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -2,6 +2,8 @@
*
* rlgl - raylib OpenGL abstraction layer
*
+* DESCRIPTION:
+*
* rlgl allows usage of OpenGL 1.1 style functions (rlVertex) that are internally mapped to
* selected OpenGL version (1.1, 2.1, 3.3 Core, ES 2.0).
*
@@ -11,20 +13,44 @@
* rlglDraw() - Process internal buffers and send required draw calls
* rlglClose() - De-initialize internal buffers data and other auxiliar resources
*
-* External libs:
+* CONFIGURATION:
+*
+* #define GRAPHICS_API_OPENGL_11
+* Use OpenGL 1.1 backend
+*
+* #define GRAPHICS_API_OPENGL_21
+* Use OpenGL 2.1 backend
+*
+* #define GRAPHICS_API_OPENGL_33
+* Use OpenGL 3.3 Core profile backend
+*
+* #define GRAPHICS_API_OPENGL_ES2
+* Use OpenGL ES 2.0 backend
+*
+* #define RLGL_STANDALONE
+* Use rlgl as standalone library (no raylib dependency)
+*
+* #define RLGL_NO_DISTORTION_SHADER
+* Avoid stereo rendering distortion sahder (shader_distortion.h) inclusion
+*
+* #define SUPPORT_SHADER_DEFAULT / ENABLE_SHADER_DEFAULT
+*
+* #define SUPPORT_SHADER_DISTORTION
+*
+*
+* #define SUPPORT_OCULUS_RIFT_CV1 / RLGL_OCULUS_SUPPORT
+* Enable Oculus Rift CV1 functionality
+*
+* #define SUPPORT_STEREO_RENDERING
+*
+* #define RLGL_NO_DEFAULT_SHADER
+*
+* DEPENDENCIES:
* raymath - 3D math functionality (Vector3, Matrix, Quaternion)
* GLAD - OpenGL extensions loading (OpenGL 3.3 Core only)
*
-* Module Configuration Flags:
-* GRAPHICS_API_OPENGL_11 - Use OpenGL 1.1 backend
-* GRAPHICS_API_OPENGL_21 - Use OpenGL 2.1 backend
-* GRAPHICS_API_OPENGL_33 - Use OpenGL 3.3 Core profile backend
-* GRAPHICS_API_OPENGL_ES2 - Use OpenGL ES 2.0 backend
-*
-* RLGL_STANDALONE - Use rlgl as standalone library (no raylib dependency)
-* RLGL_NO_DISTORTION_SHADER - Avoid stereo rendering distortion sahder (shader_distortion.h) inclusion
-* RLGL_OCULUS_SUPPORT - Enable Oculus Rift CV1 functionality
*
+* LICENSE: zlib/libpng
*
* Copyright (c) 2014-2016 Ramon Santamaria (@raysan5)
*