all repos — mgba @ 28702bdd23de19f6480432aea9e87d998c7fc9d1

mGBA Game Boy Advance Emulator

DS Video: Add missing file
Vicki Pfau vi@endrift.com
Fri, 17 Feb 2017 17:49:29 -0800
commit

28702bdd23de19f6480432aea9e87d998c7fc9d1

parent

f420bbe90b4b32db0bbb5903666a799e7774a3b3

1 files changed, 32 insertions(+), 0 deletions(-)

jump to
A include/mgba/internal/ds/renderers/software.h

@@ -0,0 +1,32 @@

+/* Copyright (c) 2013-2017 Jeffrey Pfau + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#ifndef DS_VIDEO_SOFTWARE_H +#define DS_VIDEO_SOFTWARE_H + +#include <mgba-util/common.h> + +CXX_GUARD_START + +#include <mgba/internal/ds/video.h> +#include <mgba/internal/gba/renderers/video-software.h> + +struct DSVideoSoftwareRenderer { + struct DSVideoRenderer d; + + struct GBAVideoSoftwareRenderer engA; + struct GBAVideoSoftwareRenderer engB; + + color_t* outputBuffer; + int outputBufferStride; + + uint32_t row[DS_VIDEO_HORIZONTAL_PIXELS]; +}; + +void DSVideoSoftwareRendererCreate(struct DSVideoSoftwareRenderer* renderer); + +CXX_GUARD_END + +#endif