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
|
|
@ -68,17 +68,11 @@ typedef enum {
|
|||
extern "C" { // Prevents name mangling of functions
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
// Global Variables Definition
|
||||
//----------------------------------------------------------------------------------
|
||||
int lightsCount = 0; // Current amount of created lights
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
// Module Functions Declaration
|
||||
//----------------------------------------------------------------------------------
|
||||
Light CreateLight(int type, Vector3 position, Vector3 target, Color color, Shader shader); // Create a light and get shader locations
|
||||
void UpdateLightValues(Shader shader, Light light); // Send light properties to shader
|
||||
//void InitLightLocations(Shader shader, Light *light); // Init light shader locations
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
@ -110,7 +104,7 @@ void UpdateLightValues(Shader shader, Light light); // Send light proper
|
|||
//----------------------------------------------------------------------------------
|
||||
// Global Variables Definition
|
||||
//----------------------------------------------------------------------------------
|
||||
// ...
|
||||
static int lightsCount = 0; // Current amount of created lights
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
// Module specific Functions Declaration
|
||||
|
|
@ -142,6 +136,8 @@ Light CreateLight(int type, Vector3 position, Vector3 target, Color color, Shade
|
|||
char posName[32] = "lights[x].position\0";
|
||||
char targetName[32] = "lights[x].target\0";
|
||||
char colorName[32] = "lights[x].color\0";
|
||||
|
||||
// Set location name [x] depending on lights count
|
||||
enabledName[7] = '0' + lightsCount;
|
||||
typeName[7] = '0' + lightsCount;
|
||||
posName[7] = '0' + lightsCount;
|
||||
|
|
|
|||
Loading…
Reference in a new issue