Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gskvulkanrenderer.h
Go to the documentation of this file.
1/*
2 * Copyright © 2016 Benjamin Otte
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20#include <gdk/gdk.h>
21#include <gsk/gsk.h>
22
24
25#define GSK_TYPE_VULKAN_RENDERER (gsk_vulkan_renderer_get_type ())
26
27#define GSK_VULKAN_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSK_TYPE_VULKAN_RENDERER, GskVulkanRenderer))
28#define GSK_IS_VULKAN_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSK_TYPE_VULKAN_RENDERER))
29#define GSK_VULKAN_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GSK_TYPE_VULKAN_RENDERER, GskVulkanRendererClass))
30#define GSK_IS_VULKAN_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GSK_TYPE_VULKAN_RENDERER))
31#define GSK_VULKAN_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GSK_TYPE_VULKAN_RENDERER, GskVulkanRendererClass))
32
33/**
34 * GskVulkanRenderer:
35 *
36 * A GSK renderer that is using Vulkan.
37 *
38 * This renderer will fail to realize if Vulkan is not supported.
39 */
40typedef struct _GskVulkanRenderer GskVulkanRenderer;
41typedef struct _GskVulkanRendererClass GskVulkanRendererClass;
42
45
48
50
#define GDK_AVAILABLE_IN_ALL
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
struct _GskRenderer GskRenderer
Definition gsktypes.h:32
GDK_AVAILABLE_IN_ALL GskRenderer * gsk_vulkan_renderer_new(void)
struct _GskVulkanRenderer GskVulkanRenderer
GDK_AVAILABLE_IN_ALL GType gsk_vulkan_renderer_get_type(void) G_GNUC_CONST
struct _GskVulkanRendererClass GskVulkanRendererClass
gsize GType
Definition gtype.h:427