pureikyubu/SRC/GX/GXBackend.h
2020-08-26 23:06:06 +03:00

25 lines
527 B
C++

// An abstract class that defines what the graphic backend should be able to do
#pragma once
namespace GX
{
class GXCore; // Forward reference to parent class
class Backend
{
public:
Backend(GXCore* parent);
virtual ~Backend();
virtual void PassCPLoadReg(CPRegister id) = 0;
virtual void PassBPLoadReg(BPRegister id) = 0;
virtual void PassXFLoadReg(int startId, int count) = 0;
virtual void DrawBegin(Primitive prim) = 0;
virtual void DrawEnd() = 0;
virtual void ProcessVertex(Vertex& v) = 0;
};
}