Johannes Schickel
aaca04cdfc
GRAPHICS: Rewrite PixelFormat::toString to be easier to understand.
2015-11-16 16:58:23 +01:00
Johannes Schickel
1c7a5e5a01
GRAPHICS: Fix component order in PixelFormat::toString output.
...
Formerly components were printed from bottom to top, common notation is from
top to bottom. For reference check how we name formats, like in for example:
backends/graphics/openglsdl/openglsdl-graphics.cpp:190-230
backends/graphics/surfacesdl/surfacesdl-graphics.cpp:409-490
sherlock/scalpel/scalpel.cpp:207
2015-11-16 16:28:01 +01:00
Johannes Schickel
eee8ef9dce
GRAPHICS: Make PixelFormat::toString const.
2015-11-16 16:03:44 +01:00
Eugene Sandulenko
cfc626d78d
GRAPHICS: Implemented utility function to print PixelFormat
2015-11-16 07:00:09 +01:00
Dries Harnie
c3b40cfe83
Merge pull request #1179 from Botje/side-textures
...
GRIM: Side texture support for the widescreen mod
2015-09-06 13:25:39 +02:00
Dries Harnie
12d38bdfac
GRAPHICS: Change default wrapping behavior for textures
...
to GL_CLAMP_TO_EDGE.
2015-08-18 14:21:03 +02:00
Dries Harnie
e6ba906656
GRAPHICS: Use NPoT textures if supported
2015-08-18 14:21:03 +02:00
Paweł Kołodziejski
0eb20ae8d5
Merge pull request #1177 from vpelletier/for_upstream
...
GRIM: Assorted lighting fixes
2015-08-16 08:53:18 +02:00
Dries Harnie
f843190f69
GRAPHICS: Convert images to RGBA in Graphics::Texture
2015-06-05 09:56:41 +02:00
Dries Harnie
36c8b3d2d5
GRAPHICS: Move common OpenGL files into graphics/opengl
2015-05-27 10:08:25 +02:00
Dries Harnie
bc80a12978
GRAPHICS: Inherit FrameBuffer from Texture
2015-05-27 10:06:16 +02:00
Dries Harnie
3bbdc2ea06
GRAPHICS: Implement Graphics::Texture class for OpenGL
2015-05-27 10:06:16 +02:00
Dries Harnie
e0716bbd96
GRAPHICS: Test for SDL_BACKEND in compatShaders
2015-05-22 13:51:18 +02:00
Dries Harnie
52010ff229
GRAPHICS: Silence multiple-definition warnings
...
Reported by eriktorbjorn on IRC.
2015-05-12 20:56:31 +02:00
Dries Harnie
fb3bd8139a
JANITORIAL: Fix Coverity warnings
...
Fixes coverity warnings 1267220, 1256936, 1229470, 1224097, 1219766,
1054364, 1009896.
2015-05-12 08:49:19 +02:00
Dries Harnie
5c813a8b64
GRAPHICS: Only manually pull pointers if USE_GLEW not defined
2015-05-11 16:57:05 +02:00
Dries Harnie
9e1b0f1516
BUILD: Promote GLEW to configure option
...
# Conflicts:
# backends/graphics/surfacesdl/surfacesdl-graphics.cpp
2015-05-11 16:56:56 +02:00
Vincent Pelletier
ce5af40a0b
TinyGL: Store spot direction in eye coordinates.
...
As per OpenGL specifications:
The spot direction is transformed by the upper 3x3 of the modelview
matrix when glLight is called, and it is stored in eye coordinates.
2015-05-06 19:49:35 +02:00
Dries Harnie
a051070b78
GRAPHICS: Disable extra attributes bound by a previous shader [OpenGLS]
...
When switching between shaders, the previous shader might have Y
attributes, while the current shader only has X, with X < Y. The extra
attributes will not be used by the shader, but the driver might attempt
to read from the bound FBOs anyway. OSX's OpenGL profiler stumbles over
this.
2015-05-05 18:35:02 +08:00
Pawel Kolodziejski
4fe80cd669
ALL: synced with ScummVM
2015-04-19 07:43:34 +02:00
Matthew Hoops
75acef7566
GRAPHICS: Force a cast to int to avoid gcc warnings
2015-04-11 16:12:47 -04:00
Torbjörn Andersson
6f7b0311af
GRAPHICS: Fix GCC signed/unsigned warnings.
2015-03-02 08:38:33 +01:00
Pawel Kolodziejski
c3da0c33a4
GFX: make OS X work with OpenGL 2.1 shaders
2015-02-21 13:43:30 +01:00
Pawel Kolodziejski
f039ccd474
TINYGL: make consistent between allocation and free resource
2014-12-27 23:28:11 +01:00
Pawel Kolodziejski
b8bddf64da
GRIM: fixed transparency in TinyGL renderer
2014-12-25 15:16:50 +01:00
Pawel Kolodziejski
c2a9a394c3
MYST3, TINYGL: fixed endian issue
2014-12-23 20:40:59 +01:00
Pawel Kolodziejski
8b8783134f
ALL: synced with ScummVM
2014-12-04 20:46:56 +01:00
Pawel Kolodziejski
d1b4ea1226
GFX: fix compile for amigaos4
2014-12-04 19:13:21 +01:00
Filippos Karapetis
614de0d761
GRAPHICS: Remove trailing whitespace
2014-10-28 15:38:50 +02:00
Fedor
75305f136f
GRAPHICS: Remove some trailing whitespace in surface.h
2014-10-28 15:03:44 +02:00
Filippos Karapetis
d3475fe3b6
GRAPHICS: Silence an MSVC warning
2014-10-19 17:03:14 +03:00
Dries Harnie
7dda0ef439
JANITORIAL: Code style fixes
2014-10-16 00:12:08 +02:00
Dries Harnie
de4295da28
GRAPHICS: Dynamically find function pointers for framebuffers
2014-10-16 00:12:08 +02:00
Bastien Bouclet
2d9d0cc32d
GRAPHICS: Clear the extensions list before initializing it
...
Graphics::initExtensions may now be called several times.
2014-10-16 00:12:08 +02:00
Dries Harnie
15799c9cfe
JANITORIAL: Fix style issues
2014-10-16 00:12:07 +02:00
Dries Harnie
d7f37dd987
GRAPHICS: Allow guarded use of Graphics::Framebuffer
...
Raise an assertion if a framebuffer is requested without the correct
extension
2014-10-16 00:12:07 +02:00
Dries Harnie
64c3bbc553
GRAPHICS: Allow FrameBuffer to manage its own texture
2014-10-16 00:12:07 +02:00
Dries Harnie
06d077d00d
TINYGL: Rename glColor3fv to tglColor3fv
...
Linking TinyGL and OpenGL into the same binary could cause conflicts
because both have a glColor3fv function.
It is currently not used in ResidualVM, so it is safe to change this.
2014-09-28 12:14:44 +02:00
Pawel Kolodziejski
6fc28fe37d
TINYGL: gl -> tgl rename
2014-09-21 15:05:17 +02:00
Pawel Kolodziejski
e20ef7a4f8
TINYGL: added support for alpha channel for non texture triangles.
2014-09-12 06:50:17 +02:00
Pawel Kolodziejski
22aca5a427
ALL: synced with ScummVM
2014-09-07 21:36:17 +02:00
Johannes Schickel
2a75e9f1ad
Merge pull request #500 from lordhoto/ttf-improvements
...
Improve TTF Rendering (includes Font API changes).
2014-09-07 21:23:24 +02:00
Johannes Schickel
248ea3c1ab
GRAPHICS: Allow negative xOffset in TTF.
...
This should improve the visual looks of many fonts. However, it might result
in the first line of the glyph to be drawn left of the position specified in
drawChar.
2014-09-03 22:55:48 +02:00
Johannes Schickel
d55cd8f3b4
GRAPHICS: Allow to query the bounding box of chars/strings drawn with Font API.
2014-09-03 22:55:48 +02:00
Einar Johan Trøan Sømåen
0593c2eab2
GRAPHICS: Fix some Doxygen comments that seem wrong.
2014-08-29 03:26:48 +02:00
Pawel Kolodziejski
5bc9c58902
OPENGL: allow compile without OpenGL headers
2014-08-24 17:13:05 +02:00
Pawel Kolodziejski
1a07a23294
ALL: synced with ScummVM
2014-08-18 05:21:52 +02:00
Matthew Hoops
6642f6df9e
GRAPHICS: Improve color bit depth conversion
...
Data is no longer truncated it so should be more accurate. See pull request #486 for more info.
2014-08-17 17:49:37 -04:00
Paweł Kołodziejski
df14a526f2
Merge pull request #1033 from subr3v/master-changlog
...
TINYGL: Updated changelog.
2014-08-16 18:26:03 +02:00
Stefano Musumeci
f615ba388b
TINYGL: Updated changelog.
2014-08-16 18:25:23 +02:00