all repos — mgba @ d4deaf62923cfcd83ca2e34ec1adfa409a194b95

mGBA Game Boy Advance Emulator

include/mgba/internal/gb/renderers/proxy.h (view raw)

 1/* Copyright (c) 2013-2017 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#ifndef GB_VIDEO_PROXY_H
 7#define GB_VIDEO_PROXY_H
 8
 9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13#include <mgba/internal/gb/video.h>
14#include "feature/video-logger.h"
15
16struct GBVideoProxyRenderer {
17	struct GBVideoRenderer d;
18	struct GBVideoRenderer* backend;
19	struct mVideoLogger* logger;
20
21	struct GBObj objThisLine[40];
22	size_t oamMax;
23};
24
25void GBVideoProxyRendererCreate(struct GBVideoProxyRenderer* renderer, struct GBVideoRenderer* backend);
26void GBVideoProxyRendererShim(struct GBVideo* video, struct GBVideoProxyRenderer* renderer);
27void GBVideoProxyRendererUnshim(struct GBVideo* video, struct GBVideoProxyRenderer* renderer);
28
29CXX_GUARD_END
30
31#endif