wxErlang openGL text example

968 views Asked by At

Does anyone have a working example on how to get a text drawn in openGL, the erlang bindings?

Im using a texture right now to load the one created by wxBitmap. And I am considering moving the GL code to Java or C++.

2

There are 2 answers

0
dgud On BEST ANSWER

Have you run "wx:demo()" from the erlang shell, it contains one example of how to do it. Click OpenGL and have a look at the code.

0
Reinhard Engel On

A minimal Elixir example looks like this: Create the module (top). Execute in terminal (middle). Choose 'gl' in Window with wxExamples (bottom):

enter image description here