all repos — mgba @ 4c38f769565e8ddd7d3a8eef1a41975206c129a0

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, bool tilt);
18
19void ctrActivateTexture(C3D_Tex* texture);
20void ctrTextureMultiply(void);
21void ctrTextureBias(u32 color);
22void ctrAddRectEx(u32 color, s16 x, s16 y, s16 w, s16 h, s16 u, s16 v, s16 uw, s16 vh, float rotate);
23void ctrAddRect(u32 color, s16 x, s16 y, s16 u, s16 v, s16 w, s16 h);
24void ctrFlushBatch(void);
25void ctrFinalize(void);
26
27#endif