Skip to content

Instantly share code, notes, and snippets.

@Lavesson
Last active December 15, 2015 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lavesson/5209530 to your computer and use it in GitHub Desktop.
Save Lavesson/5209530 to your computer and use it in GitHub Desktop.
Blogpost C++ demo
class Device
{
public:
Device();
~Device();
VertexBuffer* CreateVertexBuffer(const VertexDescription& desc);
// ...
};
class VertexBuffer
{
public:
virtual ~VertexBuffer() {};
int VertexCount() const = 0;
void Lock() = 0;
void Unlock() = 0;
// ...
};
class Mesh
{
public:
Mesh(VertexBuffer* const buffer);
~Mesh();
// ...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment