add resize implementation on Linux and texture/render target destruction etc

This commit is contained in:
Nick Fisher
2022-12-14 14:48:45 +08:00
parent f271c64432
commit 89fde4ff3d
4 changed files with 66 additions and 20 deletions

View File

@@ -26,6 +26,7 @@ struct _FilamentTextureGL {
GLuint texture_id;
uint32_t width;
uint32_t height;
FlTextureRegistrar* registrar;
};
typedef struct _FilamentTextureGL FilamentTextureGL;
@@ -37,12 +38,12 @@ typedef struct {
uint32_t* width,
uint32_t* height,
GError** error);
GLuint texture_id;
} FilamentTextureGLClass;
G_END_DECLS
FLUTTER_PLUGIN_EXPORT FlTexture* create_filament_texture(uint32_t width, uint32_t height, FlTextureRegistrar* registrar);
FLUTTER_PLUGIN_EXPORT void destroy_filament_texture(FlTexture* texture, FlTextureRegistrar* registrar);
#endif