Typedefs | |
| typedef Common::Array< const byte * > | MacPatterns |
| typedef void(* | FastBlitFunc) (byte *, const byte *, const uint, const uint, const uint, const uint) |
| typedef byte | LarryScaleColor |
| typedef Common::Array< MacDialogButton * > | MacDialogButtonArray |
| typedef Common::Array< MacMenuItem * > | ItemArray |
| typedef Common::Array< Mode > | ModeList |
| typedef Common::Array< ModeWithFormat > | ModeWithFormatList |
| typedef void(VectorRenderer::* | DrawingFunctionCallback) (const Common::Rect &, const Graphics::DrawStep &) |
Enumerations | |
| enum | TextAlign { kTextAlignInvalid, kTextAlignStart, kTextAlignLeft, kTextAlignCenter, kTextAlignEnd, kTextAlignRight } |
| enum | WordWrapMode { kWordWrapDefault = 0, kWordWrapEvenWidthLines = 1 << 0, kWordWrapOnExplicitNewLines = 1 << 1, kWordWrapAllowTrailingWhitespace = 1 << 2 } |
| enum | MacButtonType { kRound, kCheckBox, kRadio } |
| enum | CheckBoxType { kCBNormal, kCBInsetBlack, kCBFilledBlack } |
| enum | { kMacDialogQuitRequested = -2 } |
| enum | { kMacFontNonStandard = -1, kMacFontSystem = 0, kMacFontApplication = 1, kMacFontNewYork = 2, kMacFontGeneva = 3, kMacFontMonaco = 4, kMacFontVenice = 5, kMacFontLondon = 6, kMacFontAthens = 7, kMacFontSanFrancisco = 8, kMacFontToronto = 9, kMacFontCairo = 11, kMacFontLosAngeles = 12, kMacFontZapfDingbats = 13, kMacFontBookman = 14, kMacFontHelveticaNarrow = 15, kMacFontPalatino = 16, kMacFontZapfChancery = 18, kMacFontTimes = 20, kMacFontHelvetica = 21, kMacFontCourier = 22, kMacFontSymbol = 23, kMacFontTaliesin = 24, kMacFontAvantGarde = 33, kMacFontNewCenturySchoolbook = 34, kMacFontChicago = 16383, kMacFontOsaka = 16384, kMacFontBookMinchoM = 16396, kMacFontMonoGothic = 16433, kMacFontMonoMing = 16435, kMacFontOsakaMono = 16436, kMacFontMediumGothic = 16640, kMacFontMing = 16641, kMacFontHeiseiMincho = 16700, kMacFontHeiseiKakuGothic = 16701 } |
| enum | { kMacFontRegular, kMacFontBold = 1, kMacFontItalic = 2, kMacFontUnderline = 4, kMacFontOutline = 8, kMacFontShadow = 16, kMacFontCondense = 32, kMacFontExtend = 64 } |
| enum | { kWindowBorderActive = 1 << 0, kWindowBorderTitle = 1 << 1, kWindowBorderScrollbar = 1 << 2, kWindowBorderMaxFlag = 1 << 3 } |
| enum | { kBorderScroll = 1000 } |
| enum | { kWinBorderWin95Scrollbar = kBorderScroll + 0x00, kWindowBorderWin95NoBorderScrollbar, kWindowBorderMacOSNoBorderScrollbar } |
| enum | ColorDistanceMethod { kColorDistanceEuclidean, kColorDistanceNaive, kColorDistanceRedmean } |
| enum | RendererType : uint32 { kRendererTypeDefault = 0, kRendererTypeOpenGL = 1, kRendererTypeOpenGLShaders = 2, kRendererTypeTinyGL = 4 } |
| enum | DitherMethod { kDitherNaive, kDitherFloyd, kDitherAtkinson, kDitherBurkes, kDitherFalseFloyd, kDitherSierra, kDitherSierraTwoRow, kDitherSierraLite, kDitherStucki, kDitherJarvis } |
| enum | TSpriteBlendMode { BLEND_UNKNOWN = -1, BLEND_NORMAL = 0, BLEND_ADDITIVE = 1, BLEND_SUBTRACTIVE = 2, BLEND_MULTIPLY = 3, NUM_BLEND_MODES } |
| enum | AlphaType { ALPHA_OPAQUE = 0, ALPHA_BINARY = 1, ALPHA_FULL = 2 } |
| enum | FLIP_FLAGS { FLIP_NONE = 0, FLIP_H = 1, FLIP_V = 2, FLIP_HV = FLIP_H | FLIP_V, FLIP_VH = FLIP_H | FLIP_V } |
| The possible flipping parameters for the blit method. More... | |
Functions | |
| void | copyBlit (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const uint bytesPerPixel) |
| bool | keyBlit (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const uint bytesPerPixel, const uint32 key) |
| bool | maskBlit (byte *dst, const byte *src, const byte *mask, const uint dstPitch, const uint srcPitch, const uint maskPitch, const uint w, const uint h, const uint bytesPerPixel) |
| bool | crossBlit (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const Graphics::PixelFormat &dstFmt, const Graphics::PixelFormat &srcFmt) |
| bool | crossKeyBlit (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const Graphics::PixelFormat &dstFmt, const Graphics::PixelFormat &srcFmt, const uint32 key) |
| bool | crossMaskBlit (byte *dst, const byte *src, const byte *mask, const uint dstPitch, const uint srcPitch, const uint maskPitch, const uint w, const uint h, const Graphics::PixelFormat &dstFmt, const Graphics::PixelFormat &srcFmt) |
| bool | crossBlitMap (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const uint bytesPerPixel, const uint32 *map) |
| bool | crossKeyBlitMap (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const uint bytesPerPixel, const uint32 *map, const uint32 key) |
| bool | crossMaskBlitMap (byte *dst, const byte *src, const byte *mask, const uint dstPitch, const uint srcPitch, const uint maskPitch, const uint w, const uint h, const uint bytesPerPixel, const uint32 *map) |
| bool | alphaBlit (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const Graphics::PixelFormat &dstFmt, const Graphics::PixelFormat &srcFmt, const byte flip, const byte aMod) |
| bool | alphaKeyBlit (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const Graphics::PixelFormat &dstFmt, const Graphics::PixelFormat &srcFmt, const uint32 key, const byte flip, const byte aMod) |
| bool | alphaMaskBlit (byte *dst, const byte *src, const byte *mask, const uint dstPitch, const uint srcPitch, const uint maskPitch, const uint w, const uint h, const Graphics::PixelFormat &dstFmt, const Graphics::PixelFormat &srcFmt, const byte flip, const byte aMod) |
| bool | alphaBlitMap (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const Graphics::PixelFormat &dstFmt, const uint32 *map, const byte flip, const byte aMod) |
| bool | alphaKeyBlitMap (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const Graphics::PixelFormat &dstFmt, const uint32 *map, const uint32 key, const byte flip, const byte aMod) |
| bool | alphaMaskBlitMap (byte *dst, const byte *src, const byte *mask, const uint dstPitch, const uint srcPitch, const uint maskPitch, const uint w, const uint h, const Graphics::PixelFormat &dstFmt, const uint32 *map, const byte flip, const byte aMod) |
| FastBlitFunc | getFastBlitFunc (const PixelFormat &dstFmt, const PixelFormat &srcFmt) |
| bool | scaleBlit (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint dstW, const uint dstH, const uint srcW, const uint srcH, const Graphics::PixelFormat &fmt, const byte flip=0) |
| bool | scaleBlitBilinear (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint dstW, const uint dstH, const uint srcW, const uint srcH, const Graphics::PixelFormat &fmt, const byte flip=0) |
| bool | rotoscaleBlit (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint dstW, const uint dstH, const uint srcW, const uint srcH, const Graphics::PixelFormat &fmt, const TransformStruct &transform, const Common::Point &newHotspot) |
| bool | rotoscaleBlitBilinear (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint dstW, const uint dstH, const uint srcW, const uint srcH, const Graphics::PixelFormat &fmt, const TransformStruct &transform, const Common::Point &newHotspot) |
| bool | applyColorKey (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const Graphics::PixelFormat &format, const bool overwriteAlpha, const uint8 rKey, const uint8 gKey, const uint8 bKey, const uint8 rNew, const uint8 gNew, const uint8 bNew) |
| bool | setAlpha (byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const Graphics::PixelFormat &format, const bool skipTransparent, const uint8 alpha) |
| TextAlign | convertTextAlignH (TextAlign alignH, bool rtl) |
| void | larryScale (int srcWidth, int srcHeight, LarryScaleColor transparentColor, RowReader &rowReader, int dstWidth, int dstHeight, RowWriter &rowWriter) |
| int | getStringWidth (MacFontRun &format, const Common::U32String &str) |
| const Common::U32String::value_type * | readHex (uint16 *res, const Common::U32String::value_type *s, int len) |
| template<int bitFormat> | |
| PixelFormat | createPixelFormat () |
| ManagedSurface * | renderPM5544 (int width, int height) |
| void | downscaleAllByHalf (const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height, int gBits=565) |
| void | downscaleSurfaceByHalf (Surface *out, const Surface *in, const byte *palette) |
| bool | checkThumbnailHeader (Common::SeekableReadStream &in) |
| bool | skipThumbnail (Common::SeekableReadStream &in) |
| bool | loadThumbnail (Common::SeekableReadStream &in, Graphics::Surface *&thumbnail, bool skipThumbnail=false) |
| bool | createThumbnail (Graphics::Surface &thumb) |
| bool | saveThumbnail (Common::WriteStream &out) |
| bool | saveThumbnail (Common::WriteStream &out, const Graphics::Surface &thumb) |
| bool | createScreenShot (Graphics::Surface &surf) |
| Graphics::Surface * | scale (const Graphics::Surface &srcImage, int xSize, int ySize) |
| VectorRenderer * | createRenderer (int mode) |
| Cursor * | makeDefaultWinCursor () |
| Cursor * | makeBusyWinCursor () |
| Cursor * | loadWindowsCursorFromDIB (Common::SeekableReadStream &stream, uint16 hotspotX, uint16 hotspotY) |
Variables | |
| const int | OPCODE_END = 0 |
| const int | OPCODE_DOSCAN = 1 |
| const int | OPCODE_MOVE = 2 |
| const int | OPCODE_DRAW = 3 |
| const byte | macEGADither [16][4] |
| const byte | macGammaCorrectionLookUp [256] |
| constexpr int | PALETTE_COUNT = 256 |
| constexpr int | PALETTE_SIZE = (256 * 3) |
| const int32 | kDefaultZoomX = 100 |
| const int32 | kDefaultZoomY = 100 |
| const uint32 | kDefaultRgbaMod = 0xFFFFFFFF |
| const int32 | kDefaultHotspotX = 0 |
| const int32 | kDefaultHotspotY = 0 |
| const int32 | kDefaultOffsetX = 0 |
| const int32 | kDefaultOffsetY = 0 |
| const int32 | kDefaultAngle = 0 |
This is the namespace of the AGDS engine.
Status of this engine: In Progress
Games using this engine:
| Enumerator | |
|---|---|
| kColorDistanceEuclidean | Non-Weighted distance. |
| kColorDistanceNaive | Weighted red 30%, green 50%, blue 20%. |
| kColorDistanceRedmean | Common low-cost approximation. |
| enum Graphics::FLIP_FLAGS |
The possible flipping parameters for the blit method.
| void Graphics::larryScale | ( | int | srcWidth, |
| int | srcHeight, | ||
| LarryScaleColor | transparentColor, | ||
| RowReader & | rowReader, | ||
| int | dstWidth, | ||
| int | dstHeight, | ||
| RowWriter & | rowWriter | ||
| ) |
| srcWidth | The width, in pixels, of the original image |
| srcHeight | The height, in pixels, of the original image |
| transparentColor | The transparent color. Used for outline detection. |
| rowReader | An object with a callback method for reading the lines of the original image |
| dstWidth | The width, in pixels, of the scaled target image |
| dstHeight | The height, in pixels, of the scaled target image |
| rowWriter | An object with a callback method accepting the lines of the target image |
| ManagedSurface* Graphics::renderPM5544 | ( | int | width, |
| int | height | ||
| ) |
Renders a Philips PM5544 test pattern on a surface with given dimensions
| width | Width of the surface |
| height | Height of the surface |
| void Graphics::downscaleAllByHalf | ( | const uint8 * | srcPtr, |
| uint32 | srcPitch, | ||
| uint8 * | dstPtr, | ||
| uint32 | dstPitch, | ||
| int | width, | ||
| int | height, | ||
| int | gBits = 565 |
||
| ) |
This filter (down)scales the source image by a factor of 1/2. For example, a 320x200 image is scaled to 160x100.
| const byte Graphics::macEGADither[16][4] |
| const byte Graphics::macGammaCorrectionLookUp[256] |
| constexpr int Graphics::PALETTE_COUNT = 256 |
Constants available for use in paletted code
| const int32 Graphics::kDefaultZoomX = 100 |
Contains all the required information that define a transform. Same source sprite + same TransformStruct = Same resulting sprite. Has a number of overloaded constructors to accommodate various argument lists.