summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorvictorfisac <[email protected]>2016-01-22 15:36:56 +0100
committervictorfisac <[email protected]>2016-01-22 15:36:56 +0100
commitf874fdc1addf2cb6aba788bc8879b76269c7a29d (patch)
tree9f64acf4616f47b285b5022656c0d0aad8d0a053 /src/rlgl.h
parentfcd30c5649f28d0d9c867712898fc5537f176c85 (diff)
parent4e57bd1f18996990546920f2242a58894c6cec81 (diff)
downloadraylib-f874fdc1addf2cb6aba788bc8879b76269c7a29d.tar.gz
raylib-f874fdc1addf2cb6aba788bc8879b76269c7a29d.zip
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index fbece962..76cae987 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -36,12 +36,7 @@
#include "utils.h" // Required for function TraceLog()
#endif
-#if defined(RLGL_STANDALONE)
- #define RAYMATH_IMPLEMENTATION // Use raymath as a header-only library (includes implementation)
- #define RAYMATH_EXTERN_INLINE // Compile raymath functions as static inline (remember, it's a compiler hint)
- #define RAYMATH_STANDALONE // Not dependent on raylib.h structs: Vector3, Matrix
- #include "raymath.h" // Required for Vector3 and Matrix functions
-#endif
+#include "raymath.h"
// Select desired OpenGL version
// NOTE: Those preprocessor defines are only used on rlgl module,
@@ -131,6 +126,12 @@ typedef enum { OPENGL_11 = 1, OPENGL_33, OPENGL_ES_20 } GlVersion;
COMPRESSED_ASTC_4x4_RGBA, // 8 bpp
COMPRESSED_ASTC_8x8_RGBA // 2 bpp
} TextureFormat;
+
+ // Bounding box type
+ typedef struct BoundingBox {
+ Vector3 min;
+ Vector3 max;
+ } BoundingBox;
// Mesh with vertex data type
// NOTE: If using OpenGL 1.1, data loaded in CPU; if OpenGL 3.3+ data loaded in GPU (vaoId)
@@ -177,10 +178,13 @@ typedef enum { OPENGL_11 = 1, OPENGL_33, OPENGL_ES_20 } GlVersion;
} Shader;
// Texture2D type
+ // NOTE: Data stored in GPU memory
typedef struct Texture2D {
- unsigned int id; // Texture id
- int width;
- int height;
+ unsigned int id; // OpenGL texture id
+ int width; // Texture base width
+ int height; // Texture base height
+ int mipmaps; // Mipmap levels, 1 by default
+ int format; // Data format (TextureFormat)
} Texture2D;
// 3d Model type