mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-14 06:59:43 -05:00
implement texture get buffer size
This commit is contained in:
parent
f0f190bfa5
commit
72a33b736f
4 changed files with 26 additions and 8 deletions
|
|
@ -46,6 +46,8 @@ struct wlr_texture_impl {
|
|||
struct wl_resource *drm_buf);
|
||||
void (*get_matrix)(struct wlr_texture *state,
|
||||
float (*matrix)[16], const float (*projection)[16], int x, int y);
|
||||
void (*get_buffer_size)(struct wlr_texture *texture,
|
||||
struct wl_resource *resource, int *width, int *height);
|
||||
void (*bind)(struct wlr_texture *texture);
|
||||
void (*destroy)(struct wlr_texture *texture);
|
||||
};
|
||||
|
|
@ -53,5 +55,7 @@ struct wlr_texture_impl {
|
|||
void wlr_texture_init(struct wlr_texture *texture,
|
||||
struct wlr_texture_impl *impl);
|
||||
void wlr_texture_bind(struct wlr_texture *texture);
|
||||
void wlr_texture_get_buffer_size(struct wlr_texture *texture,
|
||||
struct wl_resource *resource, int *width, int *height);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue