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. )

Reply via email to