So I have created a fairly smooth game engine for my android game. I have a Renderer class which stores a single copy of each bitmap along with an array of rectangles. To renderer a specific image, it uses an id to get the rectangle and draws that portion of the associated bitmap. Each entity uses a texture id (currently an integer) to draws its texture through this renderer. However, there is one problem with this approach. If a texture has to be added, all of the ids have to be updated. I was thinking about creating a huge enum with names for each texture, so that the ids would only have to be changed in one place. I know this is bad practice, but would it be practical in this situation?