Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images component, background image component #642

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Commits on Jun 15, 2024

  1. Add stb_image.h and stb_image_resize2.h

    These libs (as single file) are used to load textures from files.
    
    Signed-off-by: Nicolas Adenis-Lamarre <[email protected]>
    nadenislamarre authored and jackun committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    82fc69b View commit details
    Browse the repository at this point in the history
  2. add load textures functions

    for the moment, this file includes only textures loading for opengl.
    imgui lacks a working vulkan addImage function.
    
    Signed-off-by: Nicolas Adenis-Lamarre <[email protected]>
    nadenislamarre authored and jackun committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    88d34c3 View commit details
    Browse the repository at this point in the history
  3. convert textures to rgba

    images textures need rgba (to load alpha for example for decorations).
    thus, this commit globally convert gl textures in rgba
    
    Signed-off-by: Nicolas Adenis-Lamarre <[email protected]>
    nadenislamarre authored and jackun committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    44917b7 View commit details
    Browse the repository at this point in the history
  4. Implement drawing (background) image.

    options: image <path> / image_max_width (int) / image_background (path)
    
    image : to display an image component (only one component of type image can be rendered)
            note that the texture is never cleared, nor reloaded (in case of configuration modification).
    
    image_max_width: by default, the width of the image is the one of the pannel (value is 0). with this
                     option, you can reduce it.
    
    image_background: global background image to display
    
    Signed-off-by: Nicolas Adenis-Lamarre <[email protected]>
    nadenislamarre authored and jackun committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    12620c9 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. avoid image() and background_image() from mingw

    Signed-off-by: Nicolas Adenis-Lamarre <[email protected]>
    nadenislamarre committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    6b72e36 View commit details
    Browse the repository at this point in the history
  2. add images legacy options

    Signed-off-by: Nicolas Adenis-Lamarre <[email protected]>
    nadenislamarre committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    86b4a2c View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. fix image with legacy parameter

    Signed-off-by: Nicolas Adenis-Lamarre <[email protected]>
    nadenislamarre committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    8073212 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. fix mangoapp vulkan parameter

    Signed-off-by: Nicolas Adenis-Lamarre <[email protected]>
    nadenislamarre committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    f48df52 View commit details
    Browse the repository at this point in the history