Difference between revisions of "Event: Script:OnRender"
From Nomad DB
(Created page with "In this context, rendering onto the screen is possible. This is the only legal place to call d3d Functions. {{WD2SH:ScriptEvent}} == Usage == <syntaxhighlight lang="lua"> On...") |
|||
Line 7: | Line 7: | ||
OnRender() | OnRender() | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | '''This callback is not executed every frame:''' It's executed at a much lower frame-rate than the game is running. | ||
== Related Pages == | == Related Pages == |
Revision as of 22:25, 2 August 2020
In this context, rendering onto the screen is possible. This is the only legal place to call d3d Functions.
Registration
This event is registered on the Script Table.
Usage
OnRender()
This callback is not executed every frame: It's executed at a much lower frame-rate than the game is running.