отдельный поток для физики и изменение цвета

This commit is contained in:
2025-11-17 14:38:03 +03:00
parent de18bd8252
commit 8dd2aa19ad
5 changed files with 99 additions and 22 deletions

View File

@@ -1,6 +1,7 @@
#ifndef WAYLAND_WINDOW_H
#define WAYLAND_WINDOW_H
#include <pthread.h>
#include <wayland-client.h>
#include "figure.h"
@@ -8,8 +9,8 @@ struct window_draw_info {
uint8_t *data;
int32_t width;
int32_t height;
uint8_t color;
struct figure_info figure;
pthread_mutex_t figure_mutex;
};
/* Данные одного Wayland-окна (одна поверхность) */