Difference between revisions of "ScriptHook: Rendering"
From Nomad DB
Line 1: | Line 1: | ||
With ScriptHook 1.2, it is possible to render custom shapes and text onto the screen. For this purpose, ScriptHook provides ''d3d'' functions which can be called from inside the [[Event: Script:OnRender|OnRender]] event from [[WD2 ScriptHook: Script|Scripts]]. | With ScriptHook 1.2, it is possible to render custom shapes and text onto the screen. For this purpose, ScriptHook provides ''d3d'' functions which can be called from inside the [[Event: Script:OnRender|OnRender]] event from [[WD2 ScriptHook: Script|Scripts]]. | ||
− | ==== Basic Functions ==== | + | ====Basic Functions==== |
− | * [[d3d.SetColor]] | + | *[[d3d.SetColor]] |
+ | *[[d3d.World2Screen]] | ||
− | === Text Rendering === | + | ===Text Rendering=== |
− | * [[d3d.SetFont]] | + | *[[d3d.SetFont]] |
− | * [[d3d.DrawText]] | + | *[[d3d.DrawText]] |
− | * [[d3d.MeasureText]] | + | *[[d3d.MeasureText]] |
− | ==== Shapes ==== | + | ====Shapes==== |
− | * [[d3d.DrawRect]] | + | *[[d3d.DrawRect]] |
− | ==== Related Pages ==== | + | ====Related Pages==== |
− | * [[Event: Script:OnRender]] | + | *[[Event: Script:OnRender]] |
[[Category:WD2 ScriptHook Lua]] | [[Category:WD2 ScriptHook Lua]] | ||
[[Category:WD2 ScriptHook]] | [[Category:WD2 ScriptHook]] |