blob: bd79a80d1a74a25dd7a7fb6d99d2a2189d20f16c (
plain)
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
|
#ifndef SURFACE_H
#define SURFACE_H
#include <stdbool.h>
#include <stdint.h>
#include "egl.h"
#include "gl.h"
struct surface {
struct egl egl;
struct gl gl;
struct wl_surface *wl_surface;
int32_t width;
int32_t height;
bool redraw;
};
void surface_initialise(
struct surface *surface,
struct wl_display *wl_display,
struct image *texture);
void surface_draw(
struct surface *surface,
struct color *color,
struct image *texture);
#endif /* SURFACE_H */
|