mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 21:02:14 +00:00
cogl: Make BufferBindTarget public
It would be used in the next commit to generate a gtype and be used for Buffer::default-target Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3357>
This commit is contained in:
parent
63a558950b
commit
3280fee8bc
@ -50,16 +50,6 @@ typedef enum _CoglBufferFlags
|
||||
COGL_BUFFER_FLAG_MAPPED_FALLBACK = 1UL << 2
|
||||
} CoglBufferFlags;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
COGL_BUFFER_BIND_TARGET_PIXEL_PACK,
|
||||
COGL_BUFFER_BIND_TARGET_PIXEL_UNPACK,
|
||||
COGL_BUFFER_BIND_TARGET_ATTRIBUTE_BUFFER,
|
||||
COGL_BUFFER_BIND_TARGET_INDEX_BUFFER,
|
||||
|
||||
COGL_BUFFER_BIND_TARGET_COUNT
|
||||
} CoglBufferBindTarget;
|
||||
|
||||
struct _CoglBuffer
|
||||
{
|
||||
GObject parent_instance;
|
||||
|
@ -185,6 +185,19 @@ typedef enum /*< prefix=COGL_BUFFER_MAP_HINT >*/
|
||||
COGL_BUFFER_MAP_HINT_DISCARD_RANGE = 1 << 1
|
||||
} CoglBufferMapHint;
|
||||
|
||||
/**
|
||||
* CoglBufferBindTarget:
|
||||
*/
|
||||
typedef enum /*< prefix=COGL_BUFFER_BIND_TARGET >*/
|
||||
{
|
||||
COGL_BUFFER_BIND_TARGET_PIXEL_PACK,
|
||||
COGL_BUFFER_BIND_TARGET_PIXEL_UNPACK,
|
||||
COGL_BUFFER_BIND_TARGET_ATTRIBUTE_BUFFER,
|
||||
COGL_BUFFER_BIND_TARGET_INDEX_BUFFER,
|
||||
|
||||
COGL_BUFFER_BIND_TARGET_COUNT
|
||||
} CoglBufferBindTarget;
|
||||
|
||||
/**
|
||||
* cogl_buffer_map:
|
||||
* @buffer: a buffer object
|
||||
|
Loading…
Reference in New Issue
Block a user