2016-10-26 16:58 GMT+02:00 Glenn Cavarlé <[email protected]>:

>
> It is interesting only if performances are substantially improved.
> Because it is also duplication, you duplicates in Bloc the OSWindow
> conversion code without any added value.
>

No. You are not right here. Conversion code for OSEvent=>BlEvent and
SDLEvent=>OSEvent is almost same. All events have similar interface to
retrieve event data.
So it will be quite easy to use SDL directly. And for Bloc it will be
improvement because of direct access to real OS state and also performance.


> Moreover, this does not prevent the duplication of Event hierarchy.
>

If you mean SDLEvents vs BlEvent then I would said it is not real
duplication. Because SDLEvents are just "transfer objects" - structures
from external interface. We just need them to extract raw information from
sdl-library.
But BlEvents or OSEvents are about modelling such events inside our system.
And here we don't need two models.


> OSWindow is already used in other projects and these users will not be
> happy
> if we remove OSEvents ;).


I doubt that there is anyone accept Morphic. And Morphic also perform
stupid conversion to own MorphicEvent's which could be also implemented
directly on SDL events without OSEvent's.

Reply via email to