Ted John
664c460aa0
Fix #4047 : Game crashes when switching to OpenGL
2016-07-18 18:04:37 +01:00
Michał Janiszewski
dd25cdc4f4
Change gfx_clear argument type
...
`colour` gets passed on to IDrawingContext::Clear, which expects
uint32
2016-07-17 20:41:19 +01:00
Ted John
964cf66f6b
Zero g1 elements when freeing images
...
This is to help diagnose issues where we are drawing invalid sprites as well as general cleanliness
2016-07-16 18:08:58 +01:00
duncanspumpkin
83fa818190
Use the correct count to work out if regions will overlap. Fix #4114
2016-07-16 18:07:13 +01:00
Ted John
be4668ee3a
Fix #4108 : Assertion an crash at startup
2016-07-16 15:33:26 +01:00
Ted John
c123673d6f
Merge pull request #4106 from IntelOrca/improve-assertions
...
Improve guard assertions so that they display the location of where the guard was and also allow a dump file to be created on abort.
2016-07-16 15:12:30 +01:00
Ted John
5f41e3a0eb
add function and line info to guards
2016-07-16 14:17:36 +01:00
duncanspumpkin
5426b655fe
Try combine _freelists when freeing to reduce chance of running out of images.
2016-07-16 14:12:15 +01:00
Michał Janiszewski
a6d0e6916e
Fix function definitions to match their declarations
...
This makes sure every function is properly declared, which includes
proper `extern` wrappers.
2016-07-14 14:11:49 +02:00
Marijn van der Werf
5204fb0ce9
Clean up string and sprite ID's ( #3977 )
2016-07-14 14:07:49 +02:00
Ted John
dca816cfd3
Merge pull request #4024 from IntelOrca/refactor/object-list
...
Refactor and improve the object system:
- Objects are now exported to user directory under 'object'.
- Object directories are scanned recursively.
- Improves reliability of object loading and handling of bad objects.
- Improve performance of object scanning.
- Only load new objects when loading a new game.
- Improve changing language experience.
2016-07-11 23:45:45 +01:00
Ted John
3c64010fe1
Make Console::Error::WriteLine formattable
2016-07-09 15:02:05 +01:00
Michał Janiszewski
639f19adbf
Fix define checks in project
2016-07-09 10:05:12 +02:00
Ted John
4d3fca767d
document and name G1 flags
2016-07-09 00:27:21 +01:00
Ted John
4e259920b1
fix and detect freeing invalid image lists
2016-07-08 22:58:38 +01:00
Ted John
52928e1e08
protect objects against invalid allocation ids
2016-07-08 22:58:38 +01:00
Ted John
3bfa747ce4
implement a proper image list allocation
2016-07-08 22:58:38 +01:00
Ted John
50b7e4222f
remove a lot of old object code
2016-07-08 22:58:38 +01:00
Ted John
78e15b1d56
start getting object loading working
2016-07-08 22:58:38 +01:00
Charles Cook
8b36e4c54a
Use four spaces instead of tabs in c++
2016-07-05 20:32:37 -04:00
Charles Cook
6d268099f5
Follow coding standard for project.
2016-07-05 19:40:20 -04:00
Charles Cook
5c9110b99a
Prevent viewport_invalidate from causing covered viewports to redraw and cache window and viewport visibility.
2016-07-05 18:02:23 -04:00
Michał Janiszewski
683eee827e
Refactor gX.dat loading, make sure g2.dat loads too
2016-06-24 23:25:40 +02:00
Michał Janiszewski
dfa482b1b5
Revert "Merge pull request #3897 from janisozaur/rebase-no-rct2"
...
This reverts commit 22c0cc92e6 , reversing
changes made to 7b421c8052 .
2016-06-24 22:40:37 +02:00
Michał Janiszewski
644a36a310
Fixes to -Wall compilation
...
By default, not all warnings are enabled. This change makes sure that
the project compiles correctly with following options turned on:
-Wall -Wno-unused-but-set-variable -Wno-missing-braces \
-Wno-unknown-pragmas -Wno-unused-function
2016-06-20 13:46:27 +01:00
Michał Janiszewski
2273626bdd
Refactor gX.dat loading, make sure g2.dat loads too
2016-06-19 18:12:14 +02:00
Michał Janiszewski
580789bcf4
Fixes to object loading for x86-64
2016-06-19 18:12:14 +02:00
duncanspumpkin
42029c031a
Fix openGl zooming placement.
...
Note there are still bugs with zooming
2016-06-18 07:46:02 +01:00
Michał Janiszewski
c2bf4b75e7
Integrate tile map element pointers usage ( #3442 )
2016-06-16 19:05:15 +02:00
janisozaur
c301f8ee14
Load g1 elements correctly into memory ( #3436 )
2016-06-16 15:03:36 +02:00
Ted John
ad1b9265dc
integrate variables for various drawing pointers
2016-06-16 11:36:15 +02:00
Michał Janiszewski
a5c119ba60
Load assets properly for 32 bit builds
2016-06-16 11:36:15 +02:00
Ted John
b73861be99
integrate variable: g1Elements
2016-06-16 11:36:15 +02:00
Ted John
19cd56b9c2
Add Shader Palette Lookup
2016-06-15 17:53:26 +01:00
LRFLEW
0311fdd35c
Fixed Depricated Enum Drawing Errors
2016-06-12 17:55:48 -05:00
Michał Janiszewski
e0bb89d1d6
Explicitly request OpenGL 3.3 context
2016-06-12 17:45:18 -05:00
Ted John
f5604c6b69
add missing GetUniformLocation
2016-06-12 22:37:44 +01:00
Michał Janiszewski
0503b88071
Cast shader program
2016-06-12 19:22:50 +02:00
Ted John
fa4662be42
add missing include
2016-06-12 17:44:58 +01:00
Ted John
f6665a188a
add missing DISABLE_OPENGL guards
2016-06-12 15:47:51 +01:00
Ted John
3c96171801
reduce redundant state changes
2016-06-12 00:07:01 +01:00
Ted John
e771834b87
fix offset of FillRect and DrawLine
2016-06-11 23:24:19 +01:00
Ted John
f796ef5122
fix drawing of text
2016-06-11 23:14:22 +01:00
Ted John
4896d14940
extract texture generation code to new class
2016-06-11 19:13:18 +01:00
Ted John
8185a88e47
implement drawing solid coloured sprites
2016-06-11 18:28:03 +01:00
Ted John
33799d2ab9
remove deprecated OpenGL functions
2016-06-11 17:46:54 +01:00
Ted John
e3ecb91b91
implement DrawLine with shader
2016-06-11 17:43:53 +01:00
Ted John
e34ee15738
implement overlay transparency for FillRect
2016-06-11 16:46:24 +01:00
Ted John
2a569dc062
implement a ping-pong framebuffer
2016-06-11 15:18:31 +01:00
Ted John
db01547ae6
implement OpenGL screenshot
2016-06-11 03:06:30 +01:00