mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 11:06:06 -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;
|
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) {
|
void Model_Register(struct Model* model) {
|
||||||
LinkedList_Add(model, models_head, models_tail);
|
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. */
|
/* Returns a pointer to the model whose name caselessly matches given name. */
|
||||||
CC_API struct Model* Model_Get(const String* 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") */
|
/* 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. */
|
/* Models can be applied to entities to change their appearance. Use Entity_SetModel for that. */
|
||||||
CC_API void Model_Register(struct Model* model);
|
CC_API void Model_Register(struct Model* model);
|
||||||
/* Adds a texture to the list of model textures. (e.g. "skeleton.png") */
|
/* Adds a texture to the list of automatically managed model textures. */
|
||||||
/* Model textures are automatically loaded from texture packs. Used as a 'default skin' for models. */
|
/* These textures are automatically loaded from texture packs. (e.g. "skeleton.png") */
|
||||||
CC_API void Model_RegisterTexture(struct ModelTex* tex);
|
CC_API void Model_RegisterTexture(struct ModelTex* tex);
|
||||||
|
|
||||||
/* Describes data for a box being built. */
|
/* Describes data for a box being built. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user