summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/render.h
Commit message (Collapse)AuthorAgeFilesLines
* Here's another MAME tidy patch. This one adds missing const/statics, Aaron Giles2008-11-021-6/+0
| | | | | | | | | | adds/removes entries in header files, and fixes a few potential multisession issues by explicitly adding initializers. asic65.c has significant changes to accomodate using a struct instead of 16 variables, otherwise the changes in this patch are modest and obvious. [Atari Ace]
* Plumbed machine parameters through the renderer. Removed need for Aaron Giles2008-09-291-13/+13
| | | | | | | | | | | | | | | | | | | | | | | deprecat.h. Changed render_texture_set_bitmap() to accept a palette object instead of a palette index. The renderer remains optimized for the system palette but will work if objects have their own palette as well. Changed renderer to permit palettes for RGB and YUY textures. If specified, these palettes specify a 32-entry (RGB15) or 256-entry (others) lookup for applying additional brightness/contrast/gamma on a per-texture basis. Removed rescale notification. It never really worked that well and violated proper layering. Renamed palette_set_brightness() to palette_set_pen_contrast() for clarity. Changed palette objects to support global brightness/contrast/gamma in addition to per-group and per-entry controls.
* Removed render_container_set_palette_alpha() hack. Now the alpha value Aaron Giles2008-09-271-3/+0
| | | | | can be set directly in the palette entry and will be respected for laserdisc overlays.
* OSD notice: you now need to report separate mouse up/mouse down events Aaron Giles2008-09-091-0/+3
| | | | | | | | | | | | | | | | | | for this new support to work. Clickable input support. Mostly by Nathan. A few changes from the proposal: * as far as the layout is concerned, states are 0 (off) or 1 (on) and aren't impacted by the port's ACTIVE_HIGH or ACTIVE_LOW * instead of checking each individual field for a hit, we look to see what is hit once per frame and then just check against that; this is faster, but does limit us to a single hit item * added function input_field_by_tag_and_mask() to look up a particular input_field_config by tag and mask; this makes it possible to easily get the port default value or other information as necessary
* Cleanups. Aaron Giles2008-07-171-1/+1
|
* Replaced the crazy number of get/set functions for render containers with Aaron Giles2008-07-131-46/+24
| | | | a single get/set of a user settings struct.
* Note: I have done some testing, but there are probably more bugs Aaron Giles2008-07-121-0/+7
| | | | | | | | | | | | | | | | | | | lurking. If you run into anything odd, please let me know. Added new module uiinput.c which manages input for the user interface. The OSD is responsible for pushing mouse events and character events to this interface in order to support mouse movement and text-based input (currently only used for the select game menu). Added support for navigating through the menus using the mouse. [Nathan Woods, Aaron Giles] Redesigned the UI menus so that they can maintain a richer state. Now the menus can be generated once and reused, rather than requiring them to be regenerated on each frame. All menus also share a comment eventing system and navigation through them is managed centrally. Rewrote all the menus to use the new system, apart from the cheat menus, which are now disabled. Reorganized the video menu to make it easier to understand. [Aaron Giles]
* Added new function video_get_view_for_target() which selects a view based Aaron Giles2008-06-161-1/+0
| | | | | | on a command-line parameter and the configuration. Changed Windows OSD code to use this instead of its own logic. Changed -snapview to share the logic as well, enabling 'auto' as a -snapview option.
* - More machine->screen removal Zsolt Vasvari2008-03-111-2/+2
| | | | - Hooked up swapped videoram in Karnov properly -- same idea as Burger Time
* - First batch of machine->screen[] access has been removed Zsolt Vasvari2008-03-111-1/+1
| | | | | | | | | - Added video_screen_auto_bitmap_alloc(screen) -- it is just a shorthand for auto_bitmap_alloc(video_screen_get_width(screen), video_screen_get_height(screen), video_screen_get_format(screen)) which is a common operation - The Dynax/Don Den Lover games now do their updating in VIDEO_UPDATE instead of VIDEO_EOF. This semmed to have fixed the palette problems - Went through some of these drivers and changed Machine to machine
* Removes the scrnum parameter from VIDEO_UPDATE, updates all drivers to use ↵ Zsolt Vasvari2008-03-101-1/+1
| | | | | | the screen device instead. render.c now uses screen devices
* Normalized function pointer typedefs: they are now all Aaron Giles2008-03-031-2/+2
| | | | | | | | | | suffixed with _func. Did this throughout the core and drivers I was familiar with. Fixed gcc compiler error with recent render.c changes. gcc does not like explicit (int) casts on float or double functions. This is fracking annoying and stupid, but there you have it.
* render.[ch]: change type of target_orientation in ↵ Couriersud2008-03-021-1/+1
| | | | target_compute_visible_area to int for consistency with other calls.
* Replaces mame_bitmap with bitmap_t Zsolt Vasvari2008-02-291-4/+4
| | | | Removes mame_bitmap
* Copyright cleanup: Aaron Giles2008-01-061-1/+1
| | | | | | - removed years from copyright notices - removed redundant (c) from copyright notices - updated "the MAME Team" to be "Nicola Salmoria and the MAME Team"
* Changes for MAME 0.121u2.mame0121u2 Aaron Giles2007-12-171-11/+17
|
* Initial checkin of MAME 0.121.mame0121 Aaron Giles2007-12-171-0/+478