Graphics Library for D

Mike Parker aldacron at gmail.com
Wed Jan 8 17:57:13 PST 2014


On 1/8/2014 11:05 PM, "Ola Fosheim Grøstad" 
<ola.fosheim.grostad+dlang at gmail.com>" wrote:

>
>> I wouldn't expect any implementation, generic or otherwise, to assume
>> mostly static geometry. You could bet that a simple graphics API in
>> Phobos would be used for games by some and for generating pie charts
>> by others. It's still possible to get a generic rendering system to
>> handle that with decent performance. Yes, it makes for compromises in
>> the backend that a more targeted renderer wouldn't need to make, but
>> that's the price of genericity.
>
> 2D games, web browsers etc use geometry that is mostly static between
> frames (although it can be hidden). So you can cache and have a
> dirty-flag on each surface (if the path-data change you set the dirty
> flag and the engine recreates the cached surface). 3D is different
> because of the perspective effect which force you to a complete redraw
> every frame.
>

Is this going to provide a 3D renderer as well? I thought we were just 
talking about 2D.



More information about the Digitalmars-d mailing list