summaryrefslogtreecommitdiff
path: root/src/render/momo/momo.h
blob: 76686ba18588128ccbbb1b34aa6ea5d087ce5279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include <al/types.h>

#ifdef STELA_API_OPENGL
#include <stl/gl.h>
#endif

typedef struct {
    struct {
        bool (*MakeCurrent)(void *);
        void (*ReleaseCurrent)(void *);
        void (*SwapBuffers)(void *);
    } GL;
    void *Private;
} MOMO_Renderer;

bool MOMO_Init(MOMO_Renderer *mmr,
#ifdef STELA_API_OPENGL
    bool (*MakeCurrent)(void *),
    void (*ReleaseCurrent)(void *),
    void (*SwapBuffers)(void *),
#endif
    void *Private);
void MOMO_Render(MOMO_Renderer *mmr);