Author Topic: imGUI for GLBasic  (Read 452 times)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5092
  • O Rly?
    • View Profile
imGUI for GLBasic
« on: 2021-Feb-14 »
Hey guys,

i'm working on a imGUI implementation for GLBasic!
It works, and with some tweeking it can be multiplatform as well.
You can use the normal GLB-Stuff and put the GUI on top of it.

Code for this Demo example:
Code: (glbasic) [Select]
GUI_INIT()

WHILE TRUE

    PRINT "Hello World!", 10, 10

    GUI_NewFrame()
    GUI_ShowDemoWindow()
    GUI_Render()

SHOWSCREEN
WEND

GUI_DestroyContext()
GUI_Shutdown()

END

This DEMO is part of imGUI. From now on u can use the c/c++ part right away.
The other things need to wrapped into GLB.

Linkeroptions:
Projects->Options->Add to the Ink-Field: -L"imgui"

Attached a screen and the project to test :)

IMPORTANT:
You have to install the Headerfiles for GLBasic! http://www.glbasic.com/files/headers.rar
Use the ESC-Key to exit the program, if you close with the X it can stay in the background... have to sort this bug out :/
« Last Edit: 2021-Feb-14 by Schranz0r »
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline SnooPI

  • Dr. Type
  • ****
  • Posts: 388
    • View Profile
Re: imGUI for GLBasic
« Reply #1 on: 2021-Feb-16 »
It looks cool Schranz0r! 
I haven't tested it yet (I'm tired) but why don't you make a wrapper in the form of a library instead?
It seems to me that then it would be easier to import the functions with the GLB IMPORT function... no?  O_O

I would look at this more carefully once tested completely... good job!  :good:


Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1756
    • View Profile
Re: imGUI for GLBasic
« Reply #2 on: 2021-Feb-16 »
Looks super!
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4354
    • View Profile
    • FUED
Re: imGUI for GLBasic
« Reply #3 on: 2021-Feb-18 »
Looks superb!

Offline Marmor

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 926
  • 96A285CC
    • View Profile
    • my youtube channel
Re: imGUI for GLBasic
« Reply #4 on: 2021-Feb-20 »
looks cool <3