Commit Graph

17 Commits

Author SHA1 Message Date
0be889b758 Create wl_surface object and attach already created wl_buffer to it 2025-04-24 01:29:54 -07:00
spingus
aed1525c06 Separate methods of WlClient into multiple files for different wayland protocols
- WlMessage trait and impl for Vec moved to vec_utils.rs
- wl_shm_format, wl_shm_create_pool, and wl_shm_pool_create_buffer moved to wl_shm.rs
- wl_display_error, wl_display_get_registry, wl_registry_global, and wl_registry_bind moved to wl_registry.rs
- WlClient definition, WlClient::new, and WlClient.read_event moved to wl_client.rs
2025-04-23 16:41:33 -07:00
097a90c3dc Move WlClient::{new, read_event} from main.rs to wl_client.rs 2025-04-23 16:35:15 -07:00
eef2bfdc97 Move wl::{display, error}, wl_registry::{global, bind} from main.rs to wl_registry.rs 2025-04-23 16:25:21 -07:00
b6b3cefd2d Move format, create_pool, and create_buffer to wl_shm.rs 2025-04-23 13:20:08 -07:00
0d2db8f288 Move WlHeader trait and impl from main.rs to vec_utils.rs 2025-04-23 13:03:23 -07:00
2918fc9d30 Use object oriented WlClient instead of WlState 2025-04-22 18:32:35 -07:00
ad72c2855e Create wl_buffer 2025-04-21 14:32:56 -07:00
7369c5f813 Create and map shared memory pool with libc 2025-04-03 13:38:12 -07:00
07e8089787 Print errors and bind to wl_shm 2025-03-26 11:50:59 -07:00
4402df8495 Use WlEvent trait to abstract read_u32 and read_string 2025-03-25 13:21:05 -07:00
857b40dda4 Read globals from wl_registry::global 2025-03-24 15:44:06 -07:00
4e9d63d415 Use WlHeader struct instead of reading bytes from buffer every time 2025-03-24 15:41:32 -07:00
1003a3a4ed Use WlState struct to hold commonly used values 2025-03-24 10:59:59 -07:00
59def83bf3 Get wl_registry global object 2025-03-24 10:13:31 -07:00
6a0b47c57e Connect to wayland socket 2025-03-24 10:11:57 -07:00
a5c757169f Initial commit 2025-03-24 10:07:27 -07:00