sdl_con.h 1.5 KB
Newer Older
1 2 3 4 5 6 7
#ifndef _SDL_CON_H_
#define _SDL_CON_H_

#ifdef __cplusplus
extern "C" {
#endif
/* Low-Level stuff (Shouldn't be used by ciolib programs */
8
int sdl_init(int mode);
9 10 11 12 13
int sdl_load_font(char *filename, int width, int height, double scale);
int sdl_init_mode(int mode);
int sdl_setup_colours(void);
int sdl_draw_char(unsigned short vch, int xpos, int ypos);
int sdl_screen_redraw(void);
14
void exit_sdl_con(void);
15 16 17 18 19 20 21

/* High-level stuff */
int sdl_puttext(int sx, int sy, int ex, int ey, void *fill);
int sdl_gettext(int sx, int sy, int ex, int ey, void *fill);
int sdl_kbhit(void);
void sdl_delay(long msec);
void sdl_gotoxy(int x, int y);
22
int sdl_initciolib(long inmode);
23 24 25
void sdl_setcursortype(int type);
int sdl_getch(void);
void sdl_textmode(int mode);
26
void sdl_setname(const char *name);
27
void sdl_seticon(const void *, unsigned long size);
28 29 30 31 32
void sdl_settitle(const char *title);
int sdl_hidemouse(void);
int sdl_showmouse(void);
void sdl_copytext(const char *text, size_t buflen);
char *sdl_getcliptext(void);
33
int sdl_setfont(int font, int force);
deuce's avatar
deuce committed
34
int sdl_getfont(void);
Deucе's avatar
Deucе committed
35
int sdl_loadfont(const char *filename);
36
int sdl_get_window_info(int *width, int *height, int *xpos, int *ypos);
37
int sdl_setpalette(uint32_t index, uint16_t r, uint16_t g, uint16_t b);
deuce's avatar
deuce committed
38 39
void sdl_setwinsize(int w, int h);
void sdl_setwinposition(int x, int y);
40
void sdl_beep(void);
deuce's avatar
deuce committed
41
int sdl_mousepointer(enum ciolib_mouse_ptr type);
deuce's avatar
deuce committed
42 43 44 45 46 47

#if defined(__DARWIN__)
void sdl_init_darwin(void *args);
void sdl_video_event_thread(void *data);
#endif

48 49 50 51 52
#ifdef __cplusplus
}
#endif

#endif