summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render
Commit message (Collapse)AuthorAgeFilesLines
* bgfx: Fixed crt-geom{,-deluxe} shader compilation and recompiled shaders. Vas Crabb2021-03-202-2/+2
|
* bgfx: crt-geom and crt-geom-deluxe enhancements (#7872) cgwg2021-03-207-70/+270
| | | | | | * Made spot size parameters adjustable also increased samples from 2 to 3 scanlines for crt-geom-deluxe. * Made horizontal interpolation adjustable. * bgfx crt-geom-deluxe: Made phosphor decay smoothly to zero at specified cutoff time. * bgfx crt-geom-deluxe: Added lowpass filter.
* bgfx png: The message parameters were the wrong way around. Robbbert2021-02-211-1/+1
|
* bgfx: crt-geom and crt-geom-deluxe enhancements (#7766) cgwg2021-02-214-33/+248
| | | | | | | Added a "brightness boost" feature for the shadow mask that works by making the brightness ratio between bright and dark mask pixels closer to 1 for the brighter parts of the image. Added clamping to zero so that underscanning produces a black border. Added a "raster bloom" effect to crt-geom-deluxe that makes the image grow slightly when the average brightness of the screen is high, mimicking a common defect in CRTs.
* render/bgfx: Use platform-specific path separator more consistently AJR2021-02-051-1/+1
|
* render/bgfx: Fix failure to load texture .png files when -artpath contains ↵ AJR2021-02-031-45/+34
| | | | multiple directories
* Update "2020" text to "2021" (#7713) Stiletto2021-01-281-1/+1
| | | Update "2020" text to "2021".
* ui: Clean up slider callbacks AJR2021-01-278-85/+30
|
* srcclean in preparation for branching release Vas Crabb2021-01-24110-270/+270
|
* bgfx: Fixed overlapping register in lcd-grid shaders and compiled for ↵ Vas Crabb2021-01-231-1/+1
| | | | Direct3D, SPIR-V, Metal, etc.
* bgfx: Added lcd-grid shader. (#7691) cgwg2021-01-235-0/+156
| | | Note that this is currently only compiled for GLSL.
* -getaway.cpp: Fixed steering control. Vas Crabb2021-01-231-11/+9
| | | | | | | | | | * Works fine with an analog stick/wheel, difficult to steer on the slippery "dotted" surface with keyboard/D-pad. -osd: Moved GCC intrinsics out of eminline.h so MAME_NOASM will take the pure C++ implementation with GCC (makes testing the fallback easier). -Removed a bunch of [[maybe_unused]] that aren't actually needed.
* ATTR_UNUSED, do you welcome C++17 in your heart and mind? Olivier Galibert2021-01-221-2/+2
|
* Much more core std::string_view modernization AJR2021-01-201-1/+1
| | | | | | | | | | | | | | | - Remove corestr.h from emu.h; update a few source files to not use it at all - Change strtrimspace, strtrimrightspace and core_filename_extract_* to be pure functions taking a std::string_view by value and returning the same type - Change strmakeupper and strmakelower to be pure functions taking a std::string_view and constructing a std::string - Remove the string-modifying version of zippath_parent - Change tag-based lookup functions in device_t to take std::string_view instead of const std::string & or const char * - Remove the subdevice tag cache from device_t (since device finders are now recommended) and replace it with a map covering directly owned subdevices only - Move the working directory setup method out of device_image_interface (only the UI seems to actually use the full version of this) - Change output_manager to use std::string_view for output name arguments - Change core_options to accept std::string_view for most name and value arguments (return values are still C strings for now) - Change miscellaneous other functions to accept std::string_view arguments - Remove a few string accessor macros from romload.h - Remove many unnecessary c_str() calls from logging/error messages
* osdwindow.cpp: Centralize basic functions; de-virtualize various getters AJR2021-01-042-16/+16
|
* render.h, rendlay.h: Dependency refactoring AJR2021-01-042-0/+2
| | | | | - render.h: Split out layout class declarations into rendlay.h, with some adjustments for the resulting incomplete types (std::reference_wrapper unfortunately does not allow these by C++17 rules) - rendlay.h: Move old header contents to layout/generic.h
* Modified crt-geom-deluxe to track the power-law fall-off for longer (up to ↵ cgwg2020-12-232-4/+14
| | | | | | 1024 frames). Ensured that the intensity falls to zero afterward. Note that this is currently only compiled for GLSL.
* bgfx/chainmanager.cpp: Remove another entirely useless string_format call AJR2020-12-211-1/+1
|
* util/png: Update add_text to take std::string_view for arguments AJR2020-12-211-2/+2
|
* Eliminate many unnecessary c_str calls AJR2020-12-212-6/+6
|
* -luaengine.cpp: Clean up render classes and expose screen image adjustments. Vas Crabb2020-12-131-2/+1
| | | | | | | | | | | | | | | | | | | | | * Started moving Lua class reference to docs. Expecting people to find the class reference material in the source isn’t going to help make it approachable. The docs allow longer explanations, better formatting, and cross reference links. * Added another layout scripting example to the docs. -goldnpkr.cpp: Minor clean-up. * Improved the short names for Witch Card and Witch Game clone sets. * Made Witch Up & Down artwork clickable. * Added working Video Klein sets where the parent is a working Video Klein set to the tiny subtarget. * Removed history from the header comment - we have version control for a readon.
* Fairly significant overhaul of Lua engine and some cleanup. Vas Crabb2020-11-254-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The things that were previously called device iterators are not iterators in the C++ sense of the word. This is confusing for newcomers. These have been renamed to be device enumerators. Several Lua methods and properties that previously returned tables now return lightweight wrappers for the underlying objects. This means creating them is a lot faster, but you can't modify them, and the performance characteristics of different operations varies. The render manager's target list uses 1-based indexing to be more like idiomatic Lua. It's now possible to create a device enumerator on any device, and then get subdevices (or sibling devices) using a relative tag. Much more render/layout functionality has been exposed to Lua. Layout scripts now have access to the layout file and can directly set the state of an item with no bindings, or register callbacks to obtain state. Some things that were previously methods are now read-only properties. Layout files are no longer required to supply a "name". This was problematic because the same layout file could be loaded for multiple instances of the same device, and each instance of the layout file should use the correct inputs (and in the future outputs) for the device instance it's associated with. This should also fix video output with MSVC builds by avoiding delegates that return things that don't fit in a register.
* Enable GCC implicit fallthrough warning. Vas Crabb2020-11-151-0/+1
| | | | | | I've guessed whether break or [[fallthrough]] is appropriate. In cases where it looked particularly suspicious, I added a FIXME comment. All of these changes should be reviewed by someone familiar with the code.
* Various improvements to image file handling: Vas Crabb2020-10-082-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | Moved MS DIB parser out of ICO file reader and made it available for artwork and layout images. Added more efficient I/O and better error checking for JPEG file loading (MAME will no longer exit immediately on a bad JPEG file). Made caller responsible for opening files for loading images, to avoid decompressing images used in ZIP/7z artwork multiple times. Added support for JPEG and Windows DIB to picture_image_device. Added support for SVG image files in external artwork. Added support for using I/O port value for animation state and masking animation state values. Made bounds elements more flexible in layouts. Reworked headers to reduce dependencies. Updated layout file format documentation.
* emu/render.cpp: Consider that screens can be hidden when choosing a default ↵ Vas Crabb2020-10-032-2/+2
| | | | view.
* Got rid of global_alloc/global_free. Vas Crabb2020-10-0311-89/+69
| | | | | | | | | | | | | | | | | | | | | | | | | The global_alloc/global_free functions have outlived their usefulness. They don't allow consistently overriding the default memory allocation behaviour because they aren't used consistently, and we don't have standard library allocator wrappers for them that we'd need to use them consistently with all the standard library containers we're using. If you need to change the default allocator behaviour, you can override the new/delete operators, and there are ways to get more fine-grained control that way. We're already doing that to pre-fill memory in debug builds. Code was already starting to depend on global_alloc/global_free wrapping new/delete. For example some parts of the code (including the UI and Windows debugger) was putting the result of global_alloc in a std::unique_ptr wrappers without custom deleters, and the SPU sound device was assuming it could use global_free to release memory allocated with operator new. There was also code misunderstanding the behaviour of global_alloc, for example the GROM port cartridge code was checking for nullptr when a failure will actually throw std::bad_alloc. As well as substituting new/delete, I've made several things use smart pointers to reduce the chance of leaks, and fixed a couple of leaks, too.
* -Got rid of most of the remaining problematic uses of make_unique_clear. Vas Crabb2020-09-304-4/+4
| | | | -sound/discrete.cpp: Use C++ std::vector and range-based for.
* Cleaned up bitmap API. Vas Crabb2020-09-272-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made const-qualified pixel accessors (pix, pixt, raw_pixptr) return const-qualified references/pointers to pixesl, and added non-const versions. This makes bitmap more like standard library containers where const protects the content as well as the dimensions. Made the templated pixt accessor protected - having it public makes it too easy to inadvertently get a pointer to the wrong location. Removed the pix(8|16|32|64) accessors from the specific bitmaps. You could only use the "correct" one anyway, and having the "incorrect" ones available prevented explicit instantiations of the class template because the static assertions would fail. You can still see the pixel type in the bitmap class names, and you can't assign the result of &pix(y, x) to the wrong kind of pointer without a cast. Added fill member functions to the specific bitmap template, and added a explicit instantiations. This allows the bitmap size check to be skipped on most bitmap fills, although the clipping check is still there. Also fixed a couple of places that were trying to fill an indexed 16-bit bitmap with rgb_t::black() exposed by this (replaced with zero to get the same net effect). The explicit template instantiations in the .cpp file mean the compiler can inline the function if necessary, but don't need to generate a local out-of-line body if it chooses not to. Extended the size of the fill value parameter in the base bitmap class to 64 bits so it works correctly for 64-bit bitmaps. Fixed places where IE15 and VGM visualiser weren't accounting for row bytes potentially being larger than width. Fixed an off-by-one in an HP-DIO card where it was treating the Topcat cursor right edge as exclusive. Updated everything to work with the API changes, reduced the scope of many variables, added more const, and replaced a few fill/copy loops with stuff from <algorithm>.
* -util/xmlfile: Escape attribute and element content. Vas Crabb2020-09-062-2/+2
| | | | | | | | | | | | | | | | | | | | The previous behaviour was unintuitive - parsing an XML file and writing it out immediately would produce invalid XML if the file contained any characters that needed escaping. It makes far more sense to escape on writing rather than expecting the user to escape input. -Add preliminary support for visibility toggles to artwork system. This allows the user to show/hide related elements in a view, with nesting. The view can specify whether elements are shown or hidden by default. Settings are saved per host window/screen per view. There is no way to set the initial visibility state on the command line. Legacy "Space Invaders cabinet model" layers are mapped onto visibility toggles. This is not stable yet. In particular, the XML element/attribute names have not been finalised. The new features have not been added to complay.py to prevent them from being used before they're finalised.
* drawd3d: properly clean up d3dintf (nw) hap2020-06-211-0/+3
|
* -bgfx: Don't try to invoke a frame immediately after resetting the renderer ↵ Ryan Holtz2020-06-201-2/+2
| | | | during tear-down. Fixes crash on exit with the d3d12 backend. [Ryan Holtz]
* -bgfx: Corrected a data overrun in the d3d12 backend from allocating only ↵ Ryan Holtz2020-06-2012-20/+28
| | | | enough texture data for width*height, not rowpixels*height. [Ryan Holtz]
* MAME Testers Bugs Fixed Ryan Holtz2020-05-282-169/+86
| | | | | | | ----------------------- 07536: [Graphics] Prescale option does not work properly on D3D renderer (Ryan Holtz) -renderer/d3d: Removed old StretchRect code. All drivers these days punt it to a shader backend anyway, and it's causing issues with -prescale. [Ryan Holtz]
* Revert "fixed some modernize-use-equals-default clang-tidy warnings (… (#6360) Oliver Stöneberg2020-04-081-1/+1
| | | | | | | * Revert "fixed some modernize-use-equals-default clang-tidy warnings (nw)" This reverts commit 54486ab9 * fixed merge error
* there are reasons for things being the way they were (nw) Vas Crabb2020-01-312-1/+5
|
* fixed some modernize-use-auto clang-tidy warnings (nw) (#6238) Oliver Stöneberg2020-01-3014-57/+57
|
* fixed some modernize-use-equals-default clang-tidy warnings (nw) (#6237) Oliver Stöneberg2020-01-302-5/+1
|
* fixed some clang-tidy warnings (nw) (#6236) Oliver Stöneberg2020-01-304-7/+7
| | | | | | | | | | | | | | | | * fixed some modernize-redundant-void-arg clang-tidy warnings (nw) * fixed some modernize-use-bool-literals clang-tidy warnings (nw) * fixed some modernize-use-emplace clang-tidy warnings (nw) * fixed some performance-move-const-arg clang-tidy warnings (nw) * fixed some readability-redundant-control-flow clang-tidy warnings (nw) * fixed some readability-redundant-string-cstr clang-tidy warnings (nw) * fixed some performance-unnecessary-value-param clang-tidy warnings (nw)
* Revert accidentally committed changes. (nw) couriersud2020-01-251-17/+5
|
* segas16b: Added analog filters. [Couriersud] couriersud2020-01-251-5/+17
| | | | Analog filters added to systems with YM2151 and UPD7759. Reviewers can use USE_NL define to produce unfiltered sound.
* Merge pull request #6195 from firewave/includes R. Belmont2020-01-226-11/+11
|\ | | | | use C++ library includes (nw)
| * use C++ library includes (nw) firewave2020-01-226-11/+11
| |
* | fixed some clang-tidy warnings (nw) (#6197) Oliver Stöneberg2020-01-221-1/+1
|/ | | | | | | | | | | | | | * fixed some bugprone-throw-keyword-missing clang-tidy warnings (nw) * fixed some modernize-use-nullptr clang-tidy warnings (nw) * fixed some readability-delete-null-pointer clang-tidy warnings (nw) * fixed some performance-faster-string-find clang-tidy warnings (nw) * fixed some performance-for-range-copy clang-tidy warnings (nw) * fixed some readability-redundant-string-cstr clang-tidy warnings (nw)
* opengl: clamp to edge, same as the other renderers (nw) hap2020-01-041-8/+8
|
* Happy New Year 2020 (nw) (#6128) Stiletto2020-01-041-1/+1
| | | Happy New Year 2020 (nw) (#6128)
* render/bgfx: Fix incorrect swapping of red and blue components of screen tint AJR2019-12-311-1/+1
|
* Changed Direct3D renderer to call GetAncestor() in device_create() to npwoods2019-12-221-1/+5
| | | | | | get the root window This is to make -attach_window work with non-root windows
* netlist: Revert development code committed by accident. (nw) couriersud2019-11-261-13/+2
|
* netlist: move nl_examples to src/lib/netlist/examples. (nw) couriersud2019-11-251-2/+13
| | | One folder less in the top-level.
* Clean up render_screen_list code, replacing simple_list with std::list (nw) AJR2019-11-242-2/+2
|