FreeBasic+OpenGL. Help

New to FreeBASIC? Post your questions here.
PavelUT
Posts: 78
Joined: Jun 14, 2021 14:42

Re: FreeBasic+OpenGL. Help

Post by PavelUT »

paul doe wrote:
PavelUT wrote:...Please see what I did wrong.
Who knows? The code works here (fbc 1.08.0).
Here is a request and check my modified code even on fb 1.08. Probably I changed something wrong
dodicat
Posts: 7976
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: FreeBasic+OpenGL. Help

Post by dodicat »

I have to
#include "GL/glext.bi"
to get the the code to run.
Also a sleep 1 after flip otherwise the whole thing is too fast.
also I would
Dim As any Ptr img_fon
I usually delete images at the program end, but that's up to you.
But your boxes run fine.
Post Reply