GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_proxy_shm.h
Go to the documentation of this file.
1//SPDX-License-Identifier: LGPL-2.0-or-later
2/*
3
4 Copyright (c) 2019-2024 Cyril Hrubis <metan@ucw.cz>
5
6 */
7
12#ifndef GP_PROXY_SHM_H
13#define GP_PROXY_SHM_H
14
16#include <core/gp_pixmap.h>
17
31
46
62
69
70#endif /* GP_PROXY_SHM_H */
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
Definition gp_types.h:24
gp_pixel_type
List of all pixel types.
A pixel buffer.
A proxy backend protocol definitions.
void gp_proxy_shm_exit(gp_proxy_shm *self)
Removes a SHM pixmap.
gp_proxy_shm * gp_proxy_shm_init(const char *path, gp_size w, gp_size h, gp_pixel_type type)
Creates an SHM pixmap.
int gp_proxy_shm_resize(gp_proxy_shm *self, gp_size w, gp_size h)
Resizes a SHM pixmap.
A pixmap buffer.
Definition gp_pixmap.h:33
A SHM path and size for a mmap().
char path[64]
A SHM path to mmap().
A SHM pixmap.
gp_pixmap pixmap
A pixmap with the SHM segment as a pixels.
int fd
A file descriptor for the SHM file.
size_t size
A SHM segment size.
struct gp_proxy_path path
A path to the SHM segment.