-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.DrawModelWiresEx
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Draw a model wires (with texture if set) with extended parameters
| Parameter | Default Value | Note |
|---|---|---|
| model | ||
| position | [0, 0, 0] | |
| rotationAxis | [0, 1, 0] | |
| rotationAngle | 0 | |
| scale | [1, 1, 1] | |
| tint | WHITE |
None.
camera = {position:[0,5,10], target:[0,0,0], up:[0,1,0], fovy:45, projection:raylib.CAMERA_PERSPECTIVE}
raylib.InitWindow 800, 600, "DrawModelWiresEx"
mesh = raylib.GenMeshCube(1, 1, 1)
model = raylib.LoadModelFromMesh(mesh)
while not raylib.WindowShouldClose
raylib.BeginDrawing
raylib.ClearBackground raylib.RAYWHITE
raylib.BeginMode3D camera
raylib.DrawGrid 10, 1.0
raylib.DrawModelWiresEx model, [0,0,0], [0,1,0], 45, [1,1,1], raylib.DARKGRAY
raylib.EndMode3D
raylib.EndDrawing
end while
raylib.UnloadModel model
raylib.CloseWindow