|
From: Jose' C. <cru...@ce...> - 2007-07-02 10:05:23
|
Il giorno 29/giu/07, alle ore 19:26, James Walker ha scritto: > Jose' Cruanyes wrote: >> We're ready to go on with the Hiddenline renderers, but I'm not sure >> that poluting the Quesa space is the way to go, also because we want >> to create several different renderers. >> >> so we want to detach the renderers from quesa. >> >> there are several options, >> one Quick n dirty that is use several #defines to turn on and off >> the renderers at compile time, >> and the other is to make all the renderers (minus one?) plug-ins. >> >> the problem with the second approach is that the Open GL renderers >> (that forms the base class for all others) uses private View methods >> and data, so we have to make them public. > > Private view *data*? I don't remember any such case. If I search the > OpenGL renderer folder for "E3View", I only find the function calls: > > E3View_State_SetShaderSurface > E3View_SubmitRetained E3View_State_SetShaderSurface is not a public method... and in the =20 case we need to pubblish the whole set... Anyway is not a problem now since I've decided for including =20 everything and control it with properties > > It seems to me that the bigger problem with separating renderers into > plug-ins is the fact that subclasses of the OpenGL renderer use =20 > methods > and members of the base class. this is not a problem if you're willing to duplicate the code in =20 every plug-in > >> the third approach is to leave the OpenGL Hiddenline renderer (only >> one) on by default, > > I'm not sure I understand what you mean here. Make the hidden-line > renderer, but not its base class, the only built-in renderer? my problem is that I want to have several hidden-line renderers in my =20= app (other than the 'classics' renderers Wireframe-interactive-OpenGL-=20= Cartoon, that are not in discussion) but in the current state I've to compile them inside the Quesa Lib... =20= leading to too many renderers in the default installation.. So I'll made a single hidden-line, controlled by a bunch of properties, Also with the rayshade I want to pubblish a number of properties =20 (gamma correction and antialias level, and antialias method are the =20 first three) Pax et Bonum # Dott. Jos=E9 Cruanyes Aguilar - C.E. Soft srl # Pzza. Firenze,4 MILANO - XX Settembre 10, CREMONA # 02,3923101 0372,460602 |