|
virtual std::string | url ()=0 |
| Thread-safe. More...
|
|
virtual void | call_js_method (const std::string &method_name, const std::string ¶ms)=0 |
| Adds js method call to call queue. More...
|
|
virtual void | reset ()=0 |
| reset effect state MUST be called from the render thread
|
|
Definition at line 15 of file effect.hpp.
◆ call_js_method()
virtual void bnb::interfaces::effect::call_js_method |
( |
const std::string & |
method_name, |
|
|
const std::string & |
params |
|
) |
| |
|
pure virtual |
Adds js method call to call queue.
Queue is performed during the draw operation. If there is an effect in loading state, all calls will be performed when the effect loading is finished. Thread-safe. May be called from any thread
- Parameters
-
method_name | JS global function name. Member functions are not supported. |
params | Function arguments as JSON string. |
◆ url()
virtual std::string bnb::interfaces::effect::url |
( |
| ) |
|
|
pure virtual |
Thread-safe.
May be called from any thread
The documentation for this class was generated from the following file:
- /Users/andreykrivoshey/Work/Repositories/banuba_sdk/libs/effect_player/bnb/effect_player/interfaces/effect.hpp