libctr9
Nintendo 3DS ARM9 library
ctr_gfx.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (C) 2016 Gabriel Marcano
3  *
4  * Refer to the COPYING.txt file at the top of the project directory. If that is
5  * missing, this file is licensed under the GPL version 2.0 or later.
6  *
7  ******************************************************************************/
8 
11 #ifndef CTR_GFX_H_
12 #define CTR_GFX_H_
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 typedef struct
19 {
20  uint32_t *top_framebuffer;
21  uint32_t *bottom_framebuffer;
23 
24 typedef enum
25 {
26  CTR_GFX_SCREEN_TOP, CTR_GFX_SCREEN_BOTTOM
27 } ctr_gfx_screen;
28 
29 void ctr_gfx_initialize(ctr_gfx_context *aContext, void *aTopFB, void *aBottomFB);
30 
31 uint32_t ctr_gfx_get_pixel(ctr_gfx_screen aScreen, size_t x, size_t y);
32 void ctr_gfx_set_pixel(ctr_gfx_screen aScreen, size_t x, size_t y, uint32_t aPixel);
33 void ctr_gfx_draw_line(ctr_gfx_screen aScreen, size_t x1, size_t y1, size_t x2, size_t y2, uint32_t aPixel);
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 
40 #endif//CTR_GFX_H_
41 
Definition: ctr_gfx.h:18