bindbc.raylib.bind.models

Basic geometric 3D shapes drawing functions

Members

Aliases

pCheckCollisionBoxSphere
alias pCheckCollisionBoxSphere = bool function(BoundingBox box, Vector3 center, float radius)

Detect collision between box and sphere

pCheckCollisionBoxes
alias pCheckCollisionBoxes = bool function(BoundingBox box1, BoundingBox box2)

Detect collision between two bounding boxes

pCheckCollisionRayBox
alias pCheckCollisionRayBox = bool function(Ray ray, BoundingBox box)

Detect collision between ray and box

pCheckCollisionRaySphere
alias pCheckCollisionRaySphere = bool function(Ray ray, Vector3 center, float radius)

Detect collision between ray and sphere

pCheckCollisionRaySphereEx
alias pCheckCollisionRaySphereEx = bool function(Ray ray, Vector3 center, float radius, Vector3* collisionPoint)

Detect collision between ray and sphere, returns collision point

pCheckCollisionSpheres
alias pCheckCollisionSpheres = bool function(Vector3 centerA, float radiusA, Vector3 centerB, float radiusB)

Detect collision between two spheres

pDrawBillboard
alias pDrawBillboard = void function(Camera camera, Texture2D texture, Vector3 center, float size, Color tint)

Draw a billboard texture

pDrawBillboardRec
alias pDrawBillboardRec = void function(Camera camera, Texture2D texture, Rectangle sourceRec, Vector3 center, float size, Color tint)

Draw a billboard texture defined by sourceRec

pDrawBoundingBox
alias pDrawBoundingBox = void function(BoundingBox box, Color color)

Draw bounding box (wires)

pDrawCircle3D
alias pDrawCircle3D = void function(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color)

Draw a circle in 3D world space

pDrawCube
alias pDrawCube = void function(Vector3 position, float width, float height, float length, Color color)

Draw cube

pDrawCubeTexture
alias pDrawCubeTexture = void function(Texture2D texture, Vector3 position, float width, float height, float length, Color color)

Draw cube textured

pDrawCubeV
alias pDrawCubeV = void function(Vector3 position, Vector3 size, Color color)

Draw cube (Vector version)

pDrawCubeWires
alias pDrawCubeWires = void function(Vector3 position, float width, float height, float length, Color color)

Draw cube wires

pDrawCubeWiresV
alias pDrawCubeWiresV = void function(Vector3 position, Vector3 size, Color color)

Draw cube wires (Vector version)

pDrawCylinder
alias pDrawCylinder = void function(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color)

Draw a cylinder/cone

pDrawCylinderWires
alias pDrawCylinderWires = void function(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color)

Draw a cylinder/cone wires

pDrawGizmo
alias pDrawGizmo = void function(Vector3 position)

Draw simple gizmo

pDrawGrid
alias pDrawGrid = void function(int slices, float spacing)

Draw a grid (centered at (0, 0, 0))

pDrawLine3D
alias pDrawLine3D = void function(Vector3 startPos, Vector3 endPos, Color color)

Draw a line in 3D world space

pDrawModel
alias pDrawModel = void function(Model model, Vector3 position, float scale, Color tint)

Draw a model (with texture if set)

pDrawModelEx
alias pDrawModelEx = void function(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint)

Draw a model with extended parameters

pDrawModelWires
alias pDrawModelWires = void function(Model model, Vector3 position, float scale, Color tint)

Draw a model wires (with texture if set)

pDrawModelWiresEx
alias pDrawModelWiresEx = void function(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint)

Draw a model wires (with texture if set) with extended parameters

pDrawPlane
alias pDrawPlane = void function(Vector3 centerPos, Vector2 size, Color color)

Draw a plane XZ

pDrawPoint3D
alias pDrawPoint3D = void function(Vector3 position, Color color)

Draw a point in 3D space, actually a small line

pDrawRay
alias pDrawRay = void function(Ray ray, Color color)

Draw a ray line

pDrawSphere
alias pDrawSphere = void function(Vector3 centerPos, float radius, Color color)

Draw sphere

pDrawSphereEx
alias pDrawSphereEx = void function(Vector3 centerPos, float radius, int rings, int slices, Color color)

Draw sphere with extended parameters

pDrawSphereWires
alias pDrawSphereWires = void function(Vector3 centerPos, float radius, int rings, int slices, Color color)

Draw sphere wires

pExportMesh
alias pExportMesh = void function(Mesh mesh, const(char)* fileName)

Export mesh data to file

pGenMeshCube
alias pGenMeshCube = Mesh function(float width, float height, float length)

Generate cuboid mesh

pGenMeshCubicmap
alias pGenMeshCubicmap = Mesh function(Image cubicmap, Vector3 cubeSize)

Generate cubes-based map mesh from image data

pGenMeshCylinder
alias pGenMeshCylinder = Mesh function(float radius, float height, int slices)

Generate cylinder mesh

pGenMeshHeightmap
alias pGenMeshHeightmap = Mesh function(Image heightmap, Vector3 size)

Generate heightmap mesh from image data

pGenMeshHemiSphere
alias pGenMeshHemiSphere = Mesh function(float radius, int rings, int slices)

Generate half-sphere mesh (no bottom cap)

pGenMeshKnot
alias pGenMeshKnot = Mesh function(float radius, float size, int radSeg, int sides)

Generate trefoil knot mesh

pGenMeshPlane
alias pGenMeshPlane = Mesh function(float width, float length, int resX, int resZ)

Generate plane mesh (with subdivisions)

pGenMeshPoly
alias pGenMeshPoly = Mesh function(int sides, float radius)

Generate polygonal mesh

pGenMeshSphere
alias pGenMeshSphere = Mesh function(float radius, int rings, int slices)

Generate sphere mesh (standard sphere)

pGenMeshTorus
alias pGenMeshTorus = Mesh function(float radius, float size, int radSeg, int sides)

Generate torus mesh

pGetCollisionRayGround
alias pGetCollisionRayGround = RayHitInfo function(Ray ray, float groundHeight)

Get collision info between ray and ground plane (Y-normal plane)

pGetCollisionRayModel
alias pGetCollisionRayModel = RayHitInfo function(Ray ray, Model model)

Get collision info between ray and model

pGetCollisionRayTriangle
alias pGetCollisionRayTriangle = RayHitInfo function(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3)

Get collision info between ray and triangle

pIsModelAnimationValid
alias pIsModelAnimationValid = bool function(Model model, ModelAnimation anim)

Check model animation skeleton match

pLoadMaterialDefault
alias pLoadMaterialDefault = Material function()

Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)

pLoadMaterials
alias pLoadMaterials = Material* function(const(char)* fileName, int* materialCount)

Load materials from model file

pLoadMeshes
alias pLoadMeshes = Mesh* function(const(char)* fileName, int* meshCount)

Load meshes from model file

pLoadModel
alias pLoadModel = Model function(const(char)* fileName)

Load model from files (meshes and materials)

pLoadModelAnimations
alias pLoadModelAnimations = ModelAnimation* function(const(char)* fileName, int* animsCount)

Load model animations from file

pLoadModelFromMesh
alias pLoadModelFromMesh = Model function(Mesh mesh)

Load model from generated mesh (default material)

pMeshBinormals
alias pMeshBinormals = void function(Mesh* mesh)

Compute mesh binormals

pMeshBoundingBox
alias pMeshBoundingBox = BoundingBox function(Mesh mesh)

Compute mesh bounding box limits

pMeshTangents
alias pMeshTangents = void function(Mesh* mesh)

Compute mesh tangents

pSetMaterialTexture
alias pSetMaterialTexture = void function(Material* material, int mapType, Texture2D texture)

Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)

pSetModelMeshMaterial
alias pSetModelMeshMaterial = void function(Model* model, int meshId, int materialId)

Set material for a mesh

pUnloadMaterial
alias pUnloadMaterial = void function(Material material)

Unload material from GPU memory (VRAM)

pUnloadMesh
alias pUnloadMesh = void function(Mesh mesh)

Unload mesh from memory (RAM and/or VRAM)

pUnloadModel
alias pUnloadModel = void function(Model model)

Unload model from memory (RAM and/or VRAM)

pUnloadModelAnimation
alias pUnloadModelAnimation = void function(ModelAnimation anim)

Unload animation data

pUpdateModelAnimation
alias pUpdateModelAnimation = void function(Model model, ModelAnimation anim, int frame)

Update model animation pose

Static variables

CheckCollisionBoxSphere
pCheckCollisionBoxSphere CheckCollisionBoxSphere;
Undocumented in source.
CheckCollisionBoxes
pCheckCollisionBoxes CheckCollisionBoxes;
Undocumented in source.
CheckCollisionRayBox
pCheckCollisionRayBox CheckCollisionRayBox;
Undocumented in source.
CheckCollisionRaySphere
pCheckCollisionRaySphere CheckCollisionRaySphere;
Undocumented in source.
CheckCollisionRaySphereEx
pCheckCollisionRaySphereEx CheckCollisionRaySphereEx;
Undocumented in source.
CheckCollisionSpheres
pCheckCollisionSpheres CheckCollisionSpheres;
Undocumented in source.
DrawBillboard
pDrawBillboard DrawBillboard;
Undocumented in source.
DrawBillboardRec
pDrawBillboardRec DrawBillboardRec;
Undocumented in source.
DrawBoundingBox
pDrawBoundingBox DrawBoundingBox;
Undocumented in source.
DrawCircle3D
pDrawCircle3D DrawCircle3D;
Undocumented in source.
DrawCube
pDrawCube DrawCube;
Undocumented in source.
DrawCubeTexture
pDrawCubeTexture DrawCubeTexture;
Undocumented in source.
DrawCubeV
pDrawCubeV DrawCubeV;
Undocumented in source.
DrawCubeWires
pDrawCubeWires DrawCubeWires;
Undocumented in source.
DrawCubeWiresV
pDrawCubeWiresV DrawCubeWiresV;
Undocumented in source.
DrawCylinder
pDrawCylinder DrawCylinder;
Undocumented in source.
DrawCylinderWires
pDrawCylinderWires DrawCylinderWires;
Undocumented in source.
DrawGizmo
pDrawGizmo DrawGizmo;
Undocumented in source.
DrawGrid
pDrawGrid DrawGrid;
Undocumented in source.
DrawLine3D
pDrawLine3D DrawLine3D;
Undocumented in source.
DrawModel
pDrawModel DrawModel;
Undocumented in source.
DrawModelEx
pDrawModelEx DrawModelEx;
Undocumented in source.
DrawModelWires
pDrawModelWires DrawModelWires;
Undocumented in source.
DrawModelWiresEx
pDrawModelWiresEx DrawModelWiresEx;
Undocumented in source.
DrawPlane
pDrawPlane DrawPlane;
Undocumented in source.
DrawPoint3D
pDrawPoint3D DrawPoint3D;
Undocumented in source.
DrawRay
pDrawRay DrawRay;
Undocumented in source.
DrawSphere
pDrawSphere DrawSphere;
Undocumented in source.
DrawSphereEx
pDrawSphereEx DrawSphereEx;
Undocumented in source.
DrawSphereWires
pDrawSphereWires DrawSphereWires;
Undocumented in source.
ExportMesh
pExportMesh ExportMesh;
Undocumented in source.
GenMeshCube
pGenMeshCube GenMeshCube;
Undocumented in source.
GenMeshCubicmap
pGenMeshCubicmap GenMeshCubicmap;
Undocumented in source.
GenMeshCylinder
pGenMeshCylinder GenMeshCylinder;
Undocumented in source.
GenMeshHeightmap
pGenMeshHeightmap GenMeshHeightmap;
Undocumented in source.
GenMeshHemiSphere
pGenMeshHemiSphere GenMeshHemiSphere;
Undocumented in source.
GenMeshKnot
pGenMeshKnot GenMeshKnot;
Undocumented in source.
GenMeshPlane
pGenMeshPlane GenMeshPlane;
Undocumented in source.
GenMeshPoly
pGenMeshPoly GenMeshPoly;
Undocumented in source.
GenMeshSphere
pGenMeshSphere GenMeshSphere;
Undocumented in source.
GenMeshTorus
pGenMeshTorus GenMeshTorus;
Undocumented in source.
GetCollisionRayGround
pGetCollisionRayGround GetCollisionRayGround;
Undocumented in source.
GetCollisionRayModel
pGetCollisionRayModel GetCollisionRayModel;
Undocumented in source.
GetCollisionRayTriangle
pGetCollisionRayTriangle GetCollisionRayTriangle;
Undocumented in source.
IsModelAnimationValid
pIsModelAnimationValid IsModelAnimationValid;
Undocumented in source.
LoadMaterialDefault
pLoadMaterialDefault LoadMaterialDefault;
Undocumented in source.
LoadMaterials
pLoadMaterials LoadMaterials;
Undocumented in source.
LoadMeshes
pLoadMeshes LoadMeshes;
Undocumented in source.
LoadModel
pLoadModel LoadModel;
Undocumented in source.
LoadModelAnimations
pLoadModelAnimations LoadModelAnimations;
Undocumented in source.
LoadModelFromMesh
pLoadModelFromMesh LoadModelFromMesh;
Undocumented in source.
MeshBinormals
pMeshBinormals MeshBinormals;
Undocumented in source.
MeshBoundingBox
pMeshBoundingBox MeshBoundingBox;
Undocumented in source.
MeshTangents
pMeshTangents MeshTangents;
Undocumented in source.
SetMaterialTexture
pSetMaterialTexture SetMaterialTexture;
Undocumented in source.
SetModelMeshMaterial
pSetModelMeshMaterial SetModelMeshMaterial;
Undocumented in source.
UnloadMaterial
pUnloadMaterial UnloadMaterial;
Undocumented in source.
UnloadMesh
pUnloadMesh UnloadMesh;
Undocumented in source.
UnloadModel
pUnloadModel UnloadModel;
Undocumented in source.
UnloadModelAnimation
pUnloadModelAnimation UnloadModelAnimation;
Undocumented in source.
UpdateModelAnimation
pUpdateModelAnimation UpdateModelAnimation;
Undocumented in source.

Meta