Michael Steenbeek
7f71bece5c
Clean up some residual usage of non-integrated versions of already integrated variables
2016-08-13 10:52:42 +01:00
YJSoft
4117e9a9e5
fix #4251 Banner font is black when using ttf font ( #4272 )
2016-08-13 10:29:04 +02:00
Marijn van der Werf
198ebd0cb1
Use constants for colours
2016-08-07 12:57:12 +02:00
Michał Janiszewski
0ece63a7f6
Wrap RCT2's addresses in RCT2_ADDRESS macro
2016-08-06 21:38:46 +01:00
Ted John
252a00c35f
Integrate gCurrentWindowColours
2016-08-06 01:32:40 +01:00
Ted John
c3fdb99ceb
Merge pull request #4199 from marijnvdwerf/clean/sprite-ids-1
...
Cleanup sprite ids
2016-08-05 17:30:03 +01:00
Michał Janiszewski
ec8ac1a805
Change the way scrolling text positions are stored
2016-08-01 23:14:42 +02:00
Michał Janiszewski
b16b6814aa
Fix pointer types for 64 bit builds
2016-08-01 23:14:42 +02:00
Michał Janiszewski
ddb72b6f22
Fix sprite pointers for 64 bit builds
2016-08-01 23:14:42 +02:00
Michał Janiszewski
e6575f09ea
Integrate scrolling text position offsets
2016-08-01 23:14:42 +02:00
Marijn van der Werf
cd00c0de31
Identify fade sprites
2016-08-01 19:28:22 +02:00
Marijn van der Werf
7befcd3649
Use constants for scrolling text
2016-08-01 19:19:35 +02:00
LRFLEW
c9ce11a250
Fix GetOpenGLVersion()
...
This is in response to the research I did on #4047 . The implementation currently in the code will not work based on what I saw. The `SDL_GL_GetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, &major);` and `SDL_GL_GetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, &minor);` lines don't fetch the version retrieved, but the version requested. The solution I have here is the one I found worked consistently in my test case, and the one I suggested in [my comment](https://github.com/OpenRCT2/OpenRCT2/issues/4047#issuecomment-233268891 ).
2016-07-27 22:26:33 +01:00
Alexander Overvoorde
3842728f38
Fix indentation and code style in various files
2016-07-27 16:31:25 +02:00
Alexander Overvoorde
8256b7f83b
Fix missing override keyword for SetUncappedFrameRate functions
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
c56a683eed
Disable OpenGL vsync when uncap fps option is enabled
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
acb5c68eac
Remove debug code
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
6acbbcfb6b
Fix assumption that colour texture and mask texture originate from same atlas
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
c107101aff
Implement dynamic atlas allocation in texture cache
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
c506e08ac2
Add more atlases to increase space efficiency and derive atlas size from device limits
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
bb3fe8b804
Implement multiple texture atlas system to handle small and large images
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
9e6db92446
Fix type error
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
d8ce023170
Change TextureCache to use atlas instead of array
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
f16ec771c3
Clean up DrawImageShader code
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
360a92e906
Merge draw image and draw masked image shaders
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
fbb7029de4
Implement sprite batch drawing using instancing
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
84f2a8c17c
Rewrite texture cache to use array texture
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
f8f996dfd6
Fix indentation
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
afd83fa13d
Fix clipping in FlushImages
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
09b07174e3
Change command buffer flushes to only be called when necessary
...
This currently breaks sprite draw order, I do not know why
2016-07-27 04:01:25 +02:00
Alexander Overvoorde
e7626064f2
Change OpenGL renderer to use command buffers
2016-07-27 04:01:25 +02:00
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