Page 1 of 1

Windows 10 and OPenGL

Posted: Fri Oct 18, 2019 4:59 pm
by wawavoun
Hello there,

New with Purebasic (demo version) I try some examples found in the package.

OpenGLGadget.pb wont compile :

[17:45:52] [COMPILER] Line 38: glPushMatrix_() is not a function, array, list, map or macro.

It seems that problem is the same with any sample related to 3D or OpenGL.

Test made on a up-to-date Windows 10 (Intel HD Graphics 4000 interface with recent Intel driver, dxdiag look good). No problem under Linux.

So any idea ?

Thanks for the help.
Philippe

Re: Windows 10 and OPenGL

Posted: Fri Oct 18, 2019 5:13 pm
by mk-soft
Welcome :wink:

All functions that end with underlined "_" are externe API and DLL functions.
These are only available in the full version.

For testing these functions you have to import them yourself with the import function.

perhaps can anyone write an example for import

Re: Windows 10 and OPenGL

Posted: Sat Oct 19, 2019 12:15 am
by BarryG
mk-soft wrote:perhaps can anyone write an example for import
Yes, but... that defeats the purpose of the demo restrictions. Fred needs to disable imports in the demo.

Re: Windows 10 and OPenGL

Posted: Sat Oct 19, 2019 9:40 am
by mk-soft
I don't think so. The lines restriction is enough.

With 800 lines you can try a few things to see if Purebasic is something for you.