1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00
Commit Graph

187 Commits

Author SHA1 Message Date
Ted John
8920c73ea4 add software / hardware rendering switch 2016-06-07 22:45:36 +01:00
Ted John
aafaf0e883 try to improve zoom 2016-06-07 22:45:36 +01:00
Ted John
f15a1e70f6 load textures and draw them 2016-06-07 22:45:36 +01:00
Ted John
8bff699659 draw OpenGL sprite rects 2016-06-07 22:45:36 +01:00
Ted John
2fa0c7977a add OpenGL drawing engine with FillRect impl 2016-06-07 22:45:36 +01:00
Ted John
d20a8a1daa re-route draw sprite through IDrawingContext 2016-06-07 22:45:36 +01:00
Ted John
90704ac1fe port gfx_fill_rect to IDrawingContext 2016-06-07 22:45:36 +01:00
Ted John
6e8cc5469a start introducing the IDrawingContext 2016-06-07 22:45:36 +01:00
Ted John
3e6eb48d4c draw rain via new IRainDrawer interface 2016-06-07 22:45:36 +01:00
Ted John
d4edf58a51 use a struct for rain pixels 2016-06-07 22:45:36 +01:00
Ted John
85557d169d reinstate all drawing and fix resize 2016-06-07 22:45:36 +01:00
Ted John
3da57d0865 route old functions to new drawing interface
- hardware display temporarily removed
- rain, fps and other non-window elements not drawn
2016-06-07 22:45:36 +01:00
Ted John
2de332369c add initial interfaces and software engine 2016-06-07 22:45:36 +01:00
Ted John
e4c94d7966 fix #3813: Scrolling texts going rogue 2016-06-03 23:27:47 +01:00
Michał Janiszewski
1508e49a28 Change macro to assert_struct_size 2016-06-03 11:29:50 +02:00
Michał Janiszewski
934ce5e84e Fix 64 bit by skipping static_asserts for structs with pointers 2016-06-03 10:55:21 +02:00
Michał Janiszewski
60630b9ad7 Drop PACKED attribute 2016-06-03 10:55:21 +02:00
Michał Janiszewski
df3030e4a9 Provide static_assert for hard-coded struct sizes. 2016-06-03 10:55:21 +02:00
Michał Janiszewski
3907fcd9d2 Explicitly pack structs 2016-06-03 10:55:21 +02:00
Michał Janiszewski
268baa62f7 Add restrict for drawing function (#3793) 2016-06-01 15:40:31 +01:00
CraigCraig
c946d2fb06 Various Spelling Fixes - 5/29/16 (#3770) 2016-05-29 10:00:38 +01:00
zsilencer
a963935c11 Decompile scenery_multiple_paint 2016-05-22 08:23:03 -06:00
Ted John
8d4e4ed0e9 remove unread RCT2_GLOBALs 2016-05-17 23:39:37 +01:00
Ted John
975eacc5f9 add temp RCT2 memory copy for scrolling text paint
Fixes #3628: assertion
Fixes #3634: wrong queue banner text

Until path_paint is implemented, this variable is used by scrolling_text_setup to use the old string arguments array. Remove when scrolling_text_setup is no longer hooked.
2016-05-16 18:44:44 +01:00
Ted John
cbf9a393f1 remove use of get_format_arg
Because of strict aliasing, we must use memcpy in some cases.
2016-05-15 22:40:25 +01:00
Ted John
1cc35dfe6e integrate common format args 2016-05-15 22:03:53 +01:00
Hielke Morsink
8c1395bd46 declaring local variables where needed instead of at the top (#3599) 2016-05-15 10:25:24 +01:00
janisozaur
ca430e1b23 Drop unused variables (#3586) 2016-05-13 18:21:58 +01:00
janisozaur
658e877955 Name all the typdef-ed structs (#3581) 2016-05-12 22:57:40 +01:00
Ted John
5ccfd83dea add global macro for gScenarioTicks 2016-05-08 23:20:42 +01:00
duncanspumpkin
7f02193411 Move around map element and sprite functions into seperate files
Add dummy files for big file move around

Fix files so they can compile

Add copyright header

Split up functions into seperate files

Remove suffix

Move supports again

Change functions signatures to remove viewport_setup

Rename folder structure

Finish moving about files
2016-05-05 21:41:53 +01:00
janisozaur
68bad6505c Add and correct licence headers to all sources (#3108) 2016-05-04 18:24:41 +01:00
Ted John
7be699adbb fix mistake, wrong enum 2016-04-25 23:20:54 +01:00
Ted John
489ea66cc9 add global macro for gCurrentFontSpriteBase and gCurrentFontFlags 2016-04-25 23:00:58 +01:00
Ted John
870a8b55e5 add global macros for viewport variables 2016-04-25 21:53:21 +01:00
Ted John
0a80e7a737 integrate pickup peep variables 2016-04-24 10:28:08 +01:00
Ted John
e7f62bf014 integrate game palette variables 2016-04-24 02:02:56 +01:00
Ted John
a97533228c integrate window DPI variable 2016-04-24 01:40:55 +01:00
Ted John
19662a091c integrate rain drawing variables 2016-04-24 01:39:33 +01:00
Ted John
98f732aaf7 integrate screen variables (#3411) 2016-04-24 00:36:39 +01:00
Duncan
d408cf4eea Metal a support (#3405)
* Implement start of metal a supports

* Finish implementing metal a supports

* Fix bugs.
2016-04-23 10:58:23 +01:00
Ted John
3bd21240ed add global macros for climate variables 2016-04-23 10:53:48 +01:00
Marijn van der Werf
7728a96e96 Update signature 2016-04-22 14:05:51 +02:00
Marijn van der Werf
6e3375a3d4 Small fixes 2016-04-18 21:18:48 +02:00
Duncan
0860cf4540 Merge pull request #3299 from marijnvdwerf/paint-setup/cleanup
WIP Paint setup/cleanup
2016-04-18 18:48:53 +01:00
Marijn van der Werf
d78077ce22 Convert method call to sub_98197C 2016-04-18 15:34:06 +02:00
Marijn van der Werf
eabbdb7e30 Identify structure members 2016-04-17 10:31:50 +02:00
Marijn van der Werf
18a36298b4 Update method signature 2016-04-17 09:42:34 +02:00
IntelOrca
89ad0cc769 store windows in openrct2 memory and increase max
Allocate a bigger window list and viewport list in OpenRCT2 static memory and move over all references from RCT2.
This also removes the 'active' viewport pointer list and instead changes everything to just enumerate the whole viewport list
2016-04-14 23:00:35 +01:00
Marijn van der Werf
3bb2214235 Pass 0x009DEA52-0x009DEA56 as parameters 2016-04-14 11:07:41 +02:00