1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00
Commit Graph

378 Commits

Author SHA1 Message Date
Marijn van der Werf
4f47808201 Name glass palettes 2016-11-13 01:51:26 +01:00
Marijn van der Werf
2109763267 Rename translucent palettes 2016-11-13 01:45:43 +01:00
Marijn van der Werf
1ce2242bb3 Start cleaning up filters 2016-11-13 01:45:43 +01:00
Marijn van der Werf
0496cf6bd8 Merge colour maps 2016-11-11 08:46:14 +00:00
Marijn van der Werf
80ea7f7de5 Name gfx_fill_rect_inset flags 2016-11-10 17:54:33 +00:00
Michał Janiszewski
fe3b15c2f1 Mask translucent bit out from colour
Fixes #4765
2016-11-06 20:51:38 +01:00
Michał Janiszewski
1f0adb95da Check value of DEBUG_LEVEL_X macro, not just definition
DEBUG_LEVEL_X macros are always defined to 0 or 1, this could prevent
some optimisations from compilers, especially inlining
`get_current_rotation()`.
2016-11-02 08:19:25 +00:00
Ted John
ebe4ca4df4 Rename lightfx guard 2016-10-24 13:06:44 +01:00
Ted John
ca47770825 Move rendering to lightfx.c and protect all areas with guard 2016-10-24 13:05:44 +01:00
Ted John
d773d14473 Add light instead of lerp 2016-10-17 23:28:02 +01:00
Ted John
8da6654fc6 Mix lights into hw texture 2016-10-17 22:56:08 +01:00
Ted John
1ddb95874a Add lightfx_get_palette 2016-10-17 22:54:25 +01:00
Ted John
c4f67e9d95 Use lightfx palette transform 2016-10-17 20:34:53 +01:00
Ted John
55cae4a230 Fix compile errors 2016-10-17 00:03:32 +01:00
Ted John
b64f8861f4 Merge branch 'stout-expanded-rendering-2' into render/night-lights 2016-10-16 23:40:59 +01:00
Michał Janiszewski
f1cbb7935d Fix left shifts that may overflow 2016-10-13 19:48:42 +01:00
LRFLEW
e5ff7412e4 Refactor/Improve String and Path Handling 2016-10-09 15:29:58 -05:00
Michał Janiszewski
9966052ca7 Fix more configurations 2016-10-06 23:32:10 +02:00
Ted John
ebd12bde83 Fix #4537: Park with object containing no images fails to load
Allow gfx_object_allocate_images to take 0 images and return INVALID_IMAGE_ID which will safely not be freed.
2016-10-05 21:47:02 +01:00
Michał Janiszewski
71d0861be1 Mark classes as final
This may hint compiler to de-virtualise some calls.
2016-10-04 18:14:29 +01:00
Ted John
305e6184f8 Try merging free image lists if failed to allocate one 2016-10-02 01:10:43 +01:00
Ted John
ff34967e9b Ensure all images are freed, fix leak 2016-10-02 00:44:07 +01:00
Ted John
b18d053a18 Fix #4511: Crash, invalid scrolling mode for banner
Do not attempt to draw banners with an invalid scrolling mode. Some custom objects use 255 for scrolling mode as they don't actually have scrolling text.
2016-10-01 17:33:30 +01:00
Michael Steenbeek
a170eeb367 Merge pull request #4302 from wolfreak99/render_rain_toggle
Add option to disable weather gloom and rain effects
2016-09-24 13:17:49 +02:00
Ted John
5c5e9095db Fix #4476: Assertion Failed
Disable track preview for OpenGL drawing until a later time where we can use a different drawing engine for track preview alongside OpenGL.
2016-09-24 01:07:40 +01:00
Ted John
4a0a93d003 Merge pull request #4449 from duncanspumpkin/gl2
OpenGL Palettes
2016-09-23 21:41:09 +01:00
duncanspumpkin
48086503a6 Fix zooming size for opengl sprites 2016-09-21 19:06:45 +01:00
wolfreak99
c60396cb53 Add option to disable weather gloom and rain effects 2016-09-21 10:35:02 -04:00
duncanspumpkin
9840a73cc1 Refactor naming of paint global vars
Removed EDF81C from none viewport files this previously was used to pass image flags to the sprite renderer.
gUnkF1A4CC replaced with address reference to paint struct array to allow for non rct builds
Renamed _paint_structs to _paint_struct_quadrants. This array is used for working out which paint struct is at which quadrant and is not the main paint struct array
2016-09-20 18:08:45 +01:00
duncanspumpkin
56fddac199 Fix broken zoomed textures and palettes
Zoomed textures were failing to pass the image flags to the zoomed version of the texture. This would cause corrupted data to be passed as a tertiary colour to the palette function.
Also due to not recording the image flags in the palette hash map a tertiary colour of zero would be ignored and unremaped pink colour would be shown
2016-09-19 19:00:26 +01:00
duncanspumpkin
5f7a6fb369 Fixed OpenGL palette drawing
Added palettes to the texture atlas and now correctly use them to generate
images. Transparency semi supported but the colours are not quite
correct.
2016-09-18 20:28:46 +01:00
Marijn van der Werf
487d6d8f15 Remove unnecessary addresses.h imports 2016-09-17 20:59:55 +01:00
Ted John
375069384b Fix x64 builds 2016-09-17 16:35:19 +01:00
Ted John
c183b65065 Fix original paint mode 2016-09-17 16:32:36 +01:00
Ted John
4f34accfea Integrate _spriteFontCharacterWidths 2016-09-17 16:07:34 +01:00
Ted John
c9fd1e66ef Remove 0x8000000 fill rect flag from software renderer
It was never ever hit and probably didn't work properly.
2016-09-14 18:35:44 +01:00
Ted John
e4cb01e04b Integrate gUnkEDF81C 2016-09-14 18:29:56 +01:00
Duncan
00e2d44264 Refactor sprite functions 2016-09-14 18:22:37 +01:00
LRFLEW
e1b6319bc1 Fix Warnings in Xcode about Copy Elision 2016-09-13 18:07:40 -05:00
Manuel Vögele
f7caa55ee1 Defer instantiation of TextureCache until OpenGL is initialized
If TextureCache is instantiated before OpenGL is initialized and
something goes wrong during OpenGL initialization the destructor of
TextureCache calls an OpenGL function which will cause the application
to crash.
2016-09-13 18:46:26 +02:00
Manuel Vögele
6486c4f6ea Show exception messages when initializing a drawing engine fails 2016-09-13 18:28:44 +02:00
Ted John
44214ab2b8 Integrate gCurrentFont fully 2016-09-12 20:43:43 +01:00
Ted John
5db4f4f2ee Remove references to 0x009C383D 2016-09-10 23:48:29 +01:00
Ted John
fe7800a508 Integrate _drawScrollTextList and _characterBitmaps 2016-09-10 23:42:19 +01:00
Ted John
17198cfdb2 Integrate gTrackDesignSaveMode 2016-09-10 18:03:25 +01:00
Ted John
d12804b242 Show message boxes if unable to load g1 / g2 2016-09-10 12:45:33 +01:00
Michał Janiszewski
2759772fca Cleanup in SoftwareDrawingEngine::DisplayViaTexture 2016-09-09 20:00:06 +01:00
Michał Janiszewski
163e314379 Remove unused or set-but-not-read variables 2016-09-07 13:39:29 +01:00
Ted John
00bfe1befb Use RCT2_ADDRESS macro so mmap works correctly 2016-09-06 00:10:58 +01:00
Ted John
6a665330c2 Integrate gCommonStringFormatBuffer 2016-09-04 15:55:37 +01:00