mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
First version of the SOurce SDK 2013
This commit is contained in:
49
public/shaderlib/ShaderDLL.h
Normal file
49
public/shaderlib/ShaderDLL.h
Normal file
@ -0,0 +1,49 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
// $Header: $
|
||||
// $NoKeywords: $
|
||||
//=============================================================================//
|
||||
|
||||
#ifndef SHADERDLL_H
|
||||
#define SHADERDLL_H
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include <materialsystem/IShader.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// forward declarations
|
||||
//-----------------------------------------------------------------------------
|
||||
class IShader;
|
||||
class ICvar;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// The standard implementation of CShaderDLL
|
||||
//-----------------------------------------------------------------------------
|
||||
class IShaderDLL
|
||||
{
|
||||
public:
|
||||
// Adds a shader to the list of shaders
|
||||
virtual void InsertShader( IShader *pShader ) = 0;
|
||||
};
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Singleton interface
|
||||
//-----------------------------------------------------------------------------
|
||||
IShaderDLL *GetShaderDLL();
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Singleton interface for CVars
|
||||
//-----------------------------------------------------------------------------
|
||||
ICvar *GetCVar();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // SHADERDLL_H
|
Reference in New Issue
Block a user