DrawPoint3D: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Draws a point in 3d space.}} | ||
{{FuncSyntax|DrawPoint3D(x, y, z [, PointSize, bForeground])}} | {{FuncSyntax|DrawPoint3D(x, y, z [, PointSize, bForeground])}} | ||
Line 12: | Line 12: | ||
{{FuncParamOptional|bForeground|'''true''' to draw before geometry, '''false''' to draw in world space.}} | {{FuncParamOptional|bForeground|'''true''' to draw before geometry, '''false''' to draw in world space.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns nothing.}} | ||
== Example == | == Example == | ||
Example usage can be found in the map editor script package: | |||
https://github.com/BlueMountainsIO/OnsetLuaScripts/blob/6f45ad9607e30c97f4f1d58443d808da632d4d91/mapeditor/client/editor.lua#L162 | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[DrawText]] | |||
* [[SetDrawColor]] | |||
* [[SetTextDrawScale]] | |||
* [[GetTextSize]] | |||
* [[DrawLine]] | |||
* [[DrawLine3D]] | |||
* [[DrawPoint3D]] | |||
* [[DrawCircle3D]] | |||
* [[DrawBox]] | |||
* [[DrawRect]] | |||
* [[DrawTexture]] | |||
* [[DrawTextureEx]] | |||
* [[DrawMaterial]] |
Latest revision as of 20:25, 30 August 2020
Description
Draws a point in 3d space.
Syntax
DrawPoint3D(x, y, z [, PointSize, bForeground])
Parameters
- x
World X location - y
World Y location - z
World Z location - PointSize (optional)
Size of the point, defaults to 1.0 - bForeground (optional)
true to draw before geometry, false to draw in world space.
Return Value
- Returns nothing.
Example
Example usage can be found in the map editor script package: https://github.com/BlueMountainsIO/OnsetLuaScripts/blob/6f45ad9607e30c97f4f1d58443d808da632d4d91/mapeditor/client/editor.lua#L162