Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

firefeather/lib_RepicoGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

PicoTK

This library provides a lightweight OpenGL-based framework based on PicoGL.


Compatibility

This library has been tested on esp32-wrover-b.


Installation

  1. Download the library from the official repository.
  2. Add the header files and source files to your project directory.

Usage

  1. Implement your own initialization function and update function for updates.
  2. Initialize the user interface by calling "ui_init()" function with your own initialization function and update function as arguments.
  3. Call "ui_loop()" function to enter event loop and handle user interface events.
  4. Call "ui_end()" function to release resources used for UI.

Sample Code

see example folder


API Reference

**ui_init(void (init_fn)(void), int (update_fn)(void))

Initialize the user interface with your own initialization function and update function. Returns 0 on success, -1 otherwise.

Parameters:

  • init_fn: a function pointer to your own initialization function.
  • update_fn: a function pointer to your own update function for GUI logic updates.

ui_loop()

Main function to enter event loop and handle user interface events.

ui_end()

Release resources used for UI.

tkSwapBuffers()

Swap buffers to update the screen.


Reference/Quote

  1. kaaass's blog.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /