Commit Graph

1 Commits

Author SHA1 Message Date
halx99 bb2e0e372a [FEATURE] Add new API GLView::queueOperation
- Queue a priority operation in render thread, even through app in background
- Please do logic in callback, don't update ui or any other render state

usage

```
Director::getInstance()->getOpenGLView()->queueOperation([](void* param){
    // do somethings for logic only(Don't update render state or UI)
});
```
2023-05-31 20:42:39 +08:00