mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-20 05:15:37 +00:00
ADDED: Support software renderer on Web, blitting framebuffer data directly to a 2d canvas
This improvement is just a prove of concept, at this moment `PLATFORM_WEB` is limited in terms of software rendering by `GLFW` that only allows creating a WebGL canvas context with `glfwCreateWindow()`. We can skip that call but then some GLFW functionality is not available (windowing, inputs). The best solution is replacing GLFW completely by a pure Emscripten implementation for `PLATFORM_WEB`.
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
#include <time.h> // Required for: time() [Used in InitTimer()]
|
||||
#include <math.h> // Required for: tan() [Used in BeginMode3D()], atan2f() [Used in LoadVrStereoConfig()]
|
||||
|
||||
#if defined(PLATFORM_MEMORY)
|
||||
#if defined(PLATFORM_MEMORY) || defined(PLATFORM_WEB)
|
||||
#define SW_GL_FRAMEBUFFER_COPY_BGRA false
|
||||
#endif
|
||||
#define RLGL_IMPLEMENTATION
|
||||
|
||||
Reference in New Issue
Block a user