Re: Designing a renderer

"Ivan Galic" <[email protected]> Tue, 1 Jul 2003 23:50:26 +0200
Newsgroups gmane.games.devel.design
Message-ID <001201c3401a$c93e8170$ca85c6c1@firstmillion>
> > function IRenderer::Init(...). The arguments vary with
> > the OS. On a Windows platform you have to pass the HWND
> > for the window, on a Linux system that could be totally
> > different.

Yes, so that's why you have to abstract window creation, too. So you'd have
a class for creating a window, and two implementations - one for windows,
and one for linux. Take a look at OGRE for a good engine design:

ogre.sourceforge.net

-Ivan




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Gamedevlists-design mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-design
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=556