Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
29 user(s) are online (17 user(s) are browsing Forums)

Members: 2
Guests: 27

daveyw, hlt, more...

Support us!

Headlines

 
  Register To Post  

Dear ImGui
Just can't stay away
Just can't stay away


See User information
https://github.com/ocornut/imgui

Here is a rough guide how to get it running using SDL2 or 3.

* Common

imconfig.h:

To fix colors, add:

#define IM_COL32_R_SHIFT 24
#define IM_COL32_G_SHIFT 16
#define IM_COL32_B_SHIFT 8
#define IM_COL32_A_SHIFT 0
#define IM_COL32_A_MASK 0x000000FF

Enable following to avoid code which uses fork():

#define IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS

* MiniGL (example_sdl2_opengl2)

main.cpp:

Modify GL version to supported:

SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);

* OpenGLES 2 (example_sdl2_opengl3, example_sdl3_opengl3)

Makefile:

Add:

-DIMGUI_IMPL_OPENGL_ES2

Demo: https://capehill.kapsi.fi/imgui/imgui_amigaos4.lha (MiniGL or OpenGLES2 required).

Go to top
Re: Dear ImGui
Just popping in
Just popping in


See User information
@Capehill

Does this mean we could have Aira Force also running on AmigaOS4?

Go to top
Re: Dear ImGui
Amigans Defender
Amigans Defender


See User information
I've compiled a lot of software with ImGui. It is working very well under Gl4es

i'm really tired...
Go to top
Re: Dear ImGui
Just can't stay away
Just can't stay away


See User information
@Capehill

Works fine here on SAM460ex +RX550
Great job.

example_sdl3_opengl3 opens in a minimal size window (100x150), the other ones open full size window

Go to top
Re: Dear ImGui
Quite a regular
Quite a regular


See User information
Spacecadet Pinball which is on OS4Dev also uses a basic imgui gui.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top
Re: Dear ImGui
Just can't stay away
Just can't stay away


See User information
@FlynnTheAvatar

I suppose you mean the A500 emulator. Is it open source? I heard about that today so I can't say much.

@afxgroup

I'm planning to use this with some of my own software if I ever find time to work on those :/

@jabirulo

Yes, need to investigate is it SDL3 or ImGui issue.

@rjd324

Cool. I have tried Spacecadet but didn't realize that at time. Does it use OpenGL context or SDL_renderer backend? I noticed ImGui's SDL_Renderer uses geometry calls which cannot be properly implemented with CompositeTags due to missing vertex colors. Of course software, OpenGL or OpenGLES2 work with SDL_renderer too.

Go to top
Re: Dear ImGui
Quite a regular
Quite a regular


See User information

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project