shaders using wayland time instead of stdtime
This commit is contained in:
parent
bb63b49155
commit
859025a4a3
3 changed files with 14 additions and 31 deletions
|
|
@ -1,3 +1,5 @@
|
|||
#include <stdint.h>
|
||||
|
||||
/// A normal window
|
||||
#define OUTPUT_WINDOW 0
|
||||
/// A desktop layer (wallpaper)
|
||||
|
|
@ -23,12 +25,13 @@ struct event {
|
|||
/// EVENT_DRAW
|
||||
struct {
|
||||
int width, height;
|
||||
uint32_t time;
|
||||
struct surface *surface;
|
||||
} draw;
|
||||
} data;
|
||||
};
|
||||
|
||||
void wayland_init(struct client_state *state, int output_type);
|
||||
struct client_state* wayland_init(int output_type);
|
||||
void commit(struct client_state *state);
|
||||
struct event wait_for_event(struct client_state *state);
|
||||
void swap_buffers(struct client_state *state, struct surface *surface);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue