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 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]].
+
{{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:WD2 ScriptHook Lua]]
+
[[Category:ScriptHook Lua]]
[[Category:WD2 ScriptHook]]
+
[[Category:ScriptHook]]

Latest revision as of 20:42, 19 December 2021

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 OnRender event from Scripts.

Basic Functions

Text Rendering

Shapes

Related Pages