[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Virtual methods?
- To: linuxgames@sunsite.dk
- Subject: Virtual methods?
- From: "Miguel A. Osorio" <maos@gbl.com.br>
- Date: Fri, 22 Aug 2003 00:10:43 -0300
- Delivered-to: archiver@seul.org
- Delivered-to: mailing list linuxgames@sunsite.dk
- Delivery-date: Thu, 21 Aug 2003 23:13:08 -0400
- Mailing-list: contact linuxgames-help@sunsite.dk; run by ezmlm
- Reply-to: linuxgames@sunsite.dk
- Sender: hornet@seul.org
Hey everyone,
I was wondering; how much impact on performance do I get if I use a
base class that defines a virutal method "Render" and derive all
"renderable" objects from it? I mean, I'll probably have some loops
calling the "Render" method for each object. Is this too expensive? Any
alternatives?
Thanks in advance,
Miguel A. Osorio.