Reorganize struct
This commit is contained in:
parent
75384add98
commit
30d51ec26c
14
src/raylib.h
14
src/raylib.h
@ -288,12 +288,6 @@ typedef struct Camera2D {
|
|||||||
float zoom; // Camera zoom (scaling), should be 1.0f by default
|
float zoom; // Camera zoom (scaling), should be 1.0f by default
|
||||||
} Camera2D;
|
} Camera2D;
|
||||||
|
|
||||||
// Bounding box type
|
|
||||||
typedef struct BoundingBox {
|
|
||||||
Vector3 min; // Minimum vertex box-corner
|
|
||||||
Vector3 max; // Maximum vertex box-corner
|
|
||||||
} BoundingBox;
|
|
||||||
|
|
||||||
// Vertex data definning a mesh
|
// Vertex data definning a mesh
|
||||||
// NOTE: Data stored in CPU memory (and GPU)
|
// NOTE: Data stored in CPU memory (and GPU)
|
||||||
typedef struct Mesh {
|
typedef struct Mesh {
|
||||||
@ -393,6 +387,12 @@ typedef struct RayHitInfo {
|
|||||||
Vector3 normal; // Surface normal of hit
|
Vector3 normal; // Surface normal of hit
|
||||||
} RayHitInfo;
|
} RayHitInfo;
|
||||||
|
|
||||||
|
// Bounding box type
|
||||||
|
typedef struct BoundingBox {
|
||||||
|
Vector3 min; // Minimum vertex box-corner
|
||||||
|
Vector3 max; // Maximum vertex box-corner
|
||||||
|
} BoundingBox;
|
||||||
|
|
||||||
// Wave type, defines audio wave data
|
// Wave type, defines audio wave data
|
||||||
typedef struct Wave {
|
typedef struct Wave {
|
||||||
unsigned int sampleCount; // Number of samples
|
unsigned int sampleCount; // Number of samples
|
||||||
@ -1237,7 +1237,7 @@ RLAPI void DrawGizmo(Vector3 position);
|
|||||||
|
|
||||||
// Model loading/unloading functions
|
// Model loading/unloading functions
|
||||||
RLAPI Model LoadModel(const char *fileName); // Load model from files (meshes and materials)
|
RLAPI Model LoadModel(const char *fileName); // Load model from files (meshes and materials)
|
||||||
RLAPI Model LoadModelFromMesh(Mesh mesh); // Load model from generated mesh
|
RLAPI Model LoadModelFromMesh(Mesh mesh); // Load model from generated mesh (default material)
|
||||||
RLAPI void UnloadModel(Model model); // Unload model from memory (RAM and/or VRAM)
|
RLAPI void UnloadModel(Model model); // Unload model from memory (RAM and/or VRAM)
|
||||||
|
|
||||||
// Mesh loading/unloading functions
|
// Mesh loading/unloading functions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user