1
0
Fork 0

GfxDriver: add getName() getVersion() and getCardName()

This commit is contained in:
Henrik Hautakoski 2023-05-01 17:46:37 +02:00
parent 43354fc9b4
commit 5c5d9fe09a
3 changed files with 33 additions and 9 deletions

View file

@ -14,8 +14,16 @@ public:
};
public:
// Get the name of the driver.
virtual std::string getName() const = 0;
// Get the version of the driver
virtual std::string getVersion() const = 0;
virtual std::string getVendor() const = 0;
virtual std::string getCardName() const = 0;
virtual void setViewport(int x, int y, int width, int height) = 0;
virtual void setClearColor(float r, float g, float b, float a) = 0;
@ -25,10 +33,10 @@ public:
virtual void clearColorBuffer() = 0;
// Resources.
// CreateIndexBuffer()
// CreateVertexBuffer()
// Draw calls
};