Difference between revisions of "ScriptHook: Rendering"
From Nomad DB
(Created page with "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 t...") |
|||
(8 intermediate revisions by 3 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==== |
− | * [[d3d.SetColor]] | + | *[[d3d.SetColor]] |
+ | *[[d3d.World2Screen]] | ||
+ | *[[d3d.GetViewportSize]] | ||
− | === 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]] |
+ | *[[Event: Script:OnRenderImGui]] | ||
− | [[Category: | + | [[Category:ScriptHook Lua]] |
+ | [[Category:ScriptHook]] |