It works... I need to practice more Blitzmax :)
Thanks for the quick answer it was amazing fast.
btw the fixed code is
Thanks for the quick answer it was amazing fast.
btw the fixed code is
Local w:TGadget = CreateWindow("Easy GL Cube in a GUI window", 10, 10, 1024+10, 768+10 ) Local c:TGadget = CreateCanvas(0,0,w.ClientWidth(),w.ClientHeight(),w,0) Local hwnd:Byte Ptr=Byte Ptr(QueryGadget(c,QUERY_HWND)) If Not i3ImpactOpen(hwnd,hwnd) RuntimeError "Unable to initialize the 3Impact game engine" If Not i3ImpactSettings(_ISETTINGS(w.ClientWidth(),w.ClientHeight(),32,False,True)) RuntimeError "Settings failed"