From 9181fdf5c2265fcef18f7e8d9ce5df0f35e47b47 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Tue, 10 Dec 2024 08:58:24 +0100 Subject: [PATCH] cogl: Don't expose FramebufferBits Fixes 34f4b8064fb32da792e69cebb911c394ab1eb8b7 Part-of: --- cogl/cogl/cogl-framebuffer-driver.h | 10 ++++++++++ cogl/cogl/cogl-framebuffer-private.h | 10 ---------- cogl/cogl/cogl-types.h | 1 - 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/cogl/cogl/cogl-framebuffer-driver.h b/cogl/cogl/cogl-framebuffer-driver.h index 904847332..242654c71 100644 --- a/cogl/cogl/cogl-framebuffer-driver.h +++ b/cogl/cogl/cogl-framebuffer-driver.h @@ -30,6 +30,16 @@ #include "cogl/cogl-attribute-private.h" #include "cogl/cogl-framebuffer.h" +typedef struct _CoglFramebufferBits +{ + int red; + int blue; + int green; + int alpha; + int depth; + int stencil; +} CoglFramebufferBits; + #define COGL_TYPE_FRAMEBUFFER_DRIVER (cogl_framebuffer_driver_get_type ()) G_DECLARE_DERIVABLE_TYPE (CoglFramebufferDriver, cogl_framebuffer_driver, diff --git a/cogl/cogl/cogl-framebuffer-private.h b/cogl/cogl/cogl-framebuffer-private.h index 5cc1e6716..37c13f768 100644 --- a/cogl/cogl/cogl-framebuffer-private.h +++ b/cogl/cogl/cogl-framebuffer-private.h @@ -94,16 +94,6 @@ typedef enum COGL_READ_PIXELS_NO_FLIP = 1L << 30 } CoglPrivateReadPixelsFlags; -typedef struct _CoglFramebufferBits -{ - int red; - int blue; - int green; - int alpha; - int depth; - int stencil; -} CoglFramebufferBits; - gboolean cogl_framebuffer_is_allocated (CoglFramebuffer *framebuffer); diff --git a/cogl/cogl/cogl-types.h b/cogl/cogl/cogl-types.h index 1c2b47293..2dc651588 100644 --- a/cogl/cogl/cogl-types.h +++ b/cogl/cogl/cogl-types.h @@ -332,7 +332,6 @@ typedef struct _CoglBitmap CoglBitmap; typedef struct _CoglBuffer CoglBuffer; typedef struct _CoglContext CoglContext; typedef struct _CoglDisplay CoglDisplay; -typedef struct _CoglFramebufferBits CoglFramebufferBits; typedef struct _CoglFrameInfo CoglFrameInfo; typedef struct _CoglIndices CoglIndices; typedef struct _CoglParamSpecColor CoglParamSpecColor;