Merging master (#3)
* REDESIGNED input system for better mouse/touch support * Update Makefile * Reviewed IsMouseButtonDown() * Added comment on IsMouseButtonDown() issue IsMouseButtonDown() does not process touch state down properly, state is reseted every frame... * Update textures_mouse_painting.c * Update raymath.h (#1118) * Update raymath.h Added Vector2Rotate Function. * Update raymath.h * Support touch drawing on web * Review some comment * Review shader exaples to work on web (GLSL 100) * Support any mouse button for gesture detection * Some code tweaks * REVIEWED: Mouse/Touch input system After several reviews, now it seems everything works as expected. * Avoid icons in shell Very weird... lately icons are not properly displayed on browser! * Update core.c * WARNING: Corrected issue with IsKeyDown() #1119 * ADDED: LoadFileText() and SaveFileText() Improved file access checks Co-authored-by: Ray <raysan5@gmail.com> Co-authored-by: i-right-i <olmstead.ben@gmail.com>
This commit is contained in:
parent
da6b05e15c
commit
035826a37b
1 changed files with 547 additions and 269 deletions
|
|
@ -32,6 +32,12 @@
|
|||
#define RLIGHTS_IMPLEMENTATION
|
||||
#include "rlights.h"
|
||||
|
||||
#if defined(PLATFORM_DESKTOP)
|
||||
#define GLSL_VERSION 330
|
||||
#else // PLATFORM_RPI, PLATFORM_ANDROID, PLATFORM_WEB
|
||||
#define GLSL_VERSION 100
|
||||
#endif
|
||||
|
||||
int main(void)
|
||||
{
|
||||
// Initialization
|
||||
|
|
@ -61,7 +67,8 @@ int main(void)
|
|||
modelC.materials[0].maps[MAP_DIFFUSE].texture = texture;
|
||||
|
||||
// Load shader and set up some uniforms
|
||||
Shader shader = LoadShader("resources/shaders/glsl330/fog.vs", "resources/shaders/glsl330/fog.fs");
|
||||
Shader shader = LoadShader(FormatText("resources/shaders/glsl%i/base_lighting.vs", GLSL_VERSION),
|
||||
FormatText("resources/shaders/glsl%i/fog.fs", GLSL_VERSION));
|
||||
shader.locs[LOC_MATRIX_MODEL] = GetShaderLocation(shader, "matModel");
|
||||
shader.locs[LOC_VECTOR_VIEW] = GetShaderLocation(shader, "viewPos");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue