Flutter Engine
The Flutter Engine
|
#include <entity_playground.h>
Public Types | |
using | EntityPlaygroundCallback = std::function< bool(ContentContext &context, RenderPass &pass)> |
Public Types inherited from impeller::Playground | |
using | SinglePassCallback = std::function< bool(RenderPass &pass)> |
Public Member Functions | |
EntityPlayground () | |
~EntityPlayground () | |
void | SetTypographerContext (std::shared_ptr< TypographerContext > typographer_context) |
bool | OpenPlaygroundHere (Entity entity) |
bool | OpenPlaygroundHere (EntityPass &entity_pass) |
bool | OpenPlaygroundHere (EntityPlaygroundCallback callback) |
std::shared_ptr< ContentContext > | GetContentContext () const |
Public Member Functions inherited from impeller::PlaygroundTest | |
PlaygroundTest () | |
virtual | ~PlaygroundTest () |
void | SetUp () override |
void | TearDown () override |
PlaygroundBackend | GetBackend () const |
std::unique_ptr< fml::Mapping > | OpenAssetAsMapping (std::string asset_name) const override |
RuntimeStage::Map | OpenAssetAsRuntimeStage (const char *asset_name) const |
std::string | GetWindowTitle () const override |
Public Member Functions inherited from impeller::Playground | |
Playground (PlaygroundSwitches switches) | |
virtual | ~Playground () |
void | SetupContext (PlaygroundBackend backend, const PlaygroundSwitches &switches) |
void | SetupWindow () |
void | TeardownWindow () |
bool | IsPlaygroundEnabled () const |
Point | GetCursorPosition () const |
ISize | GetWindowSize () const |
Point | GetContentScale () const |
Scalar | GetSecondsElapsed () const |
Get the amount of time elapsed from the start of the playground's execution. More... | |
std::shared_ptr< Context > | GetContext () const |
std::shared_ptr< Context > | MakeContext () const |
bool | OpenPlaygroundHere (const Renderer::RenderCallback &render_callback) |
bool | OpenPlaygroundHere (SinglePassCallback pass_callback) |
std::shared_ptr< Texture > | CreateTextureForFixture (const char *fixture_name, bool enable_mipmapping=false) const |
std::shared_ptr< Texture > | CreateTextureCubeForFixture (std::array< const char *, 6 > fixture_names) const |
virtual std::unique_ptr< fml::Mapping > | OpenAssetAsMapping (std::string asset_name) const =0 |
virtual std::string | GetWindowTitle () const =0 |
fml::Status | SetCapabilities (const std::shared_ptr< Capabilities > &capabilities) |
bool | WillRenderSomething () const |
Additional Inherited Members | |
Static Public Member Functions inherited from impeller::Playground | |
static bool | ShouldOpenNewPlaygrounds () |
static std::shared_ptr< CompressedImage > | LoadFixtureImageCompressed (std::shared_ptr< fml::Mapping > mapping) |
static std::optional< DecompressedImage > | DecodeImageRGBA (const std::shared_ptr< CompressedImage > &compressed) |
static std::shared_ptr< Texture > | CreateTextureForMapping (const std::shared_ptr< Context > &context, std::shared_ptr< fml::Mapping > mapping, bool enable_mipmapping=false) |
static bool | SupportsBackend (PlaygroundBackend backend) |
Protected Member Functions inherited from impeller::Playground | |
virtual bool | ShouldKeepRendering () const |
void | SetWindowSize (ISize size) |
Protected Attributes inherited from impeller::Playground | |
const PlaygroundSwitches | switches_ |
Definition at line 17 of file entity_playground.h.
using impeller::EntityPlayground::EntityPlaygroundCallback = std::function<bool(ContentContext& context, RenderPass& pass)> |
Definition at line 19 of file entity_playground.h.
impeller::EntityPlayground::EntityPlayground | ( | ) |
Definition at line 13 of file entity_playground.cc.
|
default |
std::shared_ptr< ContentContext > impeller::EntityPlayground::GetContentContext | ( | ) | const |
Definition at line 45 of file entity_playground.cc.
bool impeller::EntityPlayground::OpenPlaygroundHere | ( | Entity | entity | ) |
Definition at line 49 of file entity_playground.cc.
bool impeller::EntityPlayground::OpenPlaygroundHere | ( | EntityPass & | entity_pass | ) |
Definition at line 23 of file entity_playground.cc.
bool impeller::EntityPlayground::OpenPlaygroundHere | ( | EntityPlaygroundCallback | callback | ) |
Definition at line 68 of file entity_playground.cc.
void impeller::EntityPlayground::SetTypographerContext | ( | std::shared_ptr< TypographerContext > | typographer_context | ) |
Definition at line 18 of file entity_playground.cc.