all repos — mgba @ 28702bdd23de19f6480432aea9e87d998c7fc9d1

mGBA Game Boy Advance Emulator

include/mgba/internal/ds/renderers/software.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 DS_VIDEO_SOFTWARE_H
 7#define DS_VIDEO_SOFTWARE_H
 8
 9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13#include <mgba/internal/ds/video.h>
14#include <mgba/internal/gba/renderers/video-software.h>
15
16struct DSVideoSoftwareRenderer {
17	struct DSVideoRenderer d;
18
19	struct GBAVideoSoftwareRenderer engA;
20	struct GBAVideoSoftwareRenderer engB;
21
22	color_t* outputBuffer;
23	int outputBufferStride;
24
25	uint32_t row[DS_VIDEO_HORIZONTAL_PIXELS];
26};
27
28void DSVideoSoftwareRendererCreate(struct DSVideoSoftwareRenderer* renderer);
29
30CXX_GUARD_END
31
32#endif