File: common.h

package info (click to toggle)
gulkan 0.15.1-2.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,248 kB
  • sloc: ansic: 8,108; xml: 67; makefile: 9
file content (27 lines) | stat: -rw-r--r-- 529 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * gulkan
 * Copyright 2020 Collabora Ltd.
 * Author: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
 * SPDX-License-Identifier: MIT
 */

#ifndef COMMON_H_
#define COMMON_H_

#include <gulkan.h>

#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>

GulkanClient*
gulkan_client_new_glfw (void);

GLFWmonitor*
glfw_window_get_current_monitor (GLFWwindow *window);

void
glfw_toggle_fullscreen (GLFWwindow *window,
                        VkOffset2D *position,
                        VkExtent2D *size);

#endif /* COMMON_H_ */