Difference between revisions of "ScriptHook: Rendering"
From Nomad DB
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{Page_WD2}} {{Page_WDL}} {{Page_MDE}} |
− | |||
With ScriptHook, 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, 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]]. | ||
Line 7: | Line 6: | ||
*[[d3d.SetColor]] | *[[d3d.SetColor]] | ||
*[[d3d.World2Screen]] | *[[d3d.World2Screen]] | ||
+ | *[[d3d.GetViewportSize]] | ||
===Text Rendering=== | ===Text Rendering=== | ||
Line 21: | Line 21: | ||
*[[Event: Script:OnRender]] | *[[Event: Script:OnRender]] | ||
+ | *[[Event: Script:OnRenderImGui]] | ||
[[Category:ScriptHook Lua]] | [[Category:ScriptHook Lua]] | ||
[[Category:ScriptHook]] | [[Category:ScriptHook]] |