summaryrefslogtreecommitdiffhomepage
path: root/src/utils.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-07-29 21:57:50 +0200
committerraysan5 <[email protected]>2021-07-29 21:57:50 +0200
commit8b7f43f89b88c75f7353fe85f7cb6465ad6be7b5 (patch)
tree2b3be572cedb63e66a51a83d42e6708bd354195b /src/utils.h
parent58e9a0894f65a50004e637f7db72bd12da809cd9 (diff)
downloadraylib-8b7f43f89b88c75f7353fe85f7cb6465ad6be7b5.tar.gz
raylib-8b7f43f89b88c75f7353fe85f7cb6465ad6be7b5.zip
WARNING: BREAKING CHANGE: rlgl complete decoupling from raylib -WIP-
rlgl has been redesigned to avoid any dependency to `raylib` or `raymath`, all functions using some of those libs have been reviewed. - REMOVED: `Texture2D`, `Shader` structs dependency - REMOVED: `Vector3`, `Matrix` structs dependency - REMOVED: raymath functions dependency, all required math is implemented in rlgl - ADDED: `rlMatrix` custom rlgl type - ADDED: `utils.c`: `rlMatrixFromMatrix()` and `rlMatrixToMatrix()` for a safe conversion between raylib<->rlgl matrix types - ADDED: `rl` prefix to all `rlgl` structs - Other small tweaks here and there
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index 50f70420..00ed8d14 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -45,6 +45,8 @@
#define TRACELOGD(...) (void)0
#endif
+#include "rlgl.h" // Required for: rlMatrix
+
//----------------------------------------------------------------------------------
// Some basic Defines
//----------------------------------------------------------------------------------
@@ -67,6 +69,9 @@ extern "C" { // Prevents name mangling of functions
//----------------------------------------------------------------------------------
// Module Functions Declaration
//----------------------------------------------------------------------------------
+rlMatrix rlMatrixFromMatrix(Matrix mat);
+Matrix rlMatrixToMatrix(rlMatrix mat);
+
#if defined(PLATFORM_ANDROID)
void InitAssetManager(AAssetManager *manager, const char *dataPath); // Initialize asset manager from android app
FILE *android_fopen(const char *fileName, const char *mode); // Replacement for fopen() -> Read-only!