/* * Prelude for the akgl-backend fragment in docs/10-embedding.md. Same shape as * hostbody.pre, plus the renderer and the two backend states those calls take. * Only compiled in the AKBASIC_WITH_AKGL build, which is the only one where * exists to include. */ #include #include #include static akbasic_Runtime RUNTIME; static akbasic_GraphicsBackend graphics; static akbasic_SpriteBackend sprites; static akbasic_AkglGraphics gstate; static akbasic_AkglSprites sstate; static akgl_RenderBackend *my_renderer; akerr_ErrorContext AKERR_NOIGNORE *akbasic_docs_fragment(void); akerr_ErrorContext AKERR_NOIGNORE *akbasic_docs_fragment(void) { PREPARE_ERROR(e);