• Re: C/C++ programming for DirectX & QT

    From Mr. Man-wai Chang@toylet.toylet@gmail.com to comp.lang.c++,alt.free.newsservers,news.software.readers on Thu Jun 4 13:18:20 2026
    From Newsgroup: news.software.readers

    On 6/4/2026 5:56 AM, Chris M. Thomasson wrote:
    On 6/3/2026 2:54 PM, Chris M. Thomasson wrote:

    I think so in a sense. You can make your gui separate and another window
    for dx12, opengl, ect... You should be able to make a window in app
    space to render dx12/opengl on, cannot remember right now.

    Fwiw, imgui is actually perfect for this for it renders directly into
    your DX12/OpenGL framebuffer, so your whole UI lives inside the render
    window itself. No separate Win32 panel needed. Super easy to integrate.

    Actually, I cannot remember how to directly embed a dx12/opengl panel
    into say qt or something.....


    That means when you write a game, you have to roll your own GUI widgets?
    And many other stuffs that's commonly found in rapid development tools
    like Visual Foxpro?

    That's why I used the word "harsh". :)
    --

    @~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch!
    / v \ May the Force and farces be with you! Live long and prosper!!
    /( _ )\ https://sites.google.com/site/changmw/
    ^ ^ https://github.com/changmw/changmw
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Chris M. Thomasson@chris.m.thomasson.1@gmail.com to comp.lang.c++,alt.free.newsservers,news.software.readers on Thu Jun 4 13:28:20 2026
    From Newsgroup: news.software.readers

    On 6/3/2026 10:18 PM, Mr. Man-wai Chang wrote:
    On 6/4/2026 5:56 AM, Chris M. Thomasson wrote:
    On 6/3/2026 2:54 PM, Chris M. Thomasson wrote:

    I think so in a sense. You can make your gui separate and another window >>> for dx12, opengl, ect... You should be able to make a window in app
    space to render dx12/opengl on, cannot remember right now.

    Fwiw, imgui is actually perfect for this for it renders directly into
    your DX12/OpenGL framebuffer, so your whole UI lives inside the render
    window itself. No separate Win32 panel needed. Super easy to integrate.

    Actually, I cannot remember how to directly embed a dx12/opengl panel
    into say qt or something.....


    That means when you write a game, you have to roll your own GUI widgets?

    Not necessarily... Well, imgui has a lot of the common gui elements.
    Fwiw, I use it for my dx12 experiment. Not that hard to pull into the
    system:

    https://imgui.org


    And many other stuffs that's commonly found in rapid development tools
    like Visual Foxpro?

    That's why I used the word "harsh". :)

    Using imgui is easier than programming dx12 from scratch! :^)

    I am getting the hang of it (dx12 and imgui). It (dx12) is more akin to Vulkan. Its a _lot_ more efficient than modern opengl! I can use a
    single memcpy to update the entire state in the render loop. Bindless textures, and other fun things...
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Mr. Man-wai Chang@toylet.toylet@gmail.com to comp.lang.c++,alt.free.newsservers,news.software.readers on Wed Jun 10 17:37:50 2026
    From Newsgroup: news.software.readers

    On 6/5/2026 4:28 AM, Chris M. Thomasson wrote:

    Using imgui is easier than programming dx12 from scratch! :^)

    I am getting the hang of it (dx12 and imgui). It (dx12) is more akin to Vulkan. Its a _lot_ more efficient than modern opengl! I can use a
    single memcpy to update the entire state in the render loop. Bindless textures, and other fun things...

    Until I really have the need to do DirectX programming.... until then. :)

    I do have an old Turbo C 2.0 project involving RS232 serial port. It
    would be interesting to make it work in Windows, with TCP/IP support.
    --

    @~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch!
    / v \ May the Force and farces be with you! Live long and prosper!!
    /( _ )\ https://sites.google.com/site/changmw/
    ^ ^ https://github.com/changmw/changmw
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Chris M. Thomasson@chris.m.thomasson.1@gmail.com to comp.lang.c++,alt.free.newsservers,news.software.readers on Mon Jun 15 00:40:40 2026
    From Newsgroup: news.software.readers

    On 6/10/2026 2:37 AM, Mr. Man-wai Chang wrote:
    On 6/5/2026 4:28 AM, Chris M. Thomasson wrote:

    Using imgui is easier than programming dx12 from scratch! :^)

    I am getting the hang of it (dx12 and imgui). It (dx12) is more akin to
    Vulkan. Its a _lot_ more efficient than modern opengl! I can use a
    single memcpy to update the entire state in the render loop. Bindless
    textures, and other fun things...

    Until I really have the need to do DirectX programming.... until then. :)

    I do have an old Turbo C 2.0 project involving RS232 serial port. It
    would be interesting to make it work in Windows, with TCP/IP support.


    That is an old compiler! I had an old C compiler for my Apple IIGS.
    Iirc, ORCA? I cannot 100% remember right now. Wait...

    https://github.com/byteworksinc/ORCA-C

    This was before I got into programming my PC.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Mr. Man-wai Chang@toylet.toylet@gmail.com to comp.lang.c++,news.software.readers,comp.lang.c on Mon Jun 15 18:44:00 2026
    From Newsgroup: news.software.readers

    On 6/15/2026 3:40 PM, Chris M. Thomasson wrote:
    On 6/10/2026 2:37 AM, Mr. Man-wai Chang wrote:

    I do have an old Turbo C 2.0 project involving RS232 serial port. It
    would be interesting to make it work in Windows, with TCP/IP support.

    That is an old compiler!

    It's a Videotex emulator. Yes, it was indeed old and written only for single-user operating system MS DOS.

    I had an old C compiler for my Apple IIGS.
    Iirc, ORCA? I cannot 100% remember right now. Wait... https://github.com/byteworksinc/ORCA-C

    This was before I got into programming my PC.

    I knew a Korean who wrote a program to print Korean characters in Apple
    ][ for his church, when i was in secondary school in Hong Kong. He used
    Apple BASIC, I believe.
    --

    @~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch!
    / v \ May the Force and farces be with you! Live long and prosper!!
    /( _ )\ https://sites.google.com/site/changmw/
    ^ ^ https://github.com/changmw/changmw
    --- Synchronet 3.22a-Linux NewsLink 1.2