 |
Flutter Impeller
|
|
Go to the documentation of this file.
10 #include "flutter/fml/closure.h"
11 #include "flutter/fml/macros.h"
12 #include "flutter/fml/time/time_delta.h"
66 std::shared_ptr<fml::Mapping> mapping);
69 const std::shared_ptr<CompressedImage>& compressed);
72 const std::shared_ptr<Context>& context,
73 std::shared_ptr<fml::Mapping> mapping,
74 bool enable_mipmapping =
false);
77 const char* fixture_name,
78 bool enable_mipmapping =
false)
const;
81 std::array<const char*, 6> fixture_names)
const;
86 std::string asset_name)
const = 0;
98 fml::TimeDelta start_time_;
99 std::unique_ptr<GLFWInitializer> glfw_initializer_;
100 std::unique_ptr<PlaygroundImpl> impl_;
101 std::shared_ptr<Context> context_;
102 std::unique_ptr<Renderer> renderer_;
103 Point cursor_position_;
106 void SetCursorPosition(
Point pos);
108 void SetWindowSize(
ISize size);
static bool ShouldOpenNewPlaygrounds()
std::shared_ptr< Texture > CreateTextureCubeForFixture(std::array< const char *, 6 > fixture_names) const
virtual bool ShouldKeepRendering() const
std::function< bool(RenderTarget &render_target)> RenderCallback
static std::optional< DecompressedImage > DecodeImageRGBA(const std::shared_ptr< CompressedImage > &compressed)
Scalar GetSecondsElapsed() const
Get the amount of time elapsed from the start of the playground's execution.
ISize GetWindowSize() const
std::string PlaygroundBackendToString(PlaygroundBackend backend)
const PlaygroundSwitches switches_
std::function< bool(RenderPass &pass)> SinglePassCallback
Render passes encode render commands directed as one specific render target into an underlying comman...
static std::shared_ptr< Texture > CreateTextureForMapping(const std::shared_ptr< Context > &context, std::shared_ptr< fml::Mapping > mapping, bool enable_mipmapping=false)
Point GetContentScale() const
static std::shared_ptr< CompressedImage > LoadFixtureImageCompressed(std::shared_ptr< fml::Mapping > mapping)
virtual std::string GetWindowTitle() const =0
virtual std::unique_ptr< fml::Mapping > OpenAssetAsMapping(std::string asset_name) const =0
Point GetCursorPosition() const
void SetupContext(PlaygroundBackend backend)
static bool SupportsBackend(PlaygroundBackend backend)
bool OpenPlaygroundHere(const Renderer::RenderCallback &render_callback)
Playground(PlaygroundSwitches switches)
std::shared_ptr< Context > GetContext() const
std::shared_ptr< Texture > CreateTextureForFixture(const char *fixture_name, bool enable_mipmapping=false) const