RE: Designing a renderer
"Jamie Fowlston" <[email protected]> Wed, 2 Jul 2003 12:08:23 +0100
| Newsgroups | gmane.games.devel.design |
|---|---|
| Message-ID | <[email protected]> |
Hmm, we support multiple platforms, and haven't found OGL solves our problems on PS2 & Xbox :) Doing both on Windows is a good exercise for your architecture, to test you can really have different drivers. Jamie -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of Gareth Lewin Sent: 02 July 2003 10:12 To: [email protected] Subject: RE: [GD-Design] Designing a renderer Sorry to ask a stupid question, but why implement both an OGL and a DX renderer ? Either your product is windows only, in which case DirectX or OpenGL are good, or you want to support multiple platforms, and in that case OGL solves all your problems. Spending time on keeping two distint rendering engines up to date is a waste of time, and now days there is no clear advantage to that that I can see. > -----Original Message----- > From: Dirk Gregorius [mailto:[email protected]] > Sent: 01 July 2003 10:19 > To: [email protected] > Subject: [GD-Design] Designing a renderer > > > Hi, > > I am wondering how you implement your render interfaces? On > what abstraction > level is a renderer normally implemented - what are the > typical functions > and classes? Do you pass a renderer reference to all > renderable entities? > And how is platform independence achieved - do you use > polymorphism or for > example the "Bridge" pattern - that by its definition > seperates abstraction > and implementation? Maybe you can give me some tips. > > One thing that I really don't understand is how to implement the > initialisation such that it works platform independent? E.g: > Let's say we > have a base class IRenderer which is implemented by two derived class > COGLRendererImpl and CDXRendererImpl. Both derived classes implement a > virtual 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. What is the best to handle this? > > Hopefully I could make myself clear. Every help is appreciated!! > > Best regards > > > Dirk > > > > ------------------------------------------------------- > 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_06 1203_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 ------------------------------------------------------- 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 ------------------------------------------------------- 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