Trivial simple OpenGl working example

Виталий Фадеев vital.fadeev at gmail.com
Fri Jul 9 05:11:06 UTC 2021


On Thursday, 8 July 2021 at 16:11:17 UTC, Guillaume Piolat wrote:
> On Thursday, 8 July 2021 at 14:09:30 UTC, drug wrote:
>> 08.07.2021 16:51, Виталий Фадеев пишет:
>>> Hi!
>>> 
>>> I searching trivial simple D/OpenGL working in 2021 year 
>>> example.
>>> 
>>> It may be triangle.
>>> It may be based on any library: SDL, GLFW, Derelict, etc.
>>> 
>>> Can you help me ?
>>> 
>>
>> https://github.com/drug007/gfm7/tree/master/examples/simpleshader
>>
>> it's not trivial though but it works (tested in linux)
>> just `dub fetch gfm7` then go to 
>> `path\to\gfm7\examples\simpleshader` and run `dub`.
>>
>> All kudos to Guillaume Piolat, original author of gfm library.
>
> If like me you hate OpenGL :) you can can also get 
> software-rendered DPI-aware triangles with the "turtle" package:
> https://code.dlang.org/packages/turtle
>
> (Courtesy of Cerjones for the software renderer. )

Thank, Guillaume Piolat.

I using CPU Pentium B970 It is old CPU, but even it contains a 
graphics accelerator.
Mesa DRI Intel(R) HD Graphics 2000 (SNB GT1), has 4 conveers on 
GPU.
Smartphones also contains GPU.
Because OpenGL has high priority.

CPU render, may be later.

Thanks, I noticed turtle, dg2d. It has clipping, it usefull.
What about text rendering ?



More information about the Digitalmars-d-learn mailing list