forked from ValveSoftware/source-sdk-2013
-
Notifications
You must be signed in to change notification settings - Fork 165
Expand file tree
/
Copy pathrendertargets.cpp
More file actions
30 lines (26 loc) · 1.31 KB
/
rendertargets.cpp
File metadata and controls
30 lines (26 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//========= Mapbase - https://github.com/mapbase-source/source-sdk-2013 ============//
//
// Purpose: Implements IClientRenderTargets
//
// Author: Nooodles
//
//=============================================================================//
#include "cbase.h"
#include "rendertargets.h"
// shamelessly copied from TF2's rendertargets impl
ConVar hl2_water_resolution( "hl2_water_resolution", "1024", FCVAR_NONE, "Needs to be set at game launch time to override." );
ConVar hl2_monitor_resolution( "hl2_monitor_resolution", "1024", FCVAR_NONE, "Needs to be set at game launch time to override." );
void CRenderTargets::InitClientRenderTargets( IMaterialSystem* pMaterialSystem, IMaterialSystemHardwareConfig* pHardwareConfig )
{
BaseClass::InitClientRenderTargets( pMaterialSystem, pHardwareConfig,
hl2_water_resolution.GetInt(), hl2_monitor_resolution.GetInt() );
}
//-----------------------------------------------------------------------------
// Purpose: Shutdown client render targets. This gets called during shutdown in the engine
// Input : -
//-----------------------------------------------------------------------------
void CRenderTargets::ShutdownClientRenderTargets()
{
BaseClass::ShutdownClientRenderTargets();
}
EXPOSE_INTERFACE( CRenderTargets, IClientRenderTargets, CLIENTRENDERTARGETS_INTERFACE_VERSION );