Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGL with Haxe C++?

I'm interested in converting to Haxe as my primary programming language, and it's been awesome so far, however one of my requirements is that I can use OpenGL 3.3 with the C++ target for some 3D game work.

However, this seems to be an odd thing to do as I can find very little info online about using OpenGL in Haxe. I've found some libraries, especially hx-ogl and foo3d (abstracted ogl-like) but they're all unmaintained and I can't get them to work. I've also found some 3D engines but I'd like to use pure OpenGL. Also, I only need to target C++ so cross-platformness isn't required.

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

like image 394
toficofi Avatar asked Nov 02 '22 22:11

toficofi


1 Answers

Haxe guys work on OpenGL wrapper continuously but at the moment Haxe (NME) supports the OpenGL ES 2.0 API for both desktop and mobile, which means you can use a programmable shader pipeline on both desktop and mobile. You can see a code example here.

But if you say:

I only need to target C++ so cross-platformness isn't required

Then why won't you use just C++ with whatever OpenGL version you want?

like image 173
Michael IV Avatar answered Nov 12 '22 17:11

Michael IV