Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
rmodels.c File Reference
#include "raylib.h"
#include "config.h"
#include "utils.h"
#include "rlgl.h"
#include "raymath.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "external/tinyobj_loader_c.h"
#include "external/cgltf.h"
#include "external/vox_loader.h"
#include "external/par_shapes.h"
#include <unistd.h>
+ Include dependency graph for rmodels.c:

Go to the source code of this file.

Macros

#define TINYOBJ_MALLOC   RL_MALLOC
 rmodels - Basic functions to draw 3d shapes and load and draw 3d models More...
 
#define TINYOBJ_CALLOC   RL_CALLOC
 
#define TINYOBJ_REALLOC   RL_REALLOC
 
#define TINYOBJ_FREE   RL_FREE
 
#define TINYOBJ_LOADER_C_IMPLEMENTATION
 
#define CGLTF_MALLOC   RL_MALLOC
 
#define CGLTF_FREE   RL_FREE
 
#define CGLTF_IMPLEMENTATION
 
#define VOX_MALLOC   RL_MALLOC
 
#define VOX_CALLOC   RL_CALLOC
 
#define VOX_REALLOC   RL_REALLOC
 
#define VOX_FREE   RL_FREE
 
#define VOX_LOADER_IMPLEMENTATION
 
#define PAR_MALLOC(T, N)   ((T*)RL_MALLOC(N*sizeof(T)))
 
#define PAR_CALLOC(T, N)   ((T*)RL_CALLOC(N*sizeof(T), 1))
 
#define PAR_REALLOC(T, BUF, N)   ((T*)RL_REALLOC(BUF, sizeof(T)*(N)))
 
#define PAR_FREE   RL_FREE
 
#define PAR_SHAPES_IMPLEMENTATION
 
#define CHDIR   chdir
 
#define CUSTOM_MESH_GEN_PLANE
 
#define CUSTOM_MESH_GEN_CUBE
 
#define GRAY_VALUE(c)   ((c.r+c.g+c.b)/3)
 
#define COLOR_EQUAL(col1, col2)   ((col1.r == col2.r)&&(col1.g == col2.g)&&(col1.b == col2.b)&&(col1.a == col2.a))
 
#define EPSILON   0.000001f
 
#define IQM_MAGIC   "INTERQUAKEMODEL"
 
#define IQM_VERSION   2
 
#define BONE_NAME_LENGTH   32
 
#define MESH_NAME_LENGTH   32
 
#define MATERIAL_NAME_LENGTH   32
 
#define IQM_MAGIC   "INTERQUAKEMODEL"
 
#define IQM_VERSION   2
 
#define LOAD_ATTRIBUTE(accesor, numComp, dataType, dstPtr)
 

Functions

void DrawLine3D (Vector3 startPos, Vector3 endPos, Color color)
 
void DrawPoint3D (Vector3 position, Color color)
 
void DrawCircle3D (Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color)
 
void DrawTriangle3D (Vector3 v1, Vector3 v2, Vector3 v3, Color color)
 
void DrawTriangleStrip3D (Vector3 *points, int pointCount, Color color)
 
void DrawCube (Vector3 position, float width, float height, float length, Color color)
 
void DrawCubeV (Vector3 position, Vector3 size, Color color)
 
void DrawCubeWires (Vector3 position, float width, float height, float length, Color color)
 
void DrawCubeWiresV (Vector3 position, Vector3 size, Color color)
 
void DrawCubeTexture (Texture2D texture, Vector3 position, float width, float height, float length, Color color)
 
void DrawCubeTextureRec (Texture2D texture, Rectangle source, Vector3 position, float width, float height, float length, Color color)
 
void DrawSphere (Vector3 centerPos, float radius, Color color)
 
void DrawSphereEx (Vector3 centerPos, float radius, int rings, int slices, Color color)
 
void DrawSphereWires (Vector3 centerPos, float radius, int rings, int slices, Color color)
 
void DrawCylinder (Vector3 position, float radiusTop, float radiusBottom, float height, int sides, Color color)
 
void DrawCylinderEx (Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color)
 
void DrawCylinderWires (Vector3 position, float radiusTop, float radiusBottom, float height, int sides, Color color)
 
void DrawCylinderWiresEx (Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color)
 
void DrawPlane (Vector3 centerPos, Vector2 size, Color color)
 
void DrawRay (Ray ray, Color color)
 
void DrawGrid (int slices, float spacing)
 
Model LoadModel (const char *fileName)
 
Model LoadModelFromMesh (Mesh mesh)
 
void UnloadModel (Model model)
 
void UnloadModelKeepMeshes (Model model)
 
BoundingBox GetModelBoundingBox (Model model)
 
void UploadMesh (Mesh *mesh, bool dynamic)
 
void UpdateMeshBuffer (Mesh mesh, int index, const void *data, int dataSize, int offset)
 
void DrawMesh (Mesh mesh, Material material, Matrix transform)
 
void DrawMeshInstanced (Mesh mesh, Material material, const Matrix *transforms, int instances)
 
void UnloadMesh (Mesh mesh)
 
bool ExportMesh (Mesh mesh, const char *fileName)
 
MaterialLoadMaterials (const char *fileName, int *materialCount)
 
Material LoadMaterialDefault (void)
 
void UnloadMaterial (Material material)
 
void SetMaterialTexture (Material *material, int mapType, Texture2D texture)
 
void SetModelMeshMaterial (Model *model, int meshId, int materialId)
 
ModelAnimationLoadModelAnimations (const char *fileName, unsigned int *animCount)
 
void UpdateModelAnimation (Model model, ModelAnimation anim, int frame)
 
void UnloadModelAnimations (ModelAnimation *animations, unsigned int count)
 
void UnloadModelAnimation (ModelAnimation anim)
 
bool IsModelAnimationValid (Model model, ModelAnimation anim)
 
Mesh GenMeshPoly (int sides, float radius)
 
Mesh GenMeshPlane (float width, float length, int resX, int resZ)
 
Mesh GenMeshCube (float width, float height, float length)
 
Mesh GenMeshSphere (float radius, int rings, int slices)
 
Mesh GenMeshHemiSphere (float radius, int rings, int slices)
 
Mesh GenMeshCylinder (float radius, float height, int slices)
 
Mesh GenMeshCone (float radius, float height, int slices)
 
Mesh GenMeshTorus (float radius, float size, int radSeg, int sides)
 
Mesh GenMeshKnot (float radius, float size, int radSeg, int sides)
 
Mesh GenMeshHeightmap (Image heightmap, Vector3 size)
 
Mesh GenMeshCubicmap (Image cubicmap, Vector3 cubeSize)
 
BoundingBox GetMeshBoundingBox (Mesh mesh)
 
void GenMeshTangents (Mesh *mesh)
 
void GenMeshBinormals (Mesh *mesh)
 
void DrawModel (Model model, Vector3 position, float scale, Color tint)
 
void DrawModelEx (Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint)
 
void DrawModelWires (Model model, Vector3 position, float scale, Color tint)
 
void DrawModelWiresEx (Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint)
 
void DrawBillboard (Camera camera, Texture2D texture, Vector3 position, float size, Color tint)
 
void DrawBillboardRec (Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint)
 
void DrawBillboardPro (Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint)
 
void DrawBoundingBox (BoundingBox box, Color color)
 
bool CheckCollisionSpheres (Vector3 center1, float radius1, Vector3 center2, float radius2)
 
bool CheckCollisionBoxes (BoundingBox box1, BoundingBox box2)
 
bool CheckCollisionBoxSphere (BoundingBox box, Vector3 center, float radius)
 
RayCollision GetRayCollisionSphere (Ray ray, Vector3 center, float radius)
 
RayCollision GetRayCollisionBox (Ray ray, BoundingBox box)
 
RayCollision GetRayCollisionMesh (Ray ray, Mesh mesh, Matrix transform)
 
RayCollision GetRayCollisionTriangle (Ray ray, Vector3 p1, Vector3 p2, Vector3 p3)
 
RayCollision GetRayCollisionQuad (Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4)
 

Macro Definition Documentation

◆ BONE_NAME_LENGTH

#define BONE_NAME_LENGTH   32

◆ CGLTF_FREE

#define CGLTF_FREE   RL_FREE

Definition at line 73 of file rmodels.c.

◆ CGLTF_IMPLEMENTATION

#define CGLTF_IMPLEMENTATION

Definition at line 75 of file rmodels.c.

◆ CGLTF_MALLOC

#define CGLTF_MALLOC   RL_MALLOC

Definition at line 72 of file rmodels.c.

◆ CHDIR

#define CHDIR   chdir

Definition at line 104 of file rmodels.c.

◆ COLOR_EQUAL

#define COLOR_EQUAL (   col1,
  col2 
)    ((col1.r == col2.r)&&(col1.g == col2.g)&&(col1.b == col2.b)&&(col1.a == col2.a))

◆ CUSTOM_MESH_GEN_CUBE

#define CUSTOM_MESH_GEN_CUBE

◆ CUSTOM_MESH_GEN_PLANE

#define CUSTOM_MESH_GEN_PLANE

◆ EPSILON

#define EPSILON   0.000001f

◆ GRAY_VALUE

#define GRAY_VALUE (   c)    ((c.r+c.g+c.b)/3)

◆ IQM_MAGIC [1/2]

#define IQM_MAGIC   "INTERQUAKEMODEL"

◆ IQM_MAGIC [2/2]

#define IQM_MAGIC   "INTERQUAKEMODEL"

◆ IQM_VERSION [1/2]

#define IQM_VERSION   2

◆ IQM_VERSION [2/2]

#define IQM_VERSION   2

◆ LOAD_ATTRIBUTE

#define LOAD_ATTRIBUTE (   accesor,
  numComp,
  dataType,
  dstPtr 
)
Value:
{ \
int n = 0; \
dataType *buffer = (dataType *)accesor->buffer_view->buffer->data + accesor->buffer_view->offset/sizeof(dataType) + accesor->offset/sizeof(dataType); \
for (unsigned int k = 0; k < accesor->count; k++) \
{\
for (int l = 0; l < numComp; l++) \
{\
dstPtr[numComp*k + l] = buffer[n + l];\
}\
n += (int)(accesor->stride/sizeof(dataType));\
}\
}

◆ MATERIAL_NAME_LENGTH

#define MATERIAL_NAME_LENGTH   32

◆ MESH_NAME_LENGTH

#define MESH_NAME_LENGTH   32

◆ PAR_CALLOC

#define PAR_CALLOC (   T,
 
)    ((T*)RL_CALLOC(N*sizeof(T), 1))

Definition at line 91 of file rmodels.c.

◆ PAR_FREE

#define PAR_FREE   RL_FREE

Definition at line 93 of file rmodels.c.

◆ PAR_MALLOC

#define PAR_MALLOC (   T,
 
)    ((T*)RL_MALLOC(N*sizeof(T)))

Definition at line 90 of file rmodels.c.

◆ PAR_REALLOC

#define PAR_REALLOC (   T,
  BUF,
 
)    ((T*)RL_REALLOC(BUF, sizeof(T)*(N)))

Definition at line 92 of file rmodels.c.

◆ PAR_SHAPES_IMPLEMENTATION

#define PAR_SHAPES_IMPLEMENTATION

Definition at line 95 of file rmodels.c.

◆ TINYOBJ_CALLOC

#define TINYOBJ_CALLOC   RL_CALLOC

Definition at line 63 of file rmodels.c.

◆ TINYOBJ_FREE

#define TINYOBJ_FREE   RL_FREE

Definition at line 65 of file rmodels.c.

◆ TINYOBJ_LOADER_C_IMPLEMENTATION

#define TINYOBJ_LOADER_C_IMPLEMENTATION

Definition at line 67 of file rmodels.c.

◆ TINYOBJ_MALLOC

#define TINYOBJ_MALLOC   RL_MALLOC

rmodels - Basic functions to draw 3d shapes and load and draw 3d models

CONFIGURATION:

#define SUPPORT_MODULE_RMODELS rmodels module is included in the build

#define SUPPORT_FILEFORMAT_OBJ #define SUPPORT_FILEFORMAT_MTL #define SUPPORT_FILEFORMAT_IQM #define SUPPORT_FILEFORMAT_GLTF #define SUPPORT_FILEFORMAT_VOX Selected desired fileformats to be supported for model data loading.

#define SUPPORT_MESH_GENERATION Support procedural mesh generation functions, uses external par_shapes.h library NOTE: Some generated meshes DO NOT include generated texture coordinates

LICENSE: zlib/libpng

Copyright (c) 2013-2022 Ramon Santamaria (@raysan5)

This software is provided "as-is", without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

Definition at line 62 of file rmodels.c.

◆ TINYOBJ_REALLOC

#define TINYOBJ_REALLOC   RL_REALLOC

Definition at line 64 of file rmodels.c.

◆ VOX_CALLOC

#define VOX_CALLOC   RL_CALLOC

Definition at line 81 of file rmodels.c.

◆ VOX_FREE

#define VOX_FREE   RL_FREE

Definition at line 83 of file rmodels.c.

◆ VOX_LOADER_IMPLEMENTATION

#define VOX_LOADER_IMPLEMENTATION

Definition at line 85 of file rmodels.c.

◆ VOX_MALLOC

#define VOX_MALLOC   RL_MALLOC

Definition at line 80 of file rmodels.c.

◆ VOX_REALLOC

#define VOX_REALLOC   RL_REALLOC

Definition at line 82 of file rmodels.c.

Function Documentation

◆ CheckCollisionBoxes()

bool CheckCollisionBoxes ( BoundingBox  box1,
BoundingBox  box2 
)

Definition at line 3465 of file rmodels.c.

◆ CheckCollisionBoxSphere()

bool CheckCollisionBoxSphere ( BoundingBox  box,
Vector3  center,
float  radius 
)

Definition at line 3480 of file rmodels.c.

◆ CheckCollisionSpheres()

bool CheckCollisionSpheres ( Vector3  center1,
float  radius1,
Vector3  center2,
float  radius2 
)

Definition at line 3441 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawBillboard()

void DrawBillboard ( Camera  camera,
Texture2D  texture,
Vector3  position,
float  size,
Color  tint 
)

Definition at line 3319 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawBillboardPro()

void DrawBillboardPro ( Camera  camera,
Texture2D  texture,
Rectangle  source,
Vector3  position,
Vector3  up,
Vector2  size,
Vector2  origin,
float  rotation,
Color  tint 
)

Definition at line 3335 of file rmodels.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawBillboardRec()

void DrawBillboardRec ( Camera  camera,
Texture2D  texture,
Rectangle  source,
Vector3  position,
Vector2  size,
Color  tint 
)

Definition at line 3327 of file rmodels.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawBoundingBox()

void DrawBoundingBox ( BoundingBox  box,
Color  color 
)

Definition at line 3427 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawCircle3D()

void DrawCircle3D ( Vector3  center,
float  radius,
Vector3  rotationAxis,
float  rotationAngle,
Color  color 
)

Definition at line 180 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawCube()

void DrawCube ( Vector3  position,
float  width,
float  height,
float  length,
Color  color 
)

Definition at line 244 of file rmodels.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawCubeTexture()

void DrawCubeTexture ( Texture2D  texture,
Vector3  position,
float  width,
float  height,
float  length,
Color  color 
)

Definition at line 402 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawCubeTextureRec()

void DrawCubeTextureRec ( Texture2D  texture,
Rectangle  source,
Vector3  position,
float  width,
float  height,
float  length,
Color  color 
)

Definition at line 463 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawCubeV()

void DrawCubeV ( Vector3  position,
Vector3  size,
Color  color 
)

Definition at line 319 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawCubeWires()

void DrawCubeWires ( Vector3  position,
float  width,
float  height,
float  length,
Color  color 
)

Definition at line 325 of file rmodels.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawCubeWiresV()

void DrawCubeWiresV ( Vector3  position,
Vector3  size,
Color  color 
)

Definition at line 395 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawCylinder()

void DrawCylinder ( Vector3  position,
float  radiusTop,
float  radiusBottom,
float  height,
int  sides,
Color  color 
)

Definition at line 644 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawCylinderEx()

void DrawCylinderEx ( Vector3  startPos,
Vector3  endPos,
float  startRadius,
float  endRadius,
int  sides,
Color  color 
)

Definition at line 703 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawCylinderWires()

void DrawCylinderWires ( Vector3  position,
float  radiusTop,
float  radiusBottom,
float  height,
int  sides,
Color  color 
)

Definition at line 762 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawCylinderWiresEx()

void DrawCylinderWiresEx ( Vector3  startPos,
Vector3  endPos,
float  startRadius,
float  endRadius,
int  sides,
Color  color 
)

Definition at line 796 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawGrid()

void DrawGrid ( int  slices,
float  spacing 
)

Definition at line 880 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawLine3D()

void DrawLine3D ( Vector3  startPos,
Vector3  endPos,
Color  color 
)

Definition at line 150 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawMesh()

void DrawMesh ( Mesh  mesh,
Material  material,
Matrix  transform 
)

Definition at line 1183 of file rmodels.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawMeshInstanced()

void DrawMeshInstanced ( Mesh  mesh,
Material  material,
const Matrix transforms,
int  instances 
)

Definition at line 1407 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawModel()

void DrawModel ( Model  model,
Vector3  position,
float  scale,
Color  tint 
)

Definition at line 3260 of file rmodels.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawModelEx()

void DrawModelEx ( Model  model,
Vector3  position,
Vector3  rotationAxis,
float  rotationAngle,
Vector3  scale,
Color  tint 
)

Definition at line 3269 of file rmodels.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawModelWires()

void DrawModelWires ( Model  model,
Vector3  position,
float  scale,
Color  tint 
)

Definition at line 3299 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawModelWiresEx()

void DrawModelWiresEx ( Model  model,
Vector3  position,
Vector3  rotationAxis,
float  rotationAngle,
Vector3  scale,
Color  tint 
)

Definition at line 3309 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawPlane()

void DrawPlane ( Vector3  centerPos,
Vector2  size,
Color  color 
)

Definition at line 844 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawPoint3D()

void DrawPoint3D ( Vector3  position,
Color  color 
)

Definition at line 165 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawRay()

void DrawRay ( Ray  ray,
Color  color 
)

Definition at line 866 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawSphere()

void DrawSphere ( Vector3  centerPos,
float  radius,
Color  color 
)

Definition at line 550 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawSphereEx()

void DrawSphereEx ( Vector3  centerPos,
float  radius,
int  rings,
int  slices,
Color  color 
)

Definition at line 556 of file rmodels.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawSphereWires()

void DrawSphereWires ( Vector3  centerPos,
float  radius,
int  rings,
int  slices,
Color  color 
)

Definition at line 599 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawTriangle3D()

void DrawTriangle3D ( Vector3  v1,
Vector3  v2,
Vector3  v3,
Color  color 
)

Definition at line 201 of file rmodels.c.

+ Here is the call graph for this function:

◆ DrawTriangleStrip3D()

void DrawTriangleStrip3D ( Vector3 points,
int  pointCount,
Color  color 
)

Definition at line 214 of file rmodels.c.

+ Here is the call graph for this function:

◆ ExportMesh()

bool ExportMesh ( Mesh  mesh,
const char *  fileName 
)

Definition at line 1645 of file rmodels.c.

+ Here is the call graph for this function:

◆ GenMeshBinormals()

void GenMeshBinormals ( Mesh mesh)

Definition at line 3247 of file rmodels.c.

◆ GenMeshCone()

Mesh GenMeshCone ( float  radius,
float  height,
int  slices 
)

Definition at line 2485 of file rmodels.c.

+ Here is the call graph for this function:

◆ GenMeshCube()

Mesh GenMeshCube ( float  width,
float  height,
float  length 
)

Definition at line 2170 of file rmodels.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GenMeshCubicmap()

Mesh GenMeshCubicmap ( Image  cubicmap,
Vector3  cubeSize 
)

Definition at line 2766 of file rmodels.c.

+ Here is the call graph for this function:

◆ GenMeshCylinder()

Mesh GenMeshCylinder ( float  radius,
float  height,
int  slices 
)

Definition at line 2421 of file rmodels.c.

+ Here is the call graph for this function:

◆ GenMeshHeightmap()

Mesh GenMeshHeightmap ( Image  heightmap,
Vector3  size 
)

Definition at line 2631 of file rmodels.c.

+ Here is the call graph for this function:

◆ GenMeshHemiSphere()

Mesh GenMeshHemiSphere ( float  radius,
int  rings,
int  slices 
)

Definition at line 2377 of file rmodels.c.

+ Here is the call graph for this function:

◆ GenMeshKnot()

Mesh GenMeshKnot ( float  radius,
float  size,
int  radSeg,
int  sides 
)

Definition at line 2586 of file rmodels.c.

+ Here is the call graph for this function:

◆ GenMeshPlane()

Mesh GenMeshPlane ( float  width,
float  length,
int  resX,
int  resZ 
)

Definition at line 2037 of file rmodels.c.

+ Here is the call graph for this function:

◆ GenMeshPoly()

Mesh GenMeshPoly ( int  sides,
float  radius 
)

Definition at line 1968 of file rmodels.c.

+ Here is the call graph for this function:

◆ GenMeshSphere()

Mesh GenMeshSphere ( float  radius,
int  rings,
int  slices 
)

Definition at line 2335 of file rmodels.c.

+ Here is the call graph for this function:

◆ GenMeshTangents()

void GenMeshTangents ( Mesh mesh)

Definition at line 3147 of file rmodels.c.

+ Here is the call graph for this function:

◆ GenMeshTorus()

Mesh GenMeshTorus ( float  radius,
float  size,
int  radSeg,
int  sides 
)

Definition at line 2540 of file rmodels.c.

+ Here is the call graph for this function:

◆ GetMeshBoundingBox()

BoundingBox GetMeshBoundingBox ( Mesh  mesh)

Definition at line 3118 of file rmodels.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetModelBoundingBox()

BoundingBox GetModelBoundingBox ( Model  model)

Definition at line 1037 of file rmodels.c.

+ Here is the call graph for this function:

◆ GetRayCollisionBox()

RayCollision GetRayCollisionBox ( Ray  ray,
BoundingBox  box 
)

Definition at line 3538 of file rmodels.c.

+ Here is the call graph for this function:

◆ GetRayCollisionMesh()

RayCollision GetRayCollisionMesh ( Ray  ray,
Mesh  mesh,
Matrix  transform 
)

Definition at line 3598 of file rmodels.c.

+ Here is the call graph for this function:

◆ GetRayCollisionQuad()

RayCollision GetRayCollisionQuad ( Ray  ray,
Vector3  p1,
Vector3  p2,
Vector3  p3,
Vector3  p4 
)

Definition at line 3705 of file rmodels.c.

+ Here is the call graph for this function:

◆ GetRayCollisionSphere()

RayCollision GetRayCollisionSphere ( Ray  ray,
Vector3  center,
float  radius 
)

Definition at line 3501 of file rmodels.c.

+ Here is the call graph for this function:

◆ GetRayCollisionTriangle()

RayCollision GetRayCollisionTriangle ( Ray  ray,
Vector3  p1,
Vector3  p2,
Vector3  p3 
)

Definition at line 3646 of file rmodels.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsModelAnimationValid()

bool IsModelAnimationValid ( Model  model,
ModelAnimation  anim 
)

Definition at line 1950 of file rmodels.c.

◆ LoadMaterialDefault()

Material LoadMaterialDefault ( void  )

Definition at line 1763 of file rmodels.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadMaterials()

Material * LoadMaterials ( const char *  fileName,
int *  materialCount 
)

Definition at line 1725 of file rmodels.c.

+ Here is the call graph for this function:

◆ LoadModel()

Model LoadModel ( const char *  fileName)

Definition at line 914 of file rmodels.c.

+ Here is the call graph for this function:

◆ LoadModelAnimations()

ModelAnimation * LoadModelAnimations ( const char *  fileName,
unsigned int *  animCount 
)

Definition at line 1817 of file rmodels.c.

+ Here is the call graph for this function:

◆ LoadModelFromMesh()

Model LoadModelFromMesh ( Mesh  mesh)

Definition at line 969 of file rmodels.c.

+ Here is the call graph for this function:

◆ SetMaterialTexture()

void SetMaterialTexture ( Material material,
int  mapType,
Texture2D  texture 
)

Definition at line 1803 of file rmodels.c.

◆ SetModelMeshMaterial()

void SetModelMeshMaterial ( Model model,
int  meshId,
int  materialId 
)

Definition at line 1809 of file rmodels.c.

◆ UnloadMaterial()

void UnloadMaterial ( Material  material)

Definition at line 1784 of file rmodels.c.

+ Here is the call graph for this function:

◆ UnloadMesh()

void UnloadMesh ( Mesh  mesh)

Definition at line 1622 of file rmodels.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UnloadModel()

void UnloadModel ( Model  model)

Definition at line 992 of file rmodels.c.

+ Here is the call graph for this function:

◆ UnloadModelAnimation()

void UnloadModelAnimation ( ModelAnimation  anim)

Definition at line 1940 of file rmodels.c.

+ Here is the caller graph for this function:

◆ UnloadModelAnimations()

void UnloadModelAnimations ( ModelAnimation animations,
unsigned int  count 
)

Definition at line 1933 of file rmodels.c.

+ Here is the call graph for this function:

◆ UnloadModelKeepMeshes()

void UnloadModelKeepMeshes ( Model  model)

Definition at line 1016 of file rmodels.c.

◆ UpdateMeshBuffer()

void UpdateMeshBuffer ( Mesh  mesh,
int  index,
const void *  data,
int  dataSize,
int  offset 
)

Definition at line 1177 of file rmodels.c.

+ Here is the call graph for this function:

◆ UpdateModelAnimation()

void UpdateModelAnimation ( Model  model,
ModelAnimation  anim,
int  frame 
)

Definition at line 1833 of file rmodels.c.

+ Here is the call graph for this function:

◆ UploadMesh()

void UploadMesh ( Mesh mesh,
bool  dynamic 
)

Definition at line 1066 of file rmodels.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: