renderer.h (1354B)
1/* 2 * Gearboy - Nintendo Game Boy Emulator 3 * Copyright (C) 2012 Ignacio Sanchez 4 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * any later version. 9 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see http://www.gnu.org/licenses/ 17 * 18 */ 19 20#ifndef RENDERER_H 21#define RENDERER_H 22 23#ifdef RENDERER_IMPORT 24 #define EXTERN 25#else 26 #define EXTERN extern 27#endif 28 29EXTERN uint32_t renderer_emu_texture; 30EXTERN uint32_t renderer_emu_debug_vram_background; 31EXTERN uint32_t renderer_emu_debug_vram_tiles[2]; 32EXTERN uint32_t renderer_emu_debug_vram_oam[40]; 33EXTERN const char* renderer_glew_version; 34EXTERN const char* renderer_opengl_version; 35 36EXTERN void renderer_init(void); 37EXTERN void renderer_destroy(void); 38EXTERN void renderer_begin_render(void); 39EXTERN void renderer_render(void); 40EXTERN void renderer_end_render(void); 41 42#undef RENDERER_IMPORT 43#undef EXTERN 44#endif /* RENDERER_H */