#include <aiks_playground.h>
Public Types | |
using | AiksPlaygroundCallback = std::function< std::optional< Picture >(AiksContext &renderer)> |
![]() | |
using | SinglePassCallback = std::function< bool(RenderPass &pass)> |
Public Member Functions | |
AiksPlayground () | |
~AiksPlayground () | |
void | TearDown () override |
void | SetTypographerContext (std::shared_ptr< TypographerContext > typographer_context) |
bool | OpenPlaygroundHere (Picture picture) |
bool | OpenPlaygroundHere (AiksPlaygroundCallback callback) |
![]() | |
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 |
![]() | |
Playground (PlaygroundSwitches switches) | |
virtual | ~Playground () |
void | SetupContext (PlaygroundBackend backend) |
void | SetupWindow () |
void | TeardownWindow () |
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 |
fml::Status | SetCapabilities (const std::shared_ptr< Capabilities > &capabilities) |
bool | WillRenderSomething () const |
Static Public Member Functions | |
static bool | ImGuiBegin (const char *name, bool *p_open, ImGuiWindowFlags flags) |
![]() | |
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) |
Additional Inherited Members | |
![]() | |
void | SetWindowSize (ISize size) |
![]() | |
const PlaygroundSwitches | switches_ |
Definition at line 18 of file aiks_playground.h.
using impeller::AiksPlayground::AiksPlaygroundCallback = std::function<std::optional<Picture>(AiksContext& renderer)> |
Definition at line 21 of file aiks_playground.h.
impeller::AiksPlayground::AiksPlayground | ( | ) |
Definition at line 15 of file aiks_playground.cc.
|
default |
|
static |
Definition at line 59 of file aiks_playground.cc.
Referenced by impeller::testing::TEST_P().
bool impeller::AiksPlayground::OpenPlaygroundHere | ( | AiksPlaygroundCallback | callback | ) |
Definition at line 36 of file aiks_playground.cc.
References impeller::PlaygroundSwitches::enable_playground, impeller::Playground::GetContext(), impeller::AiksContext::IsValid(), impeller::Playground::OpenPlaygroundHere(), impeller::AiksContext::Render(), impeller::AiksInspector::RenderInspector(), and impeller::Playground::switches_.
bool impeller::AiksPlayground::OpenPlaygroundHere | ( | Picture | picture | ) |
Definition at line 30 of file aiks_playground.cc.
Referenced by impeller::testing::CanRenderConicalGradientWithDithering(), impeller::testing::CanRenderLinearGradientWithDithering(), impeller::testing::CanRenderRadialGradientWithDithering(), and impeller::testing::CanRenderSweepGradientWithDithering().
void impeller::AiksPlayground::SetTypographerContext | ( | std::shared_ptr< TypographerContext > | typographer_context | ) |
Definition at line 20 of file aiks_playground.cc.
|
override |
Definition at line 25 of file aiks_playground.cc.
References impeller::AiksInspector::HackResetDueToTextureLeaks(), and impeller::PlaygroundTest::TearDown().