Top | ![]() |
![]() |
![]() |
![]() |
gpointer | (*G3DPluginInitFunc) () |
void | (*G3DPluginCleanupFunc) () |
gboolean | (*G3DPluginLoadModelFunc) () |
gboolean | (*G3DPluginLoadModelFromStreamFunc) () |
gboolean | (*G3DPluginLoadImageFunc) () |
gboolean | (*G3DPluginLoadImageStreamFunc) () |
gchar * | (*G3DPluginGetDescFunc) () |
gchar ** | (*G3DPluginGetExtFunc) () |
gboolean | g3d_plugins_init () |
void | g3d_plugins_cleanup () |
gboolean | g3d_plugins_load_model () |
gboolean | g3d_plugins_load_model_from_stream () |
gboolean | g3d_plugins_load_image () |
gboolean | g3d_plugins_load_image_from_stream () |
gchar ** | g3d_plugins_get_image_extensions () |
Direct interaction with the plugin system is normally not needed when using libg3d. It may be required when writing a plugin which should load a G3DImage or a G3DModel with another plugin.
gpointer
(*G3DPluginInitFunc) (G3DContext *context
);
Prototype for plugin_init()
.
void
(*G3DPluginCleanupFunc) (gpointer user_data
);
Prototype for plugin_cleanup()
.
gboolean (*G3DPluginLoadModelFunc) (G3DContext *context
,const gchar *filename
,G3DModel *model
,gpointer user_data
);
Prototype for plugin_load_model()
.
gboolean (*G3DPluginLoadModelFromStreamFunc) (G3DContext *context
,G3DStream *stream
,G3DModel *model
,gpointer user_data
);
Prototype for plugin_load_model_from_stream()
.
gboolean (*G3DPluginLoadImageFunc) (G3DContext *context
,const gchar *filename
,G3DImage *image
,gpointer user_data
);
Prototype for plugin_load_image()
.
gboolean (*G3DPluginLoadImageStreamFunc) (G3DContext *context
,G3DStream *stream
,G3DImage *image
,gpointer user_data
);
Prototype for plugin_load_image_from_stream()
.
gchar *
(*G3DPluginGetDescFunc) (G3DContext *context
);
Prototype for plugin_description()
.
gchar **
(*G3DPluginGetExtFunc) (G3DContext *context
);
Prototype for plugin_extensions()
.
gboolean
g3d_plugins_init (G3DContext *context
);
Initializes the plugin system. This is implicitly done when using
g3d_context_new()
.
void
g3d_plugins_cleanup (G3DContext *context
);
Clean up the plugin system. Usually done by g3d_context_free()
.
gboolean g3d_plugins_load_model (G3DContext *context
,const gchar *filename
,G3DModel *model
);
Try to load a model from file using import plugins.
gboolean g3d_plugins_load_model_from_stream (G3DContext *context
,G3DStream *stream
,G3DModel *model
);
Try to load a model from stream using import plugins.
gboolean g3d_plugins_load_image (G3DContext *context
,const gchar *filename
,G3DImage *image
);
Try to load an image from file using import plugins.
gboolean g3d_plugins_load_image_from_stream (G3DContext *context
,G3DStream *stream
,G3DImage *image
);
Try to load an image from stream using import plugins.
gchar **
g3d_plugins_get_image_extensions (G3DContext *context
);
Get the supported image type extensions.