mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 18:45:23 -04:00
Remove Model_GetTexture, never even used
This commit is contained in:
parent
e6a88393bf
commit
01572ae7af
@ -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);
|
||||
}
|
||||
|
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user