anticitizn / solnce

A (prospective) 2D space strategy game
2 stars 0 forks source link

Reassign texture ID on texture filename change #4

Open anticitizn opened 1 year ago

anticitizn commented 1 year ago

Currently, once a texture ID is assigned to a Texture component, further changes to the stored filename will not have any effect. The only way to truly change the texture is to unassign the texture component and assign a new one to the entity, which is unwieldy and possibly relatively slow. It is conceivable that quads may have to change their texture often.