Make internal vertex attribute code less OpenGL-specific.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-10-25 23:12:39 -03:00
parent b0c5bf2156
commit 15cc540e4c
28 changed files with 369 additions and 230 deletions
+2 -6
View File
@@ -24,6 +24,7 @@
#include "common/config.h"
#include "common/int.h"
#include "vertex.h"
#include "Resource.h"
// C
#include <stddef.h>
@@ -38,7 +39,7 @@ class Graphics;
/**
* A block of GPU-owned memory. Currently meant for internal use.
**/
class Buffer
class Buffer : public Resource
{
public:
@@ -91,11 +92,6 @@ public:
**/
virtual void setMappedRangeModified(size_t offset, size_t size) = 0;
/**
* Gets the backend-specific handle for this Buffer.
**/
virtual ptrdiff_t getHandle() const = 0;
/**
* Fill a portion of the buffer with data and marks the range as modified.
*