Difference between revisions of "Event: Script:OnRender"
From Nomad DB
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Page_WD2}}{{Page_MDE}}{{Page_WDL}} | ||
In this context, rendering onto the screen is possible. This is the only legal place to call d3d Functions. | In this context, rendering onto the screen is possible. This is the only legal place to call d3d Functions. | ||
Line 8: | Line 9: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | '''This callback | + | '''This callback may not be executed every frame:''' Depending on the implementation, it's executed at a much lower frame-rate than the game is running at. |
== Related Pages == | == Related Pages == | ||
− | * [[ | + | * [[ScriptHook: Rendering]] |
[[Category:WD2 Script Events]] | [[Category:WD2 Script Events]] | ||
+ | [[Category:WDL Script Events]] | ||
+ | [[Category:MDE Script Events]] |
Latest revision as of 15:59, 25 September 2021
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 may not be executed every frame: Depending on the implementation, it's executed at a much lower frame-rate than the game is running at.