Difference between revisions of "ScriptHook: Rendering"
From Nomad DB
m (Administrator moved page WD2 ScriptHook: Rendering to ScriptHook: Rendering) |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | With ScriptHook | + | {{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]]. | ||
====Basic Functions==== | ====Basic Functions==== | ||
Line 5: | Line 6: | ||
*[[d3d.SetColor]] | *[[d3d.SetColor]] | ||
*[[d3d.World2Screen]] | *[[d3d.World2Screen]] | ||
+ | *[[d3d.GetViewportSize]] | ||
===Text Rendering=== | ===Text Rendering=== | ||
Line 19: | Line 21: | ||
*[[Event: Script:OnRender]] | *[[Event: Script:OnRender]] | ||
+ | *[[Event: Script:OnRenderImGui]] | ||
− | [[Category: | + | [[Category:ScriptHook Lua]] |
− | [[Category: | + | [[Category:ScriptHook]] |