Closed qualiaa closed 11 years ago
Flashpunk has a visible flag which may be where is comes from. Actually sometimes it is useful, if you want to hide an entity.
Heh, no, I made this engine about a year before I'd heard of FP. I remember wanting to use it, I just don't think it's a very good idea any more. If an entity doesn't want to be visible it can do something with its graphic. For example, I'd like all graphic objects to have a colour multiplier (including an alpha channel). Then OpenGL will work out when something doesn't need to be rendered, and it's a more general approach.
Okay, the visible flag is now gone, but I'll probably add one to Graphic.
I'm currently fixing issue #9, and I noticed that there was an unusued visible_ flag that I must have wanted to use at some point.
My question is, do we actually want to check if something is visible before rendering it? I'm thinking definitely not, but I wondered if anyone has any reason to think otherwise.