Bastien Bouclet
e97279aeab
GRIM: Don't enable / disable GL_TEXTURE_2D in the programmable pipeline
...
It is an invalid operation.
2016-06-26 09:28:14 +02:00
Bastien Bouclet
e2ced1271a
Merge pull request #1252 from bgK/sdl2-bgk
...
Basic port to SDL2
2016-06-26 08:47:13 +02:00
Bastien Bouclet
a381ef0530
SDL: Add forbidden symbol exceptions for building on OSX with SDL2
...
This is suspicious. Check me.
2016-06-23 21:18:03 +02:00
Bastien Bouclet
589f85d2a2
BUILD: Disable GLEW when building for GLESv2
2016-06-16 07:21:48 +02:00
Bastien Bouclet
15eaac4560
BUILD: Don't use pkg-config to check for GLEW
...
pkg-config is not always available, especially on non-Linux platforms,
and we did not check for it before using it.
2016-06-16 07:21:48 +02:00
Bastien Bouclet
d7b7bad1dc
ALL: Fix warnings when building with Apple's CLang
2016-06-14 08:24:02 +02:00
Bastien Bouclet
40e76b4cdd
SDL: Add initial support for building with SDL2
2016-06-12 20:39:47 +02:00
Bastien Bouclet
9b0f37993c
SDL: Don't use the screen buffer in OpenGL mode
...
It makes no sense, and SDL2 does not provide one.
2016-06-12 20:17:57 +02:00
Bastien Bouclet
d4ce2d8c50
SDL: Attempt to fix build on AmigaOS
2016-06-12 20:14:59 +02:00
Bastien Bouclet
9c0950f76c
SDL: Fix build for platforms with incomplete OpenGL headers
2016-06-12 20:08:05 +02:00
Bastien Bouclet
fe4aac9ada
Merge pull request #1250 from bgK/wip-multisampling
...
Multisampling for framebuffers
2016-06-12 19:53:14 +02:00
Bastien Bouclet
867f2e2c98
STARK: Fix textures with GLES2 contexts
2016-06-11 21:29:41 +02:00
Bastien Bouclet
87ceda2324
SDL: Don't try to draw the SubScreen if it's null
...
Also simplify the closeOverlay method. This has the side effect of properly freeing
SubScreen when building without OpenGL.
2016-06-11 13:32:04 +02:00
Bastien Bouclet
5ae1e3a01c
OPENGL: Honor the configured MSAA samples for FBOs
2016-06-11 13:12:37 +02:00
Dries Harnie
dc3e371dc0
OPENGL: Grab pointers for glBlitFramebuffers and
...
glRenderbufferStorageMultisample.
2016-06-11 13:12:37 +02:00
Dries Harnie
be5202d11d
OPENGL: Multisampling for framebuffers (SDL)
2016-06-11 13:12:37 +02:00
Bastien Bouclet
8f20218a2b
OPENGL: Detect FBO multisample support
2016-06-11 13:12:37 +02:00
Bastien Bouclet
3e0136160d
SDL: Don't enable screen level multisampling when rendering to a FBO
2016-06-11 13:12:37 +02:00
Bastien Bouclet
992106596c
SDL: Rework OpenGL window creation
...
The new implementation builds a list of suitable OpenGL context properties,
sorted by preference.
The context creation goes through that list and stops at the first successfully
created context.
2016-06-11 13:12:30 +02:00
Bastien Bouclet
0362ac0dbc
GRIM: Don't use OSystem::getScreenPixelBuffer in the OpenGL renderers
2016-06-11 12:07:38 +02:00
Bastien Bouclet
5419e37196
GRAPHICS: Fix the GLSL compat shaders when using GLES2 with SDL
2016-06-11 10:33:35 +02:00
Bastien Bouclet
13c1bed284
Merge branch 'decompiler'
2016-06-02 13:14:04 +02:00
Bastien Bouclet
2252a50017
STARK: Define aliases for resource references in the decompiled output
2016-06-02 13:10:45 +02:00
Bastien Bouclet
563fa04f2c
STARK: Add a method to tell if a reference can be resolved
2016-06-02 13:09:02 +02:00
Bastien Bouclet
d29834d9a7
STARK: Don't copy control flow related command arguments in the AST
2016-06-02 07:10:10 +02:00
Bastien Bouclet
90ee6b02ff
STARK: Implement the "do nothing" command
2016-06-01 18:33:20 +02:00
Bastien Bouclet
20e98144da
STARK: Add a console command to test the decompiler with all the scripts in the game
2016-06-01 18:15:09 +02:00
Bastien Bouclet
d523c326c5
STARK: Dont try to visit the same block multiple times when decompiling
...
Unless the block is trivial. The original compiler seems to reuse "end" commands.
2016-06-01 18:03:25 +02:00
Bastien Bouclet
d2f1bb8d80
STARK: Empty blocks are decompilation errors
2016-06-01 18:02:07 +02:00
Bastien Bouclet
0bda7cd00b
MYST3: Fix logic in the varSetMinDistanceToZone opcode
...
Fixes #1247 .
2016-05-26 21:45:27 +02:00
Bastien Bouclet
5ef0d18dea
STARK: Add a console command to decompile a script
2016-05-26 20:40:24 +02:00
Bastien Bouclet
5ccc17b85b
STARK: Clean up script related console commands
2016-05-26 20:36:39 +02:00
Bastien Bouclet
9cee7f5fc0
STARK: Use spaces for code alignment
2016-05-26 20:24:57 +02:00
Bastien Bouclet
c0d91fcab9
STARK: Properly decompile infinite loops in scripts
2016-05-26 18:40:53 +02:00
Bastien Bouclet
c66876d22a
STARK: Add a verification step to the decompiler
...
It ensures the AST still follows the same control flow as in the CFG.
These methods could be used to write a script compiler.
2016-05-24 18:01:34 +02:00
Bastien Bouclet
ec8c45746d
STARK: Add a script decompiler
2016-05-23 21:37:11 +02:00
Bastien Bouclet
500de98e32
STARK: Add error handling to the disassembler
2016-05-23 21:31:34 +02:00
Bastien Bouclet
344326e28c
STARK: Add an AST representation of the script language
2016-05-23 20:50:17 +02:00
Bastien Bouclet
44ee4376f3
STARK: Split the CFG specifics out of the Command class
2016-05-23 08:07:52 +02:00
Bastien Bouclet
4a450f892f
STARK: Add control flow analysis to the disassembler
2016-05-21 09:45:34 +02:00
Bastien Bouclet
f300a1c841
STARK: Special case degenerate conditions when disassembling
2016-05-21 09:31:44 +02:00
Bastien Bouclet
f74502813b
STARK: Add a simple disassembler
2016-04-24 13:05:07 +02:00
Bastien Bouclet
29caec2dd2
STARK: Clean up debug printing resources
2016-04-24 13:00:46 +02:00
Bastien Bouclet
3a6ab0bf05
STARK: Allow retrieving a command's arguments
2016-04-24 12:59:02 +02:00
Bastien Bouclet
05fb5318a5
STARK: Add an enumeration entry for an unimplemented command
2016-04-24 12:55:27 +02:00
Bastien Bouclet
6aa77f7ac2
STARK: Don't print a space at the end of resource references
2016-04-24 12:50:21 +02:00
Bastien Bouclet
cf63e5dba8
Merge pull request #1241 from laenion/master
...
STARK: Add support for German TLJ 4CD version
2016-04-22 21:25:48 +02:00
Ignaz Forster
beee80611f
STARK: Add support for German TLJ 4CD version
2016-04-22 19:51:45 +02:00
Bastien Bouclet
c79cabc8cd
STARK: Don't check the depth buffer when drawing 2D elements
2016-04-19 19:14:08 +02:00
Bastien Bouclet
eb173b63af
STARK: Show the mouse hint for inventory items
...
Not an accurate implementation, but good enough for now.
2016-04-16 08:58:08 +02:00