Support mouse cursor on RPI native
Reduced bunnymark limits
This commit is contained in:
parent
a727f5768f
commit
3db13edd89
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include <stdlib.h> // Required for: malloc(), free()
|
#include <stdlib.h> // Required for: malloc(), free()
|
||||||
|
|
||||||
#define MAX_BUNNIES 100000 // 100K bunnies limit
|
#define MAX_BUNNIES 50000 // 50K bunnies limit
|
||||||
|
|
||||||
// This is the maximum amount of elements (quads) per batch
|
// This is the maximum amount of elements (quads) per batch
|
||||||
// NOTE: This value is defined in [rlgl] module and can be changed there
|
// NOTE: This value is defined in [rlgl] module and can be changed there
|
||||||
|
@ -44,6 +44,8 @@
|
|||||||
#define SUPPORT_MOUSE_GESTURES 1
|
#define SUPPORT_MOUSE_GESTURES 1
|
||||||
// Reconfigure standard input to receive key inputs, works with SSH connection.
|
// Reconfigure standard input to receive key inputs, works with SSH connection.
|
||||||
#define SUPPORT_SSH_KEYBOARD_RPI 1
|
#define SUPPORT_SSH_KEYBOARD_RPI 1
|
||||||
|
// Draw a mouse reference on screen (square cursor box)
|
||||||
|
#define SUPPORT_MOUSE_CURSOR_RPI 1
|
||||||
// Use busy wait loop for timing sync, if not defined, a high-resolution timer is setup and used
|
// Use busy wait loop for timing sync, if not defined, a high-resolution timer is setup and used
|
||||||
//#define SUPPORT_BUSY_WAIT_LOOP 1
|
//#define SUPPORT_BUSY_WAIT_LOOP 1
|
||||||
// Wait for events passively (sleeping while no events) instead of polling them actively every frame
|
// Wait for events passively (sleeping while no events) instead of polling them actively every frame
|
||||||
|
@ -55,6 +55,9 @@
|
|||||||
* WARNING: Reconfiguring standard input could lead to undesired effects, like breaking other running processes or
|
* WARNING: Reconfiguring standard input could lead to undesired effects, like breaking other running processes or
|
||||||
* blocking the device is not restored properly. Use with care.
|
* blocking the device is not restored properly. Use with care.
|
||||||
*
|
*
|
||||||
|
* #define SUPPORT_MOUSE_CURSOR_RPI (Raspberry Pi only)
|
||||||
|
* Draw a mouse reference on screen (square cursor box)
|
||||||
|
*
|
||||||
* #define SUPPORT_BUSY_WAIT_LOOP
|
* #define SUPPORT_BUSY_WAIT_LOOP
|
||||||
* Use busy wait loop for timing sync, if not defined, a high-resolution timer is setup and used
|
* Use busy wait loop for timing sync, if not defined, a high-resolution timer is setup and used
|
||||||
*
|
*
|
||||||
@ -1187,6 +1190,12 @@ void BeginDrawing(void)
|
|||||||
// End canvas drawing and swap buffers (double buffering)
|
// End canvas drawing and swap buffers (double buffering)
|
||||||
void EndDrawing(void)
|
void EndDrawing(void)
|
||||||
{
|
{
|
||||||
|
#if defined(PLATFORM_RPI) && defined(SUPPORT_MOUSE_CURSOR_RPI)
|
||||||
|
// On RPI native mode we have no system mouse cursor, so,
|
||||||
|
// we draw a small rectangle for user reference
|
||||||
|
DrawRectangle(mousePosition.x, mousePosition.y, 3, 3, MAROON);
|
||||||
|
#endif
|
||||||
|
|
||||||
rlglDraw(); // Draw Buffers (Only OpenGL 3+ and ES2)
|
rlglDraw(); // Draw Buffers (Only OpenGL 3+ and ES2)
|
||||||
|
|
||||||
#if defined(SUPPORT_GIF_RECORDING)
|
#if defined(SUPPORT_GIF_RECORDING)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user