mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Make internal vertex attribute code less OpenGL-specific.
--HG-- branch : minor
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user