diff --git a/src/Model.c b/src/Model.c index 28d5df571..737561959 100644 --- a/src/Model.c +++ b/src/Model.c @@ -403,15 +403,6 @@ struct Model* Model_Get(const String* name) { return NULL; } -struct ModelTex* Model_GetTexture(const String* name) { - struct ModelTex* tex; - - for (tex = textures_head; tex; tex = tex->next) { - if (String_CaselessEqualsConst(name, tex->name)) return tex; - } - return NULL; -} - void Model_Register(struct Model* model) { LinkedList_Add(model, models_head, models_tail); } diff --git a/src/Model.h b/src/Model.h index 542f0a10d..814bf4a52 100644 --- a/src/Model.h +++ b/src/Model.h @@ -142,13 +142,11 @@ CC_API void Model_DrawArmPart(struct ModelPart* part); /* Returns a pointer to the model whose name caselessly matches given name. */ CC_API struct Model* Model_Get(const String* name); -/* Returns a pointer to the model texture whose name caselessly matches given name. */ -CC_API struct ModelTex* Model_GetTexture(const String* name); /* Adds a model to the list of models. (e.g. "skeleton") */ /* Models can be applied to entities to change their appearance. Use Entity_SetModel for that. */ CC_API void Model_Register(struct Model* model); -/* Adds a texture to the list of model textures. (e.g. "skeleton.png") */ -/* Model textures are automatically loaded from texture packs. Used as a 'default skin' for models. */ +/* Adds a texture to the list of automatically managed model textures. */ +/* These textures are automatically loaded from texture packs. (e.g. "skeleton.png") */ CC_API void Model_RegisterTexture(struct ModelTex* tex); /* Describes data for a box being built. */