Graphics/font/platform backends with common interfaces?

Taylor Hillegeist via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Dec 23 13:12:11 PST 2015


On Wednesday, 23 December 2015 at 21:07:12 UTC, Basile B. wrote:
> On Wednesday, 23 December 2015 at 20:52:05 UTC, Adam D. Ruppe 
> wrote:
>> [...]
>
> yes silly, more specially as
>
> - some of them are 2D with FP coordinates
> - some of them are 2D with integral coordinates
> - some of them are 2D with integral coordinates with 
> transformation of the plan
> - some of them are 2D with integral coordinates without 
> transformation of the plan
> - some of them are 3D FP float coordinates with transformation 
> of the plan
> - some of them are in DirectMode, some of them not.
> - etc...
>
> So this would result in 5 or 6 templatized (because of the 
> coord type) interface.
> IIRC Interfaces are not devirtualizables so that they can be 
> extracted...
>
> also to put SDL and OPENGL on the same level is a bit strange.

Thanks for letting me know! So is what your saying is that an 
common interface is not possible or practical or perhaps useful?


More information about the Digitalmars-d-learn mailing list