+/*
+ * Set the texture to be used while drawing the current model.
+ */
+static int _model_set_texture(model_t* m, FILE* file)
+{
+ char filename[4096];
+ if (fgets(filename, 4096, file) == NULL) {
+ fprintf(stderr, "Cannot read texture filename from scene.\n");
+ return -1;
+ }
+#if TEXTURING
+ model_texture(m, (const void*)raster_import(trim(filename)));
+#endif
+ return 0;
+}
+