Coder Social home page Coder Social logo

nimgl_test's Introduction

Nimgl / ImGui demo program

Note: Using ImGui v1.89.9 (2023/09) https://github.com/dinau/nimgl-imgui
forked from https://github.com/daniel-j/nimgl-imgui .

Prerequisite


  • OS: Windows10 or later, Debian 12 Bookworm (Linux)

  • nim-1.6.20 or later

  • Download

    $ git clone https://github.com/dinau/nimgl_test
    $ cd nimgl_test
  • For Linux Debian 12 Bookworm or later

    $ sudo apt install xorg-dev libopengl-dev libgl1-mesa-dev

Install dependencies


$ pwd
nimgl_test
$ nimble build

Examples



$ pwd 
nimgl_test
$ cd examples/glfw_opengl3
$ make run

alt


$ pwd 
nimgl_test
$ cd examples/glfw_opengl3_image_load
$ make run

alt


$ pwd 
nimgl_test
$ cd examples/glfw_opengl3_implot
$ make run

alt


$ pwd 
nimgl_test
cd examples/imDrawListParty
$ make run

ImDrawList coding party - deadline Nov 30, 2020! #3606
This demo has been converted to Nim lang from two programs,
Curve
alt
and Real-time visualization of the interweb blogosphere.

alt alt


ImPlot demo with Japanese fonts

$ pwd 
nimgl_test
$ cd examples/implot_jp
$ make run

alt


$ pwd 
nimgl_test
$ cd examples/jpfont
$ make run

alt

IME for Japanese / 日本語入力(IME)について


以下のNim言語コンパイル / リンク時オプションを加えることで日本語入力を可能としている
オプションはバックエンドのC/C++コンパイラにのみ渡される

--passc:"-DIMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS"
--passL:"-limm32"

同じことをconfig.nims内に記述する場合は以下となる

switch "passC","-DIMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS"
switch "passL","-limm32"

My tools version


  • Nim Compiler Version 2.0.4
  • gcc.exe (Rev2, Built by MSYS2 project) 13.2.0-2
  • gcc-libs 13.2.0-2
  • binutils 2.41-3
  • git version 2.41.0.windows.3
  • make: GNU Make 4.2.1

参考


Dear ImGuiで日本語入力時のIMEの位置をいい感じにする
Viewport, Platform: Fixed IME positioning for multi-viewport. Moved API from...
ImGui で日本語と記号♥と絵文字😺の表示

nimgl_test's People

Contributors

dinau avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.