summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-05-26 19:23:18 +0200
committerBenjamin Otte <otte@redhat.com>2010-06-07 13:37:47 +0200
commita05f062c806ac014d0daffa1d74bdb0dd90a8a26 (patch)
treec1d7adf2a739162fed6901c547064728596660be
parent85d4c6c55b85c52d8f86247f00659e37354abd49 (diff)
gl: Move struct definitions in header
-rw-r--r--src/cairo-gl-private.h66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/cairo-gl-private.h b/src/cairo-gl-private.h
index bc916d30..434b1b1f 100644
--- a/src/cairo-gl-private.h
+++ b/src/cairo-gl-private.h
@@ -123,6 +123,39 @@ typedef enum cairo_gl_var_type {
#define cairo_gl_var_type_hash(src,mask,dest) ((mask) << 2 | (src << 1) | (dest))
#define CAIRO_GL_VAR_TYPE_MAX ((CAIRO_GL_VAR_COVERAGE << 2) | (CAIRO_GL_VAR_TEXCOORDS << 1) | CAIRO_GL_VAR_TEXCOORDS)
+/* This union structure describes a potential source or mask operand to the
+ * compositing equation.
+ */
+typedef struct cairo_gl_operand {
+ cairo_gl_operand_type_t type;
+ union {
+ struct {
+ GLuint tex;
+ cairo_gl_surface_t *surface;
+ cairo_surface_attributes_t attributes;
+ } texture;
+ struct {
+ GLfloat color[4];
+ } constant;
+ struct {
+ GLuint tex;
+ cairo_matrix_t m;
+ float segment_x;
+ float segment_y;
+ } linear;
+ struct {
+ GLuint tex;
+ cairo_matrix_t m;
+ float circle_1_x;
+ float circle_1_y;
+ float radius_0;
+ float radius_1;
+ } radial;
+ };
+
+ const cairo_pattern_t *pattern;
+} cairo_gl_operand_t;
+
typedef struct _cairo_gl_context {
cairo_device_t base;
@@ -159,39 +192,6 @@ typedef struct _cairo_gl_context {
void (*destroy) (void *ctx);
} cairo_gl_context_t;
-/* This union structure describes a potential source or mask operand to the
- * compositing equation.
- */
-typedef struct cairo_gl_operand {
- cairo_gl_operand_type_t type;
- union {
- struct {
- GLuint tex;
- cairo_gl_surface_t *surface;
- cairo_surface_attributes_t attributes;
- } texture;
- struct {
- GLfloat color[4];
- } constant;
- struct {
- GLuint tex;
- cairo_matrix_t m;
- float segment_x;
- float segment_y;
- } linear;
- struct {
- GLuint tex;
- cairo_matrix_t m;
- float circle_1_x;
- float circle_1_y;
- float radius_0;
- float radius_1;
- } radial;
- };
-
- const cairo_pattern_t *pattern;
-} cairo_gl_operand_t;
-
typedef struct _cairo_gl_composite {
cairo_gl_surface_t *dst;
cairo_operator_t op;