aboutsummaryrefslogtreecommitdiff
path: root/graphics
AgeCommit message (Collapse)Author
2016-02-14Merge pull request #658 from sev-/wageEugene Sandulenko
WAGE: New Engine
2016-02-14GRAPHICS: Fix regression in polygon drawingEugene Sandulenko
2016-02-14GRAPHICS: Use our own sort instead of bubbleEugene Sandulenko
2016-02-14GRAPHICS: Move generic primitives from WAGE engineEugene Sandulenko
2016-01-08GRAPHICS: Silence an MSVC warningFilippos Karapetis
2015-12-21GRAPHICS: Introduce a size mode for TrueType fontsBastien Bouclet
Allows to match Windows font size selection by converting font heights to point sizes using the TrueType tables.
2015-12-14GRAPHICS: Add function to query TransparentSurface's builtin PixelFormat.Johannes Schickel
2015-12-14GRAPHICS: Use tabs for indentation.Johannes Schickel
2015-12-14GRAPHICS: Fix fast ALPHA_BINARY blitting with TransparentSurface.Johannes Schickel
This is a regression from 5d0f38d747e7583d0ca5959cd642468ba67cd04c and caused color glitches in Wintermute.
2015-11-17GRAPHICS: Fix rendering in some corner casesEugene Sandulenko
2015-11-16GRAPHICS: Remove unused header include.Johannes Schickel
2015-11-16GRAPHICS: Rewrite PixelFormat::toString to be easier to understand.Johannes Schickel
2015-11-16GRAPHICS: Fix component order in PixelFormat::toString output.Johannes Schickel
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-16GRAPHICS: Make PixelFormat::toString const.Johannes Schickel
2015-11-16GRAPHICS: Implemented utility function to print PixelFormatEugene Sandulenko
2015-04-11GRAPHICS: Force a cast to int to avoid gcc warningsMatthew Hoops
2015-03-02GRAPHICS: Fix GCC signed/unsigned warnings.Torbjörn Andersson
2014-10-28GRAPHICS: Remove trailing whitespaceFilippos Karapetis
2014-10-28GRAPHICS: Remove some trailing whitespace in surface.hFedor
2014-10-19GRAPHICS: Silence an MSVC warningFilippos Karapetis
2014-09-07Merge pull request #500 from lordhoto/ttf-improvementsJohannes Schickel
Improve TTF Rendering (includes Font API changes).
2014-09-03GRAPHICS: Allow negative xOffset in TTF.Johannes Schickel
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-03GRAPHICS: Allow to query the bounding box of chars/strings drawn with Font API.Johannes Schickel
2014-08-29GRAPHICS: Fix some Doxygen comments that seem wrong.Einar Johan Trøan Sømåen
2014-08-17GRAPHICS: Improve color bit depth conversionMatthew Hoops
Data is no longer truncated it so should be more accurate. See pull request #486 for more info.
2014-06-23GRAPHICS: Added BE/LE to TS_ macrosEugene Sandulenko
2014-06-17GRAPHICS: Rename BS_ to TS_ (for TransparentSurface)Eugene Sandulenko
2014-06-15GRAPHICS: Fix compilation for AmigaEugene Sandulenko
2014-06-15Merge pull request #466 from sev-/transparent-surfaceEugene Sandulenko
COMMON: Move TransparentSurface to common code
2014-06-15COMMON: Copy TransparentSurface from Wintermute engine to common codeEugene Sandulenko
2014-06-09GRAPHICS: Allow client code to specify TTF render mode.Johannes Schickel
This allows clients to use the default FreeType2 render mode instead of light. We really only use light as default because that's what looks best with the font we use in our GUI right now (which is the same reason why formerly light was always used in non-monochrome mode).
2014-05-27GRAPHICS: colour -> color in VectorRendererSpec code.Johannes Schickel
2014-03-06GRAPHICS: Manually specify function alignment in ARM assembly.Johannes Schickel
2014-02-28IMAGE: Move all ImageDecoders to image/Matthew Hoops
2014-02-18GRAPHICS: Make GPL headers consistent in themselves.Johannes Schickel
2014-01-15ALL: Remove optimization unstable code on checking for null after new.D G Turner
These issues were identified by the STACK tool. By default, the C++ new operator will throw an exception on allocation failure, rather than returning a null pointer. The result is that testing the returned pointer for null is redundant and _may_ be removed by the compiler. This is thus optimization unstable and may result in incorrect behaviour at runtime. However, we do not use exceptions as they are not supported by all compilers and may be disabled. To make this stable without removing the null check, you could qualify the new operator call with std::nothrow to indicate that this should return a null, rather than throwing an exception. However, using (std::nothrow) was not desirable due to the Symbian toolchain lacking a <new> header. A global solution to this was also not easy by redefining "new" as "new (std::nothrow)" due to custom constructors in NDS toolchain and various common classes. Also, this would then need explicit checks for OOM adding to all new usages as per C malloc which is untidy. For now to remove this optimisation unstable code is best as it is likely to not be present anyway, and OOM will cause a system library exception instead, even without exceptions enabled in the application code.
2014-01-10GRAPHICS: Fix dest alpha formula in blendPixelPtrMarcus Comstedt
The original alpha computation formula had a problem: If something was drawn on top of a pixel that was already fully opaque, there would be an overflow in the computed alpha, and the destination alpha would be truncated to 0 (fully transparent). In commit 264ba4a9 this formula was replaced with another one, which did not have overflows but also was not correct. This commits introduces a new formula, where the rounding errors have been turned in another direction; drawing a fully opaque pixel on top of a transparent one would result in a pixel which is almost, but not fully, opaque. However, this is no problem in practice, since drawing fully opaque pixels can be achieved with much less code as a special case, so add that (also improves rendering speed).
2014-01-10GRAPHICS: Fix computation of addA in darkenFill()Marcus Comstedt
The old computation had rounding issues, causing alpha to leak into the red (usually) component. There's a much easier way to compute it that does not lead to such problems: What should really happen is that the two top bits of the A component should be set to 1 (thus adding 75% alpha). So compute it that way for speed and precision.
2013-12-13GRAPHICS: Minor readability fixes to drawBevelSquareAlg method.D G Turner
No functional change.
2013-12-08GRAPHICS: Document loadTTFFont a bit.Johannes Schickel
2013-12-01GRAPHICS: Initialize variable. CID 1133708Eugene Sandulenko
2013-11-27GRAPHICS: Fix SharedPtrSurfaceDeleter for nullptr inputs.Johannes Schickel
2013-11-23GRAPHICS: Allow Font to accept U32String as strings.Johannes Schickel
2013-11-23GRAPHICS: Allow TTFFont to cache glyphs when required.Johannes Schickel
This should allow TTFFont to display UTF-32 characters from fonts.
2013-11-23GRAPHICS: Get rid of _glyphSlots in TTFFont.Johannes Schickel
2013-11-23GRAPHICS: Let Font take uint32 as character codes.Johannes Schickel
This is required to support UTF-32 strings but does not make them work automatically!
2013-11-12GRAPHICS: Set PNG alpha bits to 0 if there's no alpha present.Alyssa Milburn
This fixes the color-keying checks in Wintermute for PNG images.
2013-10-26ALL: Mark off common code used by ZVisionMatthew Hoops
2013-10-26GRAPHICS: do not reset the extra parameters of IFFDecoder on destroy().peres
The two properties that control pixel packing and the size of the surface need to be preserved for loadStream() to work correctly. They are now under complete responsibility of the client.
2013-10-26Revert "GRAPHICS: do not clear the internal state of IFFDecoder on ↵peres
loadStream()." This reverts commit 92c1ff31d6d8d78e58caa4d123ceb0fea43a48ed.