You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
42 lines
1.2 KiB
//========= Copyright Valve Corporation, All rights reserved. ============// |
|
// |
|
// Purpose: |
|
// |
|
// |
|
// $Workfile: $ |
|
// $Date: $ |
|
// $NoKeywords: $ |
|
//===========================================================================// |
|
#ifndef TF_RENDERTARGETS_H |
|
#define TF_RENDERTARGETS_H |
|
#ifdef _WIN32 |
|
#pragma once |
|
#endif |
|
|
|
#include "baseclientrendertargets.h" // Base class, with interfaces called by engine and inherited members to init common render targets |
|
#include "item_model_panel.h" |
|
|
|
// externs |
|
class IMaterialSystem; |
|
class IMaterialSystemHardwareConfig; |
|
|
|
class CTFRenderTargets : public CBaseClientRenderTargets |
|
{ |
|
// no networked vars |
|
DECLARE_CLASS_GAMEROOT( CTFRenderTargets, CBaseClientRenderTargets ); |
|
public: |
|
virtual void InitClientRenderTargets( IMaterialSystem* pMaterialSystem, IMaterialSystemHardwareConfig* pHardwareConfig ); |
|
virtual void ShutdownClientRenderTargets(); |
|
|
|
private: |
|
ITexture *CreateItemModelPanelTexture( const char *pszName, IMaterialSystem* pMaterialSystem, int iSize ); |
|
|
|
private: |
|
// Used for rendering item model panels. |
|
CUtlVector< CTextureReference > m_tfRenderTargets; |
|
}; |
|
|
|
extern CTFRenderTargets* g_pTFRenderTargets; |
|
|
|
|
|
#endif // TF_RENDERTARGETS_H
|