

Definition at line 105 of file sdl.cpp.
Public Member Functions | |
| bx_sdl_gui_c (CConfigurator *cfg) | |
| virtual void | specific_init (unsigned x_tilesize, unsigned y_tilesize) |
| virtual void | text_update (u8 *old_text, u8 *new_text, unsigned long cursor_x, unsigned long cursor_y, bx_vga_tminfo_t tm_info, unsigned rows) |
| virtual void | graphics_tile_update (u8 *snapshot, unsigned x, unsigned y) |
| virtual void | handle_events (void) |
| virtual void | flush (void) |
| Flush any changes to sdl_screen to the actual window. | |
| virtual void | clear_screen (void) |
| Clear sdl_screen display, and flush it. | |
| virtual bool | palette_change (unsigned index, unsigned red, unsigned green, unsigned blue) |
| Set palette-entry index to the desired value. | |
| virtual void | dimension_update (unsigned x, unsigned y, unsigned fheight=0, unsigned fwidth=0, unsigned bpp=8) |
| virtual void | mouse_enabled_changed_specific (bool val) |
| virtual void | exit (void) |
| virtual bx_svga_tileinfo_t * | graphics_tile_info (bx_svga_tileinfo_t *info) |
| virtual u8 * | graphics_tile_get (unsigned x, unsigned y, unsigned *w, unsigned *h) |
| virtual void | graphics_tile_update_in_place (unsigned x, unsigned y, unsigned w, unsigned h) |
Private Attributes | |
| CConfigurator * | myCfg |
| bx_sdl_gui_c::bx_sdl_gui_c | ( | CConfigurator * | cfg | ) |
| void bx_sdl_gui_c::specific_init | ( | unsigned | x_tilesize, | |
| unsigned | y_tilesize | |||
| ) | [virtual] |
Implements bx_gui_c.
Definition at line 180 of file sdl.cpp.
References bx_keymap, BX_PANIC, convertStringToSDLKey(), dimension_update(), FAILURE, CConfigurator::get_bool_value(), half_res_x, half_res_y, bx_keymap_c::loadKeymap(), myCfg, bx_gui_c::new_gfx_api, sdl_font8x16, sdl_screen, tileheight, tilewidth, and bx_gui_c::vga_charmap.
| void bx_sdl_gui_c::text_update | ( | u8 * | old_text, | |
| u8 * | new_text, | |||
| unsigned long | cursor_x, | |||
| unsigned long | cursor_y, | |||
| bx_vga_tminfo_t | tm_info, | |||
| unsigned | rows | |||
| ) | [virtual] |
Implements bx_gui_c.
Definition at line 229 of file sdl.cpp.
References bx_gui_c::charmap_updated, bx_vga_tminfo_t::cs_end, bx_vga_tminfo_t::cs_start, fontheight, fontwidth, CVGA::get_actl_palette_idx(), h_panning, bx_vga_tminfo_t::h_panning, line_compare, bx_vga_tminfo_t::line_compare, bx_vga_tminfo_t::line_graphics, bx_vga_tminfo_t::line_offset, palette, prev_cursor_x, prev_cursor_y, res_y, sdl_screen, bx_vga_tminfo_t::split_hpanning, bx_vga_tminfo_t::start_address, text_cols, text_rows, theVGA, v_panning, bx_vga_tminfo_t::v_panning, and bx_gui_c::vga_charmap.
| void bx_sdl_gui_c::graphics_tile_update | ( | u8 * | snapshot, | |
| unsigned | x, | |||
| unsigned | y | |||
| ) | [virtual] |
Implements bx_gui_c.
Definition at line 490 of file sdl.cpp.
References BX_PANIC, palette, res_y, sdl_screen, tileheight, tilewidth, and vga_bpp.
| void bx_sdl_gui_c::handle_events | ( | void | ) | [virtual] |
Implements bx_gui_c.
Definition at line 973 of file sdl.cpp.
References BXKeyEntry::baseKey, BX_DEBUG, BX_ERROR, BX_KEY_CAPS_LOCK, BX_KEY_NUM_LOCK, BX_KEY_RELEASED, BX_KEY_UNHANDLED, bx_keymap, FAILURE, bx_keymap_c::findHostKey(), CKeyboard::gen_scancode(), CConfigurator::get_bool_value(), bx_gui_c::key_event(), myCfg, res_x, res_y, sdl_event, sdl_screen, sdl_sym_to_bx_key(), and theKeyboard.
| void bx_sdl_gui_c::flush | ( | void | ) | [virtual] |
| void bx_sdl_gui_c::clear_screen | ( | void | ) | [virtual] |
| bool bx_sdl_gui_c::palette_change | ( | unsigned | index, | |
| unsigned | red, | |||
| unsigned | green, | |||
| unsigned | blue | |||
| ) | [virtual] |
Set palette-entry index to the desired value.
The palette is used in text-mode and in 8bpp VGA mode.
Implements bx_gui_c.
Definition at line 1210 of file sdl.cpp.
References palette, and sdl_screen.
| void bx_sdl_gui_c::dimension_update | ( | unsigned | x, | |
| unsigned | y, | |||
| unsigned | fheight = 0, |
|||
| unsigned | fwidth = 0, |
|||
| unsigned | bpp = 8 | |||
| ) | [virtual] |
Implements bx_gui_c.
Definition at line 1225 of file sdl.cpp.
References FAILURE_1, FAILURE_3, fontheight, fontwidth, half_res_x, half_res_y, res_x, res_y, sdl_screen, text_cols, text_rows, and vga_bpp.
Referenced by specific_init().
| void bx_sdl_gui_c::mouse_enabled_changed_specific | ( | bool | val | ) | [virtual] |
| void bx_sdl_gui_c::exit | ( | void | ) | [virtual] |
| bx_svga_tileinfo_t * bx_sdl_gui_c::graphics_tile_info | ( | bx_svga_tileinfo_t * | info | ) | [virtual] |
Reimplemented from bx_gui_c.
Definition at line 531 of file sdl.cpp.
References bx_svga_tileinfo_t::blue_mask, bx_svga_tileinfo_t::blue_shift, bx_svga_tileinfo_t::bpp, bx_svga_tileinfo_t::green_mask, bx_svga_tileinfo_t::green_shift, bx_svga_tileinfo_t::is_indexed, bx_svga_tileinfo_t::is_little_endian, bx_svga_tileinfo_t::pitch, bx_svga_tileinfo_t::red_mask, bx_svga_tileinfo_t::red_shift, and sdl_screen.
| u8 * bx_sdl_gui_c::graphics_tile_get | ( | unsigned | x, | |
| unsigned | y, | |||
| unsigned * | w, | |||
| unsigned * | h | |||
| ) | [virtual] |
Reimplemented from bx_gui_c.
Definition at line 562 of file sdl.cpp.
References res_x, res_y, sdl_screen, tileheight, and tilewidth.
| void bx_sdl_gui_c::graphics_tile_update_in_place | ( | unsigned | x, | |
| unsigned | y, | |||
| unsigned | w, | |||
| unsigned | h | |||
| ) | [virtual] |
CConfigurator* bx_sdl_gui_c::myCfg [private] |