Giter VIP home page Giter VIP logo

xximgui's Introduction

xxImGui

A simulate Next-Generation Graphic API for ImGui

Library Dependencies

Library Note
imgui https://github.com/ocornut/imgui
freetype2 https://gitlab.freedesktop.org/freetype/freetype
stb https://github.com/nothings/stb
xxGraphic https://github.com/metarutaiga/xxGraphic

Supported Graphic API

API Android iOS macOS Windows Windows on ARM
Direct3D 5.0
Direct3D 6.0
Direct3D 7.0
Direct3D 8.0 🍷
Direct3D 9.0 🍷 🚑
Direct3D 9Ex 🍷 🚑
Direct3D 9On12 🚑
Direct3D 10.0
Direct3D 10.1
Direct3D 11.0
Direct3D 11On12
Direct3D 12.0
Glide 🚑
OpenGL ES 2.0
OpenGL ES 3.0
OpenGL ES 3.1
OpenGL ES 3.2
Mantle 🚑
Metal
Metal 2
Vulkan

Build and Run xxImGui for Windows on macOS

  1. Install wine and llvm (llvm-12 or above for ARM 32bit)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew tap gcenx/wine
brew install gcenx-wine-staging
brew install llvm
  1. Compile and install lld-link-wrapper and llvm-lib-wrapper
clang++ -Ofast lld-link-wrapper.cpp -o lld-link-wrapper
clang++ -Ofast llvm-lib-wrapper.cpp -o llvm-lib-wrapper
cp lld-link-wrapper /usr/local/opt/llvm/bin
cp llvm-lib-wrapper /usr/local/opt/llvm/bin
  1. Edit build/xxImGui.xcodeproj/xcshareddata/xcschemes/xxImGui (Windows).xcscheme
   <LaunchAction
      buildConfiguration = "Release"
      ...
      allowLocationSimulation = "YES">
      <PathRunnable
         runnableDebuggingMode = "0"
         FilePath = "/usr/local/bin/wine64">
      </PathRunnable>
      <CommandLineArguments>
         <CommandLineArgument
            argument = "xxImGui.exe"
            isEnabled = "YES">
         </CommandLineArgument>
      </CommandLineArguments>
   </LaunchAction>
  1. Set custom working directory

xximgui's People

Contributors

metarutaiga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xximgui's Issues

how to set imGui Window bg with an png picture by xxImage

hi,I now write windows tests with xxImGui, want set window bg picture with xxImage but failed.
steps as flow but failed:

  1. load png faile with stbi_load
    unsigned char *data = stbi_load(pngfile, &w, &h, &n, 4);
  2. create 2d image with xxImage
    xxImagePtr image = xxImage::Create2D(0, w, h, 1);
  3. copy the png content to xxImage instance
    memcpy((void*)image.get(), data, image->Size(1));
  4. Update it in DearImGui::Update
    ImGui::Begin("helloworld");
    img->Update(Renderer::g_device);
    ImGui::End();

what's the problem with my code? please help!! thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.