Closed kvark closed 9 years ago
Perhaps, we should ditch AbstractScene
entirely due to it (arguably) useless interface and complexities surrounding it. It was only introduced for the PhaseHarness
, which is yet to prove its usefulness either. The expected use-case is:
The PhaseHarness
doesn't really help here, and neither does AbstractScene
. It is meant for the more complex scenarios, where it fails too due to the lack of generality.
Technically, it's defined by the
Technique
, since that's what uses theSpaceData
in its implementation. However, if we make it an associated type, it becomes impossible to implementAbstractScene
properly due to howdraw()
is defined:It has to work with any
SpaceData
then, while higher-levelScene
would want to restrict this to another traitscene::SpaceData
in order to be able to construct it.