cogl/primitive: Mark as a final type
Also removes a function declaration. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4100>
This commit is contained in:
parent
dbf1edefdf
commit
30ed9c05de
@ -44,7 +44,6 @@
|
|||||||
#include "cogl/cogl-primitives-private.h"
|
#include "cogl/cogl-primitives-private.h"
|
||||||
#include "cogl/cogl-private.h"
|
#include "cogl/cogl-private.h"
|
||||||
#include "cogl/cogl-attribute-private.h"
|
#include "cogl/cogl-attribute-private.h"
|
||||||
#include "cogl/cogl-primitive-private.h"
|
|
||||||
#include "cogl/cogl-offscreen.h"
|
#include "cogl/cogl-offscreen.h"
|
||||||
#include "cogl/cogl-matrix-stack.h"
|
#include "cogl/cogl-matrix-stack.h"
|
||||||
#include "mtk/mtk.h"
|
#include "mtk/mtk.h"
|
||||||
|
@ -43,7 +43,6 @@
|
|||||||
#include "cogl/cogl-clip-stack.h"
|
#include "cogl/cogl-clip-stack.h"
|
||||||
#include "cogl/cogl-journal-private.h"
|
#include "cogl/cogl-journal-private.h"
|
||||||
#include "cogl/cogl-pipeline-state-private.h"
|
#include "cogl/cogl-pipeline-state-private.h"
|
||||||
#include "cogl/cogl-primitive-private.h"
|
|
||||||
#include "cogl/cogl-offscreen.h"
|
#include "cogl/cogl-offscreen.h"
|
||||||
#include "cogl/cogl-private.h"
|
#include "cogl/cogl-private.h"
|
||||||
#include "cogl/cogl-primitives-private.h"
|
#include "cogl/cogl-primitives-private.h"
|
||||||
|
@ -1,57 +0,0 @@
|
|||||||
/*
|
|
||||||
* Cogl
|
|
||||||
*
|
|
||||||
* A Low Level GPU Graphics and Utilities API
|
|
||||||
*
|
|
||||||
* Copyright (C) 2010 Intel Corporation.
|
|
||||||
*
|
|
||||||
* Permission is hereby granted, free of charge, to any person
|
|
||||||
* obtaining a copy of this software and associated documentation
|
|
||||||
* files (the "Software"), to deal in the Software without
|
|
||||||
* restriction, including without limitation the rights to use, copy,
|
|
||||||
* modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
||||||
* of the Software, and to permit persons to whom the Software is
|
|
||||||
* furnished to do so, subject to the following conditions:
|
|
||||||
*
|
|
||||||
* The above copyright notice and this permission notice shall be
|
|
||||||
* included in all copies or substantial portions of the Software.
|
|
||||||
*
|
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
|
||||||
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
||||||
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
* SOFTWARE.
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* Authors:
|
|
||||||
* Robert Bragg <robert@linux.intel.com>
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "cogl/cogl-attribute-buffer-private.h"
|
|
||||||
#include "cogl/cogl-attribute-private.h"
|
|
||||||
#include "cogl/cogl-framebuffer.h"
|
|
||||||
|
|
||||||
struct _CoglPrimitive
|
|
||||||
{
|
|
||||||
GObject parent_instance;
|
|
||||||
|
|
||||||
CoglIndices *indices;
|
|
||||||
CoglVerticesMode mode;
|
|
||||||
int first_vertex;
|
|
||||||
int n_vertices;
|
|
||||||
|
|
||||||
GPtrArray *attributes;
|
|
||||||
int n_attributes;
|
|
||||||
};
|
|
||||||
|
|
||||||
void
|
|
||||||
_cogl_primitive_draw (CoglPrimitive *primitive,
|
|
||||||
CoglFramebuffer *framebuffer,
|
|
||||||
CoglPipeline *pipeline,
|
|
||||||
CoglDrawFlags flags);
|
|
@ -35,14 +35,26 @@
|
|||||||
|
|
||||||
#include "cogl/cogl-util.h"
|
#include "cogl/cogl-util.h"
|
||||||
#include "cogl/cogl-primitive.h"
|
#include "cogl/cogl-primitive.h"
|
||||||
#include "cogl/cogl-primitive-private.h"
|
|
||||||
#include "cogl/cogl-attribute-private.h"
|
#include "cogl/cogl-attribute-private.h"
|
||||||
#include "cogl/cogl-framebuffer-private.h"
|
#include "cogl/cogl-framebuffer-private.h"
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
G_DEFINE_TYPE (CoglPrimitive, cogl_primitive, G_TYPE_OBJECT);
|
typedef struct _CoglPrimitive
|
||||||
|
{
|
||||||
|
GObject parent_instance;
|
||||||
|
|
||||||
|
CoglIndices *indices;
|
||||||
|
CoglVerticesMode mode;
|
||||||
|
int first_vertex;
|
||||||
|
int n_vertices;
|
||||||
|
|
||||||
|
GPtrArray *attributes;
|
||||||
|
int n_attributes;
|
||||||
|
} CoglPrimitive;
|
||||||
|
|
||||||
|
G_DEFINE_FINAL_TYPE (CoglPrimitive, cogl_primitive, G_TYPE_OBJECT);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
cogl_primitive_dispose (GObject *object)
|
cogl_primitive_dispose (GObject *object)
|
||||||
|
@ -38,7 +38,6 @@
|
|||||||
#include "cogl/cogl-context-private.h"
|
#include "cogl/cogl-context-private.h"
|
||||||
#include "cogl/cogl-graphene.h"
|
#include "cogl/cogl-graphene.h"
|
||||||
#include "cogl/cogl-primitives-private.h"
|
#include "cogl/cogl-primitives-private.h"
|
||||||
#include "cogl/cogl-primitive-private.h"
|
|
||||||
#include "cogl/driver/gl/cogl-util-gl-private.h"
|
#include "cogl/driver/gl/cogl-util-gl-private.h"
|
||||||
#include "cogl/driver/gl/cogl-pipeline-opengl-private.h"
|
#include "cogl/driver/gl/cogl-pipeline-opengl-private.h"
|
||||||
#include "cogl/driver/gl/cogl-clip-stack-gl-private.h"
|
#include "cogl/driver/gl/cogl-clip-stack-gl-private.h"
|
||||||
|
@ -238,7 +238,6 @@ cogl_sources = [
|
|||||||
'cogl-pixel-format.c',
|
'cogl-pixel-format.c',
|
||||||
'cogl-point-in-poly-private.h',
|
'cogl-point-in-poly-private.h',
|
||||||
'cogl-point-in-poly.c',
|
'cogl-point-in-poly.c',
|
||||||
'cogl-primitive-private.h',
|
|
||||||
'cogl-primitive.c',
|
'cogl-primitive.c',
|
||||||
'cogl-primitives-private.h',
|
'cogl-primitives-private.h',
|
||||||
'cogl-primitives.c',
|
'cogl-primitives.c',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user