#include <aiks_context.h>
Public Member Functions | |
| AiksContext (std::shared_ptr< Context > context, std::shared_ptr< TypographerContext > typographer_context) | |
| ~AiksContext () | |
| bool | IsValid () const |
| std::shared_ptr< Context > | GetContext () const |
| ContentContext & | GetContentContext () const |
| bool | Render (const Picture &picture, RenderTarget &render_target) |
Definition at line 20 of file aiks_context.h.
| impeller::AiksContext::AiksContext | ( | std::shared_ptr< Context > | context, |
| std::shared_ptr< TypographerContext > | typographer_context | ||
| ) |
Construct a new AiksContext.
| context | The Impeller context that Aiks should use for allocating resources and executing device commands. Required. |
| typographer_context | The text backend to use for rendering text. If nullptr is supplied, then attempting to draw text with Aiks will result in validation errors. |
Definition at line 12 of file aiks_context.cc.
|
default |
| ContentContext & impeller::AiksContext::GetContentContext | ( | ) | const |
Definition at line 39 of file aiks_context.cc.
Referenced by impeller::DlImageImpeller::MakeFromYUVTextures(), impeller::DlPlayground::OpenPlaygroundHere(), and impeller::AiksInspector::RenderInspector().
| std::shared_ptr< Context > impeller::AiksContext::GetContext | ( | ) | const |
Definition at line 35 of file aiks_context.cc.
Referenced by impeller::AiksInspector::RenderInspector().
| bool impeller::AiksContext::IsValid | ( | ) | const |
Definition at line 31 of file aiks_context.cc.
Referenced by impeller::DlPlayground::OpenPlaygroundHere(), impeller::AiksPlayground::OpenPlaygroundHere(), and Render().
| bool impeller::AiksContext::Render | ( | const Picture & | picture, |
| RenderTarget & | render_target | ||
| ) |
Definition at line 43 of file aiks_context.cc.
References IsValid(), and impeller::Picture::pass.
Referenced by impeller::DlPlayground::OpenPlaygroundHere(), and impeller::AiksPlayground::OpenPlaygroundHere().