GulkanWindow

GulkanWindow

Functions

Types and Values

Object Hierarchy

    GObject
    ├── GulkanContext
    ╰── GulkanWindow

Includes

#include <gulkan.h>

Description

Functions

gulkan_window_new ()

GulkanWindow *
gulkan_window_new (VkExtent2D extent,
                   const char *title);

gulkan_window_create_surface ()

VkResult
gulkan_window_create_surface (GulkanWindow *self,
                              VkInstance instance,
                              VkSurfaceKHR *surface);

gulkan_window_required_extensions ()

GSList *
gulkan_window_required_extensions (GulkanWindow *self);

gulkan_window_poll_events ()

void
gulkan_window_poll_events (GulkanWindow *self);

gulkan_window_toggle_fullscreen ()

void
gulkan_window_toggle_fullscreen (GulkanWindow *self);

gulkan_window_has_support ()

gboolean
gulkan_window_has_support (GulkanWindow *self,
                           GulkanContext *context);

gulkan_window_can_run ()

gboolean
gulkan_window_can_run (GulkanWindow *self);

Types and Values

GULKAN_TYPE_WINDOW

#define GULKAN_TYPE_WINDOW gulkan_window_get_type ()

struct GulkanWindowClass

struct GulkanWindowClass {
  GObjectClass parent;

  gboolean (*initialize) (GulkanWindow *self,
                          VkExtent2D    extent,
                          const char   *title);

  VkResult (*create_surface) (GulkanWindow *self,
                              VkInstance    instance,
                              VkSurfaceKHR *surface);

  GSList *(*required_extensions) (void);

  void (*poll_events) (GulkanWindow *self);

  void (*toggle_fullscreen) (GulkanWindow *self);

  gboolean (*has_support) (GulkanWindow *self, GulkanContext *context);

  gboolean (*can_run) (GulkanWindow *self);
};

GulkanContext

typedef struct _GulkanContext GulkanContext;

GulkanWindow

typedef struct _GulkanWindow GulkanWindow;