Skip to content

qaqFei/easy-phi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easy-phi

easy-phi

License: MIT Language

easy-phi is a library written in C++ to rendering phigros chart with no dependencies and all the platforms are supported.

Features

  • Chart Loading: Supports loading official Phigros and charts created by Re:PhiEdit.
  • High Performance: Optimized for performance, suitable for real-time rendering.
  • Simple API: Easy to use and understand.
  • Cross Platform: Works on any platform that supports C++.
  • Zero Dependencies: No external libraries are required.

Working On

  • Rendering Takeover: We're taking over the entire OpenGL pipeline — you don't write a single GL call. Just give us a proc (e.g. glfwGetProcAddress), and we handle context creation, buffer management, shader compilation, and all rendering operations from start to finish.

Examples

For the completed example, check out here.

And the Open RPE Recorder is a subproject of this project, you can find it here, we also provide its release.

Building

Note: This library requires C++20 or later.

Library

Just include the easy_phi.hpp header file in your project and you're ready to go!

If you want to use some extra features, you can define the following macros (helpers module is required):

  • EASY_PHI_TEXT_RENDERER: Enable internal text renderer, using stb_truetype.

  • EASY_PHI_IMAGE_DECODER: Enable internal image decoder, using stb_image.

  • EASY_PHI_GL_READ_RGB2YUV: Enable internal yuv2rgb conversion to convert GL::GL33Context::AsyncFrameReader::ReadResult, using yuv_rgb.

Tests

Tests only supports Windows, and you need to install python and mingw-w64 that supports C++20 or later to build the test programs.

You can run the main test program by the following command:

python ./build_test.py --run --debug

License

This project is licensed under the MIT License.

Other

The charts in test_files are not owned by this project, please contact for removal if there is any copyright infringement.

We do not guarantee that the api is stable between versions.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors