Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
console.h
Go to the documentation of this file.
1 /* RC2014 and generic Z80 SBC emulator
2  Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu
3  Copyright (C)2020,2021 LGB (Gábor Lénárt) <lgblgblgb@gmail.com>
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 2 of the License, or
8 (at your option) 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, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
18 
19 #ifndef XEMU_RC2014_CONSOLE_H_INCLUDED
20 #define XEMU_RC2014_CONSOLE_H_INCLUDED
21 
22 #define FONT_HEIGHT 16
23 
24 #define SCREEN_FORMAT SDL_PIXELFORMAT_ARGB8888
25 #define USE_LOCKED_TEXTURE 1
26 #define RENDER_SCALE_QUALITY 2
27 
28 #define conprintf(...) do { \
29  char _buf_for_msg_[4096]; \
30  CHECK_SNPRINTF(snprintf(_buf_for_msg_, sizeof _buf_for_msg_, __VA_ARGS__), sizeof _buf_for_msg_); \
31  conputs(_buf_for_msg_); \
32 } while (0)
33 
34 extern void console_output ( Uint8 data );
35 extern void conputs ( const char *s );
36 extern int console_status ( void );
37 extern int console_input ( void );
38 extern void console_cursor_blink ( int delay );
39 extern void console_iteration ( void );
40 extern int console_init ( int width, int height, int zoom_percent, Uint8 *video_mapped, Uint8 *color_mapped, int sdlrenderquality );
41 
42 extern void rc_shutdown_callback ( void );
43 
44 extern int console_io_traffic;
45 
46 #endif
console_io_traffic
int console_io_traffic
Definition: console.c:66
console_output
void console_output(Uint8 data)
Definition: console.c:106
sdlrenderquality
int sdlrenderquality
Definition: commodore_geos.c:150
conputs
void conputs(const char *s)
Definition: console.c:140
m65-memcontent-generator.data
data
Definition: m65-memcontent-generator.py:119
Uint8
uint8_t Uint8
Definition: fat32.c:51
rc_shutdown_callback
void rc_shutdown_callback(void)
Definition: rc2014.c:85
console_input
int console_input(void)
Definition: console.c:157
console_cursor_blink
void console_cursor_blink(int delay)
Definition: console.c:172
console_init
int console_init(int width, int height, int zoom_percent, Uint8 *video_mapped, Uint8 *color_mapped, int sdlrenderquality)
Definition: console.c:279
console_iteration
void console_iteration(void)
Definition: console.c:185
console_status
int console_status(void)
Definition: console.c:148