Welcome to bayersglassey.com!

Prismelrenderer

View this page's source

Go back: HomeGeom 2018

...it's the thing which renders your prismels.

As of this writing, its definition is:

typedef struct prismelrenderer {
    bool cache_bitmaps;
    vecspace_t *space;
    stringstore_t stringstore;
    ARRAY_DECL(struct font*, fonts)
    ARRAY_DECL(struct geomfont*, geomfonts)
    ARRAY_DECL(struct prismel*, prismels)
    ARRAY_DECL(struct rendergraph*, rendergraphs)
    ARRAY_DECL(struct prismelmapper*, mappers)
    ARRAY_DECL(struct palettemapper*, palmappers)
} prismelrenderer_t;

From C, one generally uses it by loading a .fus file with prismelrenderer_load.

The syntax is:

import FILENAME

prismels:
    ...

shapes:
    ...

mappers:
    ...

palmappers:
    ...

geomfonts:
    ...

You can think of it as defining several different "namespaces", one for each type of object.