improved lots of stuff

This commit is contained in:
2025-08-06 00:12:36 +03:00
parent 817ed344b4
commit 5635cd1d69
27 changed files with 348 additions and 38 deletions

View File

@@ -1,6 +1,7 @@
#ifndef MATERIAL_SYSTEM_H
#define MATERIAL_SYSTEM_H
#include "iappsystem.h"
#include "tier0/platform.h"
@@ -62,9 +63,10 @@ abstract_class IImage : public IRenderingObject
public:
virtual void BlitTo( IImage *pImage );
};
abstract_class IRenderContext
abstract_class IRenderContext: public IAppSystem
{
public:
virtual IVertexBuffer *CreateVertexBuffer( uint32_t nSize ) = 0;
virtual IIndexBuffer *CreateIndexBuffer( uint32_t nSize ) = 0;
virtual IImage *CreateRenderTarget( uint32_t x, uint32_t y, EImageFormat eFormat, EMultisampleType eMultisampleType );
@@ -74,9 +76,13 @@ public:
virtual void DestroyImage( IImage *pImage );
};
abstract_class IMaterialSystem
abstract_class IMaterialSystem: public IAppSystem
{
public:
virtual void Init();
virtual void Frame( float fTime );
virtual void Shutdown();
IRenderContext *GetRenderContext();
};