22 lines
734 B
Plaintext
22 lines
734 B
Plaintext
|
|
/*
|
||
|
|
* 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
|
||
|
|
* <akbasic/akgl.h> exists to include.
|
||
|
|
*/
|
||
|
|
#include <akerror.h>
|
||
|
|
#include <akbasic/runtime.h>
|
||
|
|
#include <akbasic/akgl.h>
|
||
|
|
|
||
|
|
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);
|