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
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
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
duncanspumpkin
42029c031a
Fix openGl zooming placement.
...
Note there are still bugs with zooming
2016-06-18 07:46:02 +01: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
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
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
Ted John
b0b0b82fd1
implement scaling for OpenGL
2016-06-11 02:24:39 +01:00
Ted John
36c71c1398
implement FillRect transparancy
2016-06-11 00:04:13 +01:00
Ted John
84ca31a240
implement masked image shader
2016-06-10 20:17:00 +01:00
Ted John
808afe0a81
add drawimage shader and optimise
2016-06-10 17:54:29 +01:00
Ted John
a9d49838fa
add cross pattern support for fillrect shader
2016-06-10 17:54:29 +01:00
Ted John
c48031581b
get the fillrect shader working
2016-06-10 17:54:29 +01:00
Ted John
dc7b8b4d3b
add initial shader code
2016-06-10 17:54:29 +01:00