gitlab-ci: enable sanitizers for the meson builds
[mesa-waffle.git] / src / waffle / wgl / wgl_config.h
blob23bd92e8b1a2804665206ca7bf1d165f015f7d5b
1 // SPDX-FileCopyrightText: Copyright 2014 Emil Velikov
2 // SPDX-License-Identifier: BSD-2-Clause
4 #pragma once
6 #include <stdbool.h>
7 #include <stdint.h>
8 #include <GL/gl.h>
9 #include <GL/wglext.h>
11 #include "wcore_config.h"
12 #include "wcore_util.h"
14 struct wcore_config_attrs;
15 struct wcore_platform;
16 struct wgl_window;
18 struct wgl_config {
19 struct wcore_config wcore;
20 PIXELFORMATDESCRIPTOR pfd;
21 int pixel_format;
23 // XXX: Currently we manage only one window per config.
24 struct wgl_window *window;
27 static inline struct wgl_config*
28 wgl_config(struct wcore_config *wcore)
30 return (struct wgl_config *)wcore;
33 struct wcore_config*
34 wgl_config_choose(struct wcore_platform *wc_plat,
35 struct wcore_display *wc_dpy,
36 const struct wcore_config_attrs *attrs);
38 bool
39 wgl_config_destroy(struct wcore_config *wc_self);