Thread overview
dlang opengl / gl / glu /glut library.
Apr 18, 2021
Alain De Vos
Apr 18, 2021
Alain De Vos
Apr 21, 2021
Dukc
Apr 21, 2021
russhy
Apr 21, 2021
Alain De Vos
Apr 21, 2021
rikki cattermole
Apr 21, 2021
Alain De Vos
Apr 23, 2021
Alain De Vos
April 18, 2021

Is there a library with api index ?

April 18, 2021

When doing graphics the number of functions explodes.
So one needs always a list, compare to a header file in c.
If there are "modern" alternatives to opengl feel free.

April 21, 2021

On Sunday, 18 April 2021 at 23:36:58 UTC, Alain De Vos wrote:

>

When doing graphics the number of functions explodes.
So one needs always a list, compare to a header file in c.
If there are "modern" alternatives to opengl feel free.

More modern from which perspective? Simpler to use (non-inclusive list of options: SDL2/Allegro/SFML bindings, cairod, DLib, dgame)? Or more modern from GPU acceleration perspective (you're probably wanting derelict-vulkan or derelict-bgfx)?

April 21, 2021

On Sunday, 18 April 2021 at 22:35:26 UTC, Alain De Vos wrote:

>

Is there a library with api index ?

https://github.com/BindBC/bindbc-opengl

use the version block you need: https://github.com/BindBC/bindbc-opengl#enable-support-for-opengl-versions-30-and-higher

April 21, 2021

First opengl test.
Link library.

import std.stdio;
import bindc.opengl;

void main()
{
	writeln("Edit source/app.d to start your project.");
}
x: /home/x/Src/languages/dlang/opengl >

dub.json:


	"authors": [
		"x"
	],
	"copyright": "Copyright © 2021, x",
	"dependencies": {
		"bindbc-opengl": "~>0.16.0",
	},
	"description": "A minimal D application.",
	"license": "proprietary",
	"name": "opengl"
}

dub build

dub build
Performing "debug" build using /usr/local/bin/ldc2 for x86_64.
bindbc-loader 0.3.2: target for configuration "noBC" is up to date.
bindbc-opengl 0.16.0: target for configuration "dynamic" is up to date.
opengl ~master: building configuration "application"...
source/app.d(2,8): Error: module opengl is in file 'bindc/opengl.d' which cannot be read
import path[0] = source/
import path[1] = /home/x/.dub/packages/bindbc-opengl-0.16.0/bindbc-opengl/source/
import path[2] = /home/x/.dub/packages/bindbc-loader-0.3.2/bindbc-loader/source/
import path[3] = /usr/local/include/d
/usr/local/bin/ldc2 failed with exit code 1.

April 22, 2021
On 22/04/2021 7:51 AM, Alain De Vos wrote:
> import bindc.opengl;

bindbc
April 21, 2021
My lapsus.
I've got dgame & raylib-d working.
I wander how I start with sdl/opengl.
April 23, 2021
If i'm correct,
sdl gives you a window
opengl allows to draw in this window
dlang allows to model the world with objects.
"Needing a hello world :)"