all repos — mgba @ 376c3e715e1b849077febe956aa954be53fad810

mGBA Game Boy Advance Emulator

src/platform/3ds/ctr-gpu.h (view raw)

 1/* Copyright (c) 2015 Yuri Kunde Schlesner
 2 * Copyright (c) 2016 Jeffrey Pfau
 3 *
 4 * This Source Code Form is subject to the terms of the Mozilla Public
 5 * License, v. 2.0. If a copy of the MPL was not distributed with this
 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 7
 8#ifndef GUI_GPU_H
 9#define GUI_GPU_H
10
11#include <3ds.h>
12#include <citro3d.h>
13
14bool ctrInitGpu(void);
15void ctrDeinitGpu(void);
16
17void ctrSetViewportSize(s16 w, s16 h);
18
19void ctrActivateTexture(C3D_Tex* texture);
20void ctrAddRectScaled(u32 color, s16 x, s16 y, s16 w, s16 h, s16 u, s16 v, s16 uw, s16 vh);
21void ctrAddRect(u32 color, s16 x, s16 y, s16 u, s16 v, s16 w, s16 h);
22void ctrFlushBatch(void);
23
24#endif