mirror of
				https://github.com/raysan5/raylib.git
				synced 2025-10-26 12:27:01 +00:00 
			
		
		
		
	REVIEWED: rlgl_standalone examples #3487
				
					
				
			Example is intended for `PLATFORM_DESKTOP` only and OpenGL 3.3 Core profile.
This commit is contained in:
		| @@ -5,8 +5,8 @@ | |||||||
| *   rlgl library is an abstraction layer for multiple OpenGL versions (1.1, 2.1, 3.3 Core, ES 2.0) | *   rlgl library is an abstraction layer for multiple OpenGL versions (1.1, 2.1, 3.3 Core, ES 2.0) | ||||||
| *   that provides a pseudo-OpenGL 1.1 immediate-mode style API (rlVertex, rlTranslate, rlRotate...) | *   that provides a pseudo-OpenGL 1.1 immediate-mode style API (rlVertex, rlTranslate, rlRotate...) | ||||||
| * | * | ||||||
| *   NOTE: This example requires OpenGL 3.3 or OpenGL ES 2.0 for shaders support, | *   WARNING: This example is intended only for PLATFORM_DESKTOP and OpenGL 3.3 Core profile. | ||||||
| *         OpenGL 1.1 does not support shaders but it can also be used. | *       It could work on other platforms if redesigned for those platforms (out-of-scope) | ||||||
| * | * | ||||||
| *   DEPENDENCIES: | *   DEPENDENCIES: | ||||||
| *       glfw3     - Windows and context initialization library | *       glfw3     - Windows and context initialization library | ||||||
| @@ -64,9 +64,6 @@ | |||||||
| #define RAYMATH_STATIC_INLINE | #define RAYMATH_STATIC_INLINE | ||||||
| #include "raymath.h"            // Vector2, Vector3, Quaternion and Matrix functionality | #include "raymath.h"            // Vector2, Vector3, Quaternion and Matrix functionality | ||||||
|  |  | ||||||
| #if defined(__EMSCRIPTEN__) |  | ||||||
|     #define GLFW_INCLUDE_ES2 |  | ||||||
| #endif |  | ||||||
| #include "GLFW/glfw3.h"         // Windows/Context and inputs management | #include "GLFW/glfw3.h"         // Windows/Context and inputs management | ||||||
|  |  | ||||||
| #include <stdio.h>              // Required for: printf() | #include <stdio.h>              // Required for: printf() | ||||||
| @@ -136,6 +133,8 @@ int main(void) | |||||||
|  |  | ||||||
|     glfwWindowHint(GLFW_SAMPLES, 4); |     glfwWindowHint(GLFW_SAMPLES, 4); | ||||||
|     glfwWindowHint(GLFW_DEPTH_BITS, 16); |     glfwWindowHint(GLFW_DEPTH_BITS, 16); | ||||||
|  |      | ||||||
|  |     // WARNING: OpenGL 3.3 Core profile only | ||||||
|     glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); |     glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); | ||||||
|     glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); |     glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); | ||||||
|     glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); |     glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ray
					Ray