started working on ini parser
This commit is contained in:
41
materialsystem/materialsystem.cpp
Normal file
41
materialsystem/materialsystem.cpp
Normal file
@@ -0,0 +1,41 @@
|
||||
#include "materialsystem/materialsystem.h"
|
||||
|
||||
class CMaterialSystem: public IMaterialSystem
|
||||
{
|
||||
public:
|
||||
virtual void Init() override;
|
||||
virtual void Frame( float fTime ) override;
|
||||
virtual void Shutdown() override;
|
||||
|
||||
virtual IRenderContext *GetRenderContext( void ) override;
|
||||
};
|
||||
|
||||
void CMaterialSystem::Init()
|
||||
{
|
||||
GetRenderContext()->Init();
|
||||
}
|
||||
|
||||
void CMaterialSystem::Frame( float fTime )
|
||||
{
|
||||
GetRenderContext()->Frame(fTime);
|
||||
}
|
||||
|
||||
void CMaterialSystem::Shutdown()
|
||||
{
|
||||
GetRenderContext()->Shutdown();
|
||||
}
|
||||
|
||||
extern IRenderContext *g_pVkRenderContext;
|
||||
|
||||
|
||||
IRenderContext *CMaterialSystem::GetRenderContext( void )
|
||||
{
|
||||
return g_pVkRenderContext;
|
||||
}
|
||||
|
||||
|
||||
IMaterialSystem *Materials( void )
|
||||
{
|
||||
static CMaterialSystem s_materialSystem;
|
||||
return &s_materialSystem;
|
||||
}
|
||||
Reference in New Issue
Block a user