OpenGL with Haxe C ++?

I am interested in converting to Haxe as my main programming language, and so far it has been awesome, however one of my requirements is that I can use OpenGL 3.3 with C ++ target for some 3D games.

However, this seems like a strange thing, as I can find very little information on the Internet about using OpenGL in Haxe. I found several libraries, especially hx-ogl and foo3d (abstracted ogl-like), but they are all unchanged, and I cannot get them to work. I also found some 3D engines, but I would like to use pure OpenGL. In addition, I only need to target C ++, so a cross platform is not required.

Has anyone successfully got OpenGL working with Haxe C ++?

+5
source share
1 answer

Haxe guys have been working on the OpenGL shell continuously, but Haxe (NME) currently supports the OpenGL ES 2.0 API for both desktop and mobile devices, which means you can use the programmable shader pipeline on both desktop and mobile devices. You can see the sample code here .

But if you say:

I only need to target C ++, so cross-platforming is not required

Then why don't you use C ++ with any version of OpenGL you want?

+2
source

Source: https://habr.com/ru/post/1480865/


All Articles