Shinya Kitaoka 810553
#pragma once
Shinya Kitaoka 810553
Toshihiro Shimizu 890ddd
#ifndef PLUGIN_TILE_INTERFACE
Toshihiro Shimizu 890ddd
#define PLUGIN_TILE_INTERFACE
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "toonz_hostif.h"
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
int tile_interface_get_raw_address_unsafe(toonz_tile_handle_t handle,
Shinya Kitaoka 120a6e
                                          void **address);
Toshihiro Shimizu 890ddd
int tile_interface_get_raw_stride(toonz_tile_handle_t handle, int *stride);
Toshihiro Shimizu 890ddd
int tile_interface_get_element_type(toonz_tile_handle_t handle, int *element);
Shinya Kitaoka 120a6e
int tile_interface_copy_rect(toonz_tile_handle_t handle, int left, int top,
Shinya Kitaoka 120a6e
                             int width, int height, void *dst, int dststride);
Shinya Kitaoka 120a6e
int tile_interface_create_from(toonz_tile_handle_t handle,
Shinya Kitaoka 120a6e
                               toonz_tile_handle_t *newhandle);
Toshihiro Shimizu 890ddd
int tile_interface_create(toonz_tile_handle_t *newhandle);
Toshihiro Shimizu 890ddd
int tile_interface_destroy(toonz_tile_handle_t handle);
Toshihiro Shimizu 890ddd
int tile_interface_get_rectangle(toonz_tile_handle_t handle, toonz_rect_t *);
Toshihiro Shimizu 890ddd
int tile_interface_safen(toonz_tile_handle_t handle);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif