Commit Graph
3567 Commits
Author SHA1 Message Date
Johannes Schickel df65bad9d2 GRAPHICS: Skip empty rects in VectorRendererSpec::drawSquareAlg. 2016-02-21 14:41:29 +01:00
Johannes Schickel 5f61de0e68 GRAPHICS: Skip empty rects in VectorRender*'s drawTabAlg. 2016-02-21 14:41:29 +01:00
Johannes Schickel 610d2eec00 GRAPHICS: Make VectorRendererAA::drawLineAlg never divide by zero.
It won't crash any longer in the case dx = dy = 0.
2016-02-21 14:41:29 +01:00
Johannes Schickel 5bc3a5aa3f GRAPHICS: Let drawLineAlg in VectorRenderer code take unsigned dx, dy. 2016-02-21 14:41:29 +01:00
Johannes Schickel 0e7facad76 GRAPHICS: Skip empty rects in VectorRendererSpec::drawTriangleVertAlg. 2016-02-21 14:41:29 +01:00
Johannes Schickel 16aac72b60 GRAPHICS: Add comments about safe divisions in VectorRendererSpec.cpp. 2016-02-21 14:41:29 +01:00
Filippos Karapetis b9430d7c72 GRAPHICS: Silence some false positive MSVC warnings 2016-02-19 02:38:30 +02:00
Eugene Sandulenko 6c895643aa Merge pull request #667 from a-detiste/master
JANITORIAL: Typos detected with lintian & grep
2016-02-15 18:31:50 +01:00
Alexandre Detiste 6c298e964f JANITORIAL: Typos detected with lintian & grep 2016-02-15 18:27:02 +01:00
Martin Kiewitz 956aacf83b GRAPHICS: Fully fix compilation under MSVC 2016-02-14 23:41:58 +01:00
Eugene Sandulenko a7c7a6d5b7 GRAPHICS: Fix compilation under MSVC 2016-02-14 23:10:39 +01:00
Eugene Sandulenko 11e03fbce2 Merge pull request #658 from sev-/wage
WAGE: New Engine
2016-02-14 17:20:25 +01:00
Eugene Sandulenko d2303ac6dd GRAPHICS: Fix regression in polygon drawing 2016-02-14 17:13:24 +01:00
Eugene Sandulenko bbcd455004 GRAPHICS: Use our own sort instead of bubble 2016-02-14 17:13:22 +01:00
Eugene Sandulenko 5e002c4fe2 GRAPHICS: Move generic primitives from WAGE engine 2016-02-14 17:13:03 +01:00
Bastien Bouclet ee1784b2f2 OPENGL: Add a SurfaceRenderer class
To be used to draw textures as 2D surfaces in the current viewport
2016-02-06 08:53:41 +01:00
Bastien Bouclet d8743a49bb OPENGL: Add 16bits pixel format support to the Texture class 2016-02-06 08:53:41 +01:00
Bastien Bouclet 22006859f9 OPENGL: Fix building the SDL backend with USE_GLES2 2016-02-06 08:53:41 +01:00
Bastien Bouclet b5dcf5d4bc OPENGL: Select the shader version string at runtime 2016-02-06 08:02:50 +01:00
Bastien Bouclet 1a4b1d5dec OPENGL: Always use GLSL 120 when using desktop GL 2016-02-06 08:02:50 +01:00
Bastien Bouclet d0eea3b008 OPENGL: Make include gards consistent 2016-02-06 08:02:50 +01:00
Bastien Bouclet ed38c20cce OPENGL: Add a Context class used to describe the active OpenGL context 2016-02-06 08:02:50 +01:00
Bastien Bouclet 482255032e OPENGL: Make the FrameBuffer and Texture classes destructors virtual 2016-02-06 08:02:50 +01:00
Bastien Bouclet 6c78bcebe4 GRAPHICS: Move opengles2 files to the opengl folder 2016-02-06 08:02:49 +01:00
Bastien Bouclet 4c2c1b4d36 GRAPHICS: Set the namespace for OpenGL classes to OpenGL 2016-02-06 08:02:27 +01:00
Pawel Kolodziejski 6c960b1d33 ALL: Sync with ScummVM 2016-01-30 21:18:08 +01:00
Bastien Bouclet d30a22c9a5 GRAPHICS: Fix build with Apple's clang 7 2016-01-16 21:38:03 +01:00
Bastien Bouclet d1a27666d9 GRAPHICS: Add a method to unbind the active shader 2016-01-16 08:02:13 +01:00
Paweł Kołodziejski f93da34b64 Merge pull request #1222 from vpelletier/tinygl_opengl_compliance
Tinygl opengl compliance
2016-01-09 12:16:25 +01:00
Filippos Karapetis 5151ec0fe0 GRAPHICS: Silence an MSVC warning 2016-01-08 02:01:27 +02:00
Bastien Bouclet 9eca105119 Merge pull request #1219 from bgK/renderer-selection
GUI: Add a renderer selection list
2016-01-04 19:19:34 +01:00
Vincent Pelletier f6bbbc7b28 TinyGL: Use standard initial diffuse and specular values.
As per OpenGL specifications, light 0 is the only light with full diffuse and
specular light initial state. This should not affect residualvm as all enabled
light properties are configured.
2016-01-01 17:37:23 +01:00
Vincent Pelletier 09478b1791 TinyGL: Use normalised position for directional lights.
So that dot-product result (used for attenuation) is between -1 and 1.
This should make no difference for GRIM: as far as I can see, all
direction vectors are already normalized in data files.
2016-01-01 17:29:19 +01:00
Bastien Bouclet 5c73d0083d ALL: Merge branch 'tlj' 2016-01-01 07:33:20 +01:00
Bastien Bouclet cc5dec1423 GRAPHICS: Extract the TTF font size from the VDMX table 2016-01-01 07:30:08 +01:00
Bastien Bouclet 0702e3d41a GRAPHICS: Fix ttf font point size computation to round to nearest 2016-01-01 07:30:08 +01:00
Bastien Bouclet 86c3e0d49e GRAPHICS: Introduce a size mode for TrueType font
Allows to match Windows font rendering
2016-01-01 07:30:08 +01:00
Pawel Kolodziejski 3e4a4646d9 GFX: make OS X work with OpenGL 2.1 shaders 2016-01-01 07:29:39 +01:00
Bastien Bouclet a72d415793 GRAPHICS: Revert "GRAPHICS: Add support for integer shader attributes"
This is not supported in OpenGL 2.1

This reverts commit a081bbfdc3844a11463baf190acb6d9dd884f1ae.
2016-01-01 07:29:39 +01:00
Bastien Bouclet 7c867f7dd1 GRAPHICS: Load shaders from the Stark engine folder 2016-01-01 07:29:38 +01:00
Bastien Bouclet fc4e446b84 GRAPHICS: Add support for integer shader attributes 2016-01-01 07:29:38 +01:00
Bastien Bouclet 8a4bada6b9 ENGINES: Also build the legacy OpenGL renderer when enabling shaders 2015-12-29 08:05:49 +01:00
Bastien Bouclet 19cc6b41e7 GRAPHICS: Add a list of renderer types 2015-12-28 16:37:15 +01:00
Pawel Kolodziejski 2fadf2e466 ALL: Synced with ScummVM 2015-12-22 00:24:01 +01:00
Bastien Bouclet 2d86f6da9c GRAPHICS: Introduce a size mode for TrueType fonts
Allows to match Windows font size selection by converting font heights
to point sizes using the TrueType tables.
2015-12-21 18:41:14 +01:00
Johannes Schickel 69220505b6 GRAPHICS: Add function to query TransparentSurface's builtin PixelFormat. 2015-12-14 05:16:12 +01:00
Johannes Schickel f7683083e2 GRAPHICS: Use tabs for indentation. 2015-12-14 02:26:11 +01:00
Johannes Schickel f2926412fe GRAPHICS: Fix fast ALPHA_BINARY blitting with TransparentSurface.
This is a regression from 5d0f38d747 and caused
color glitches in Wintermute.
2015-12-14 02:15:28 +01:00
Eugene Sandulenko 5d0f38d747 GRAPHICS: Fix rendering in some corner cases 2015-11-17 23:17:48 +01:00
Johannes Schickel ac93f3512f GRAPHICS: Remove unused header include. 2015-11-16 17:01:59 +01:00