Garry's Mod Wiki

GM:PreDrawOpaqueRenderables

boolean GM:PreDrawOpaqueRenderables( boolean isDrawingDepth, boolean isDrawSkybox )

Description

Called before all opaque entities are drawn.

See also GM:PreDrawTranslucentRenderables and GM:PostDrawOpaqueRenderables.

This is a rendering hook which provides a 3d rendering context.

Arguments

1 boolean isDrawingDepth
Whether the current draw is writing depth.
2 boolean isDrawSkybox
Whether the current draw is drawing the skybox.

Returns

1 boolean
Return true to prevent opaque renderables from drawing.

Page Links


Special Pages


Wikis

?

Render Time: 36ms

DB GetPage 3
Generate Html 9
SaveChanges (1) 10
Render Body 0
Render Sidebar 11