Skip to content

raylib.DrawPoint3D

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw a point in 3D space, actually a small line WARNING: OpenGL ES 2.0 does not support point mode drawing

Parameters

Parameter Default Value Note
position
color WHITE

Return value

None.

Notes

Example

camera = {position:[0,5,10], target:[0,0,0], up:[0,1,0], fovy:45, projection:raylib.CAMERA_PERSPECTIVE}
raylib.InitWindow 800, 600, "DrawPoint3D"
while not raylib.WindowShouldClose
    raylib.BeginDrawing
    raylib.ClearBackground raylib.RAYWHITE
    raylib.BeginMode3D camera
    raylib.DrawGrid 10, 1.0
    raylib.DrawPoint3D [0,1,0], raylib.RED
    raylib.EndMode3D
    raylib.EndDrawing
end while
raylib.CloseWindow

Clone this wiki locally