From 3280fee8bcbb523063bd3400302579cac359574a Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Tue, 2 Jan 2024 14:09:09 +0100 Subject: [PATCH] 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: --- cogl/cogl/cogl-buffer-private.h | 10 ---------- cogl/cogl/cogl-buffer.h | 13 +++++++++++++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/cogl/cogl/cogl-buffer-private.h b/cogl/cogl/cogl-buffer-private.h index 446d9aaea..6d37368cb 100644 --- a/cogl/cogl/cogl-buffer-private.h +++ b/cogl/cogl/cogl-buffer-private.h @@ -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; diff --git a/cogl/cogl/cogl-buffer.h b/cogl/cogl/cogl-buffer.h index d12c69836..1acbf36bd 100644 --- a/cogl/cogl/cogl-buffer.h +++ b/cogl/cogl/cogl-buffer.h @@ -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