|
|
@ -6,9 +6,12 @@
|
|
|
|
#include <wlr/render/wlr_texture.h>
|
|
|
|
#include <wlr/render/wlr_texture.h>
|
|
|
|
#include "types/wlr_buffer.h"
|
|
|
|
#include "types/wlr_buffer.h"
|
|
|
|
|
|
|
|
|
|
|
|
void wlr_texture_init(struct wlr_texture *texture,
|
|
|
|
void wlr_texture_init(struct wlr_texture *texture, struct wlr_renderer *renderer,
|
|
|
|
const struct wlr_texture_impl *impl, uint32_t width, uint32_t height) {
|
|
|
|
const struct wlr_texture_impl *impl, uint32_t width, uint32_t height) {
|
|
|
|
|
|
|
|
assert(renderer);
|
|
|
|
|
|
|
|
|
|
|
|
memset(texture, 0, sizeof(*texture));
|
|
|
|
memset(texture, 0, sizeof(*texture));
|
|
|
|
|
|
|
|
texture->renderer = renderer;
|
|
|
|
texture->impl = impl;
|
|
|
|
texture->impl = impl;
|
|
|
|
texture->width = width;
|
|
|
|
texture->width = width;
|
|
|
|
texture->height = height;
|
|
|
|
texture->height = height;
|
|
|
|