[ scummvm-Patches-2216641 ] GRAPHICS: PixelFormat introduction

SourceForge.net noreply at sourceforge.net
Sun Nov 2 17:46:02 CET 2008


Patches item #2216641, was opened at 2008-11-02 17:46
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=2216641&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Johannes Schickel (lordhoto)
Assigned to: Max Horn (fingolfin)
Summary: GRAPHICS: PixelFormat introduction

Initial Comment:
Hi,

since we need some way to get a usable pixel format description of the overlay's one, I started to create a SDL_PixelFormat similar struct: Graphics::PixelFormat. This patch basically only adds PixelFormat and a few helpers (RGBToColor, ARGBToColor, colorToRGB, colorToARGB).

The helper functions are currently marked as 'inline', one might want to think about that, but I think it should be fine.

The patch also adds a (documented) method "getOverlayFormat" to OSystem. SDL backend is updated to support it.

Usage for this struct might be:
- GUI's VectorRenderer
- Scalers, seeing patch tracker item #1664514 "Support for a 32 bit _hwscreen in the SDL backend"
- Graphics::Surface to connect a given pixel format with an surface
  -> GUI's GraphicsWidget, to allow easier conversion to overlay format (falls under Graphics::Surface connection of course)



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=2216641&group_id=37116




More information about the Scummvm-tracker mailing list