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

[Feature Request] Font rendering in libmatoya #31

Open
mbroemme opened this issue May 21, 2021 · 3 comments
Open

[Feature Request] Font rendering in libmatoya #31

mbroemme opened this issue May 21, 2021 · 3 comments

Comments

@mbroemme
Copy link

I've quickly looked through the source code but haven't found anything related to font rendering. Actually a very nice feature would be to implement some sort of font rendering (TTF or old VGA DOS fonts or something else). I believe it will help to replace huge SDL+SDL_ttf libraries in some projects if this would be available in platform independent way in libmatoya.

@mbroemme mbroemme changed the title [Feature Request] [Feature Request] Font rendering in libmatoya May 21, 2021
@chrisd1100
Copy link
Collaborator

chrisd1100 commented May 21, 2021

I do have plans for this, although in a separate dependency -- you may have noticed the UI rendering operations like MTY_RendererDrawUI -- these are designed to accept the draw command list output of an immediate mode UI framework like ImGui (https://github.com/ocornut/imgui) or nuklear with minimal conversion. These frameworks support font rendering and much more for a minimal UI toolkit.

We have a wrapper planned around ImGui right now that will work well with libmatoya, hooking the MTY_App into the immediate mode framework. It will probably appear over the next few months.

@mbroemme
Copy link
Author

Looks like ImGui is a good choice as it supports multiple renderers and platforms and no external dependencies. I will wait for it and switch from SDL to libmatoya for my alternative Parsec client https://github.com/mbroemme/vdi-stream-client

@RGB-loop
Copy link

I want use libmatoya to render video and imgui to draw ui with MTY_WindowDrawUI . Can you provide a sample of wrapping imgui?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants