all repos — mgba @ 031049cd067d98cfc1172c15ac448f09300bdfa3

mGBA Game Boy Advance Emulator

include/mgba/internal/gba/renderers/common.h (view raw)

 1/* Copyright (c) 2013-2019 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 GBA_RENDERER_COMMON_H
 7#define GBA_RENDERER_COMMON_H
 8
 9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13#include <mgba/internal/gba/video.h>
14
15struct GBAVideoRendererSprite {
16	struct GBAObj obj;
17	int16_t y;
18	int16_t endY;
19	int16_t cycles;
20	int8_t index;
21};
22
23int GBAVideoRendererCleanOAM(struct GBAObj* oam, struct GBAVideoRendererSprite* sprites, int offsetY);
24
25CXX_GUARD_END
26
27#endif