|  |  | @ -26,21 +26,29 @@ | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | #include "raylib.h" | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | #include "rlgl.h"           // Required for: rlDrawRenderBatchActive(), rlGetMatrixModelview(), rlGetMatrixProjection() | 
		
	
		
			
			|  |  |  | #if defined(__APPLE__) | 
		
	
		
			
			|  |  |  | #include <OpenGL/gl3.h>     // OpenGL 3 library for OSX | 
		
	
		
			
			|  |  |  | #include <OpenGL/gl3ext.h>  // OpenGL 3 extensions library for OSX | 
		
	
		
			
			|  |  |  | #else | 
		
	
		
			
			|  |  |  | #include "glad.h"       // Required for: OpenGL functionality | 
		
	
		
			
			|  |  |  | #endif | 
		
	
		
			
			|  |  |  | #include "raymath.h"        // Required for: MatrixMultiply(), MatrixToFloat() | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | #if defined(PLATFORM_DESKTOP) | 
		
	
		
			
			|  |  |  | #define GLSL_VERSION            330 | 
		
	
		
			
			|  |  |  | #if defined(GRAPHICS_API_OPENGL_ES2) | 
		
	
		
			
			|  |  |  | #include "glad_gles2.h"       // Required for: OpenGL functionality | 
		
	
		
			
			|  |  |  | #define glGenVertexArrays glGenVertexArraysOES | 
		
	
		
			
			|  |  |  | #define glBindVertexArray glBindVertexArrayOES | 
		
	
		
			
			|  |  |  | #define glDeleteVertexArrays glDeleteVertexArraysOES | 
		
	
		
			
			|  |  |  | #define GLSL_VERSION            100 | 
		
	
		
			
			|  |  |  | #else | 
		
	
		
			
			|  |  |  | #if defined(__APPLE__) | 
		
	
		
			
			|  |  |  | #include <OpenGL/gl3.h>     // OpenGL 3 library for OSX | 
		
	
		
			
			|  |  |  | #include <OpenGL/gl3ext.h>  // OpenGL 3 extensions library for OSX | 
		
	
		
			
			|  |  |  | #else | 
		
	
		
			
			|  |  |  | #include "glad.h"       // Required for: OpenGL functionality | 
		
	
		
			
			|  |  |  | #endif | 
		
	
		
			
			|  |  |  | #define GLSL_VERSION            330 | 
		
	
		
			
			|  |  |  | #endif | 
		
	
		
			
			|  |  |  | #else   // PLATFORM_RPI, PLATFORM_ANDROID, PLATFORM_WEB | 
		
	
		
			
			|  |  |  | #define GLSL_VERSION            100 | 
		
	
		
			
			|  |  |  | #endif | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | #include "rlgl.h"           // Required for: rlDrawRenderBatchActive(), rlGetMatrixModelview(), rlGetMatrixProjection() | 
		
	
		
			
			|  |  |  | #include "raymath.h"        // Required for: MatrixMultiply(), MatrixToFloat() | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | #define MAX_PARTICLES       1000 | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | // Particle type | 
		
	
	
		
			
				|  |  | @ -97,7 +105,9 @@ int main(void) | 
		
	
		
			
			|  |  |  | glBindVertexArray(0); | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | // Allows the vertex shader to set the point size of each particle individually | 
		
	
		
			
			|  |  |  | #ifndef GRAPHICS_API_OPENGL_ES2 | 
		
	
		
			
			|  |  |  | glEnable(GL_PROGRAM_POINT_SIZE); | 
		
	
		
			
			|  |  |  | #endif | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | SetTargetFPS(60); | 
		
	
		
			
			|  |  |  | //-------------------------------------------------------------------------------------- | 
		
	
	
		
			
				|  |  |  |