Troubles with devisualization/window

Rikki Cattermole via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 6 17:17:58 PDT 2015


On 7/04/2015 12:10 p.m., ddos wrote:
> On Monday, 6 April 2015 at 22:56:15 UTC, Rikki Cattermole wrote:
>> On 7/04/2015 10:34 a.m., ddos wrote:
>>> it's getting warmer, window doesnt freeze anymore and opengl calls don't
>>> crash the window, but it's still all white after calling
>>> glClearColor(1,0,1,1);
>>> glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
>>>
>>> updated src:
>>> https://github.com/oggs91/OpenVG_D/blob/master/demo_DvisualizationWT/source/app.d
>>>
>>
>> Ohhh right, call swapBuffers on the context after drawing. Probably be
>> in the run loop (while).
>
> thanks a lot, problems fixed now, i've missing your test example :) if
> anyone else has problems -> this works
> https://github.com/Devisualization/window/blob/master/test/main.d
>
> to get the vector graphics working i had to make a small change in the
> pixelformatdescriptor
> https://github.com/Devisualization/window/blob/master/platforms/win32/devisualization/window/context/opengl.d
>
> PIXELFORMATDESCRIPTOR, changed stencil buffer bits from 0 to 8
> you may want to change this to default 8 to avoid problems.
>
> http://imgur.com/ME4b6ZO

Tagged v0.1.1


More information about the Digitalmars-d-learn mailing list