GithubHelp home page GithubHelp logo

rokups / imgui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ocornut/imgui

7.0 7.0 1.0 84.1 MB

Bloat-free Immediate Mode Graphical User interface for C++ with minimal dependencies

License: MIT License

C++ 87.66% C 10.36% Objective-C 0.15% Objective-C++ 1.79% Shell 0.01% GLSL 0.02% GDB 0.02%

imgui's Issues

Task: Facilitating using FreeType

Some pointers

  • Introduce e.g.
#define IMGUI_ENABLE_FREETYPE,
ImFontAtlasFlags_RasterizerStbTruetype,
ImFontAtlasFlags_RasterizerFreeType,
ImFontAtlasFlags_RasterizerMask_
ImFontAtlasFlags_RasterizerDefault_
  • Default can change to Freetype if the define is disabled so it means just enabling IMGUI_ENABLE_FREETYPE in imconfig.h can work for example_null
  • ImFontAtlas::Build() may select which build function to run based on those flags
  • Add extra commentary around Build() to clarify that in theory users could call those functions directly (which is what people using imgui_freetype today are already doing)
  • imgui_draw.cpp can include imgui_freeetype.h if IMGUI_ENABLE_FREETYPE is defined
  • Add support in example_null/main.cpp, update imgui_freetype's readme.
  • Will need to replace imgui_freetype BuildFontAtlas()'s extra_flags by e.g. SharedRasterizerFlags in ImGuiFontAtlas. maybe we could remove that parameter from BuildFontAtlas() - will break build of people using imgui_freetype but then they have a clear path in, being requested to set SharedRasterizerFlags if they used them.
  • Update the demo in imgui_freetype README, it is also in imgui_private/mains/main_freetype_dx11
  • Maybe verify that #include <ft2build.h> in imgui_freetype.cpp is the "standard way" of accessing freetype (vs some #include <somefolder/ft2build.h> or #include "ft2build.h" so probably need to check freetype docs/examples
  • etc.

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.