• Re: C/C++ programming

    From Mr. Man-wai Chang@3:633/10 to All on Mon Jun 1 17:24:32 2026
    On 6/1/2026 4:19 PM, boltar@caprica.universe wrote:

    None. And I am NOT yet an expert C/C++ programmer. :)

    While its certainly possible to become an expert in C and know the entire language, I'm not sure its possible - at least for a human - for modern C++.


    Graphics programming and hence object-oriented programming is too harsh.
    Not for the faint-hearted including me. :)

    --

    @~@ 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

    --- PyGate Linux v1.5.15
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris M. Thomasson@3:633/10 to All on Mon Jun 1 15:35:50 2026
    On 6/1/2026 2:24 AM, Mr. Man-wai Chang wrote:
    On 6/1/2026 4:19 PM, boltar@caprica.universe wrote:

    None. And I am NOT yet an expert C/C++ programmer. :)

    While its certainly possible to become an expert in C and know the entire
    language, I'm not sure its possible - at least for a human - for
    modern C++.


    Graphics programming and hence object-oriented programming is too harsh.
    Not for the faint-hearted including me. :)


    Try programming dx12 from scratch. I have, getting good PBR lights and
    fun things. A single memcpy for update, ect... but its not an easy tasty
    piece of cake wrt coming from moden opengl. Wow.

    --- PyGate Linux v1.5.15
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Mr. Man-wai Chang@3:633/10 to All on Tue Jun 2 12:06:33 2026
    On 6/2/2026 6:35 AM, Chris M. Thomasson wrote:


    Try programming dx12 from scratch. I have, getting good PBR lights and
    fun things. A single memcpy for update, ect... but its not an easy tasty piece of cake wrt coming from moden opengl. Wow.

    You talking about game programming? Even more harsh then typical GUI stuffs.

    --

    @~@ 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

    --- PyGate Linux v1.5.15
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris M. Thomasson@3:633/10 to All on Tue Jun 2 13:29:13 2026
    On 6/1/2026 9:06 PM, Mr. Man-wai Chang wrote:
    On 6/2/2026 6:35 AM, Chris M. Thomasson wrote:


    Try programming dx12 from scratch. I have, getting good PBR lights and
    fun things. A single memcpy for update, ect... but its not an easy tasty
    piece of cake wrt coming from moden opengl. Wow.

    You talking about game programming? Even more harsh then typical GUI
    stuffs.


    Yeah. Game programming. dx12 makes my head itch a little...



    --- PyGate Linux v1.5.15
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris M. Thomasson@3:633/10 to All on Tue Jun 2 13:30:25 2026
    On 6/2/2026 1:29 PM, Chris M. Thomasson wrote:
    On 6/1/2026 9:06 PM, Mr. Man-wai Chang wrote:
    On 6/2/2026 6:35 AM, Chris M. Thomasson wrote:


    Try programming dx12 from scratch. I have, getting good PBR lights and
    fun things. A single memcpy for update, ect... but its not an easy tasty >>> piece of cake wrt coming from moden opengl. Wow.

    You talking about game programming? Even more harsh then typical GUI
    stuffs.


    Yeah. Game programming. dx12 makes my head itch a little...



    But, making the gui for it? Take a look at imgui.

    --- PyGate Linux v1.5.15
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Mr. Man-wai Chang@3:633/10 to All on Wed Jun 3 13:06:31 2026
    On 6/3/2026 4:30 AM, Chris M. Thomasson wrote:
    On 6/2/2026 1:29 PM, Chris M. Thomasson wrote:
    Try programming dx12 from scratch. I have, getting good PBR lights and >>>> fun things. A single memcpy for update, ect... but its not an easy tasty >>>> piece of cake wrt coming from moden opengl. Wow.

    Yeah. Game programming. dx12 makes my head itch a little...

    But, making the gui for it? Take a look at imgui.


    Can you use Win32API or maybe DotNet within DirectX as GUI? I have never written any games before, pardon my ignorance.

    --

    @~@ 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

    --- PyGate Linux v1.5.15
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris M. Thomasson@3:633/10 to All on Wed Jun 3 14:54:17 2026
    On 6/2/2026 10:06 PM, Mr. Man-wai Chang wrote:
    On 6/3/2026 4:30 AM, Chris M. Thomasson wrote:
    On 6/2/2026 1:29 PM, Chris M. Thomasson wrote:
    Try programming dx12 from scratch. I have, getting good PBR lights and >>>>> fun things. A single memcpy for update, ect... but its not an easy
    tasty
    piece of cake wrt coming from moden opengl. Wow.

    Yeah. Game programming. dx12 makes my head itch a little...

    But, making the gui for it? Take a look at imgui.


    Can you use Win32API or maybe DotNet within DirectX as GUI? I have never written any games before, pardon my ignorance.


    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.

    --- PyGate Linux v1.5.15
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris M. Thomasson@3:633/10 to All on Wed Jun 3 14:56:24 2026
    On 6/3/2026 2:54 PM, Chris M. Thomasson wrote:
    On 6/2/2026 10:06 PM, Mr. Man-wai Chang wrote:
    On 6/3/2026 4:30 AM, Chris M. Thomasson wrote:
    On 6/2/2026 1:29 PM, Chris M. Thomasson wrote:
    Try programming dx12 from scratch. I have, getting good PBR lights >>>>>> and
    fun things. A single memcpy for update, ect... but its not an easy >>>>>> tasty
    piece of cake wrt coming from moden opengl. Wow.

    Yeah. Game programming. dx12 makes my head itch a little...

    But, making the gui for it? Take a look at imgui.


    Can you use Win32API or maybe DotNet within DirectX as GUI? I have
    never written any games before, pardon my ignorance.


    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. ;^D You should be able to make a window in app
    space to render dx12/opengl on, cannot remember right now. QWindow and QOpenGLWidget? shit happens.

    --- PyGate Linux v1.5.15
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Mr. Man-wai Chang@3:633/10 to All on Thu Jun 4 13:18:20 2026
    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

    --- PyGate Linux v1.5.15
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris M. Thomasson@3:633/10 to All on Thu Jun 4 13:28:20 2026
    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...

    --- PyGate Linux v1.5.15
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Mr. Man-wai Chang@3:633/10 to All on Wed Jun 10 17:37:50 2026
    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

    --- PyGate Linux v1.5.15
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)