|
| | TestReactorGLES () |
| |
| | ~TestReactorGLES ()=default |
| |
| | TestReactorGLES () |
| |
| | ~TestReactorGLES ()=default |
| |
| | ReactorGLES (std::unique_ptr< ProcTableGLES > gl) |
| | Create a new reactor. There are expensive and only one per application instance is necessary. More...
|
| |
| | ~ReactorGLES () |
| | Destroy a reactor. More...
|
| |
| bool | IsValid () const |
| | If this is a valid reactor. Invalid reactors must be discarded immediately. More...
|
| |
| WorkerID | AddWorker (std::weak_ptr< Worker > worker) |
| | Adds a worker to the reactor. Each new worker must ensure that the context it manages is the same as the other workers in the reactor or in the same sharegroup. More...
|
| |
| bool | RemoveWorker (WorkerID id) |
| | Remove a previously added worker from the reactor. If the reactor has no workers, pending added operations will never run. More...
|
| |
| const ProcTableGLES & | GetProcTable () const |
| | Get the OpenGL proc. table the reactor uses to manage handles. More...
|
| |
| std::optional< GLuint > | GetGLHandle (const HandleGLES &handle) const |
| | Returns the OpenGL handle for a reactor handle if one is available. This is typically only safe to call within a reaction. That is, within a ReactorGLES::Operation. More...
|
| |
| std::optional< GLsync > | GetGLFence (const HandleGLES &handle) const |
| |
| HandleGLES | CreateHandle (HandleType type, GLuint external_handle=GL_NONE) |
| | Create a reactor handle. More...
|
| |
| HandleGLES | CreateUntrackedHandle (HandleType type) const |
| | Create a handle that is not managed by ReactorGLES. More...
|
| |
| void | CollectHandle (HandleGLES handle) |
| | Collect a reactor handle. More...
|
| |
| void | SetDebugLabel (const HandleGLES &handle, std::string_view label) |
| | Set the debug label on a reactor handle. More...
|
| |
| bool | CanSetDebugLabels () const |
| | Whether the device is capable of writing debug labels. More...
|
| |
| bool | AddOperation (Operation operation, bool defer=false) |
| | Adds an operation that the reactor runs on a worker that ensures that an OpenGL context is current. More...
|
| |
| bool | RegisterCleanupCallback (const HandleGLES &handle, const fml::closure &callback) |
| | Register a cleanup callback that will be invokved with the provided user data when the handle is destroyed. More...
|
| |
| bool | React () |
| | Perform a reaction on the current thread if able. More...
|
| |