mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-17 15:21:44 +00:00
[split] Fix compilation for web (and desktop) (#3329)
* Fix compilation for web
* Remove EM_ASM_INT from core_input_gestures_web example
* Fix raymath undefined symbols for desktop and web
* Remove raylib_opengl_interop from examples Makefile
* Revert previous commit (8651c78
)
* Fix TraceLog for web and desktop
This commit is contained in:
@@ -7,9 +7,10 @@
|
||||
#include <time.h> // Required for: time() [Used in InitTimer()]
|
||||
#include <math.h> // Required for: tan() [Used in BeginMode3D()], atan2f() [Used in LoadVrStereoConfig()]
|
||||
|
||||
#define SUPPORT_TRACELOG
|
||||
#include "utils.h" // Required for: TRACELOG() macros
|
||||
|
||||
#if defined(PLATFORM_DESKTOP)
|
||||
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
|
||||
#define GLFW_INCLUDE_NONE // Disable the standard OpenGL header inclusion on GLFW3
|
||||
// NOTE: Already provided by rlgl implementation (on glad.h)
|
||||
#include "GLFW/glfw3.h" // GLFW3 library: Windows, OpenGL context and Input management
|
||||
@@ -21,12 +22,14 @@
|
||||
/*
|
||||
|
||||
Status:
|
||||
InitWindow: DRM,
|
||||
InitWindow: DRM,
|
||||
|
||||
*/
|
||||
|
||||
#include "raylib.h"
|
||||
#include "rlgl.h"
|
||||
|
||||
#define RAYMATH_IMPLEMENTATION
|
||||
#include "raymath.h"
|
||||
|
||||
|
||||
@@ -256,4 +259,4 @@ typedef struct CoreData {
|
||||
|
||||
extern CoreData CORE;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user