More extensible ShadowCameraSetup

What it says on the tin: a place to discuss proposed new features.
Post Reply
claustre
Goblin
Posts: 278
Joined: Thu Mar 23, 2006 10:35 am
Location: Toulouse, France
Contact:

More extensible ShadowCameraSetup

Post by claustre »

Indeed, I used it to derive a particular behaviour for directional lights, and realized I have to rewrite many parts because it is not written as to be inherited.

For instance the PlaneOptimalShadowCameraSetup class has private members. The FocusedShadowCameraSetup has protected members but that are non virtual. So you have to rewrite getCamera() in order to have the right overloaded functions be called.

Just a matter of "protected" instead of "private" and some virtual functions as well...
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67
Contact:

Post by sinbad »

Perfectly open to this kind of thing, easiest thing is just to change it yourself and submit a patch..
Post Reply