GM/PostRender

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Added link to LoweChaser's profile)
(Undo: We already have an example over at render.Capture)
 
Line 4: Line 4:
 
|Realm=Client
 
|Realm=Client
 
|Predicted=No
 
|Predicted=No
}}
 
{{Example
 
|Description=Screengrab template after new [https://gmod.facepunch.com/blog/february-2018-update/ update] given by [https://gmod.facepunch.com/u/iyff/LoweChaser/ LoweChaser] in [https://gmod.facepunch.com/f/gmoddev/rvdt/Need-Help-Fixing-Screengrab/1/#postkocfz this] post on the forums.
 
|Code=-- new "StartScreengrab" callback
 
net.Receive("StartScreengrab", function()
 
  shouldScreengrab = true
 
end)
 
 
hook.Add("PostRender", "Screengrab", function()
 
  if shouldScreengrab then
 
    -- old "StartScreengrab" callback call
 
    shouldScreengrab = false
 
  end
 
end)
 
 
}}
 
}}

Latest revision as of 11:35, 1 March 2018

 GM:PostRender( )

Description

Called after the frame has been rendered.

Personal tools
Navigation