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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Porting the "drawing core" #226

Closed
nomi-san opened this issue Oct 6, 2020 · 4 comments
Closed

Porting the "drawing core" #226

nomi-san opened this issue Oct 6, 2020 · 4 comments

Comments

@nomi-san
Copy link

nomi-san commented Oct 6, 2020

Hi,

It's known that the "LCUI's drawing core" is based on PNG image and doesn't support hardware acceleration, but I'm interested in this awesome.
Is it possible to port as an independent library? And how if possible? 馃榾

Thanks.

@lc-soft
Copy link
Owner

lc-soft commented Oct 6, 2020

Is it possible to port as an independent library?

Yes, but some modifications are required. I had this idea a long time ago, but I didn鈥檛 have time to do it, and I don鈥檛 know much about other graphics libraries to design the best and easy-to-use graphics API.

And how if possible?

The following steps are required:

  1. Refer to the design of other graphics libraries and design a series of easy-to-use graphics APIs for the new graphics library.
  2. Write code to implement these APIs.
  3. Write Makefile or CMake configuration file.
  4. Submit portfiles to vcpkg so that other developers can install it using vcpkg.

@nomi-san
Copy link
Author

nomi-san commented Oct 6, 2020

Thanks, but.. I mean how to reuse "LCUI's drawing core", for drawing something without the GUI.

@lc-soft
Copy link
Owner

lc-soft commented Oct 7, 2020

I mean how to reuse "LCUI's drawing core", for drawing something without the GUI.

@nomi-san

Do you want me to provide sample code to show how to call the graphics API to drawing something without the GUI, or do you want me to change the drawing core to a library that can be used independently? If it is the former, I will consider it when I have time. If it is the latter, it is temporarily impossible.

@nomi-san
Copy link
Author

nomi-san commented Oct 7, 2020

Yep,

provide sample code to show how to call the graphics API...

// If you don't have time, I'll find out myself 馃槄

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

No branches or pull requests

2 participants