diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-08 13:12:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-08 13:12:16 -0400 |
commit | ba87585bbe7f119d6ebd9d13c85af15d82aa9431 (patch) | |
tree | ec186a0475956d7ac1ff100c81a74bee5900f84c /render/wlr_surface.c | |
parent | 622a0d838b2d645ab8f649c6804276262d1eec50 (diff) | |
parent | e167f41fde7532ca453a9a70ad1e3f27d7177071 (diff) |
Merge pull request #48 from nyorain/wlr_texture
Rename wlr_surface -> wlr_texture; attach -> upload
Diffstat (limited to 'render/wlr_surface.c')
-rw-r--r-- | render/wlr_surface.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/render/wlr_surface.c b/render/wlr_surface.c deleted file mode 100644 index 4e4f4101..00000000 --- a/render/wlr_surface.c +++ /dev/null @@ -1,36 +0,0 @@ -#include <stdlib.h> -#include <stdbool.h> -#include <wlr/render/interface.h> - -struct wlr_surface *wlr_surface_init(struct wlr_surface_state *state, - struct wlr_surface_impl *impl) { - struct wlr_surface *s = calloc(sizeof(struct wlr_surface), 1); - s->state = state; - s->impl = impl; - return s; -} - -void wlr_surface_destroy(struct wlr_surface *surface) { - surface->impl->destroy(surface->state); - free(surface); -} - -void wlr_surface_bind(struct wlr_surface *surface) { - surface->impl->bind(surface->state); -} - -bool wlr_surface_attach_pixels(struct wlr_surface *surface, uint32_t format, - int stride, int width, int height, const unsigned char *pixels) { - return surface->impl->attach_pixels(surface->state, - format, stride, width, height, pixels); -} - -bool wlr_surface_attach_shm(struct wlr_surface *surface, uint32_t format, - struct wl_shm_buffer *shm) { - return surface->impl->attach_shm(surface->state, format, shm); -} - -void wlr_surface_get_matrix(struct wlr_surface *surface, - float (*matrix)[16], const float (*projection)[16], int x, int y) { - surface->impl->get_matrix(surface->state, matrix, projection, x, y); -} |