WebRadioApp  0.1
ewextgfx.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EW_USE_GRAPHICS_ACCELERATOR   1
 
#define EW_COLOR_CHANNEL_BIT_OFFSET_RED   16
 
#define EW_COLOR_CHANNEL_BIT_OFFSET_GREEN   8
 
#define EW_COLOR_CHANNEL_BIT_OFFSET_BLUE   0
 
#define EW_COLOR_CHANNEL_BIT_OFFSET_ALPHA   24
 
#define EW_USE_PIXEL_FORMAT_SCREEN
 
#define EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_RED   11
 
#define EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_GREEN   5
 
#define EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_BLUE   0
 
#define EW_PREMULTIPLY_COLOR_CHANNELS   0
 
#define EwGfxInit   GfxInitGfx
 
#define EwGfxInitViewport   GfxInitViewport
 
#define EwGfxDoneViewport   GfxDoneViewport
 
#define EwGfxBeginUpdate   GfxBeginUpdate
 
#define EwGfxBeginUpdateArea   GfxBeginUpdateArea
 
#define EwGfxEndUpdate   GfxEndUpdate
 
#define EwGfxCreateNativeSurface   GfxCreateSurface
 
#define EwGfxCreateConstNativeSurface   GfxCreateConstSurface
 
#define EwGfxDestroyNativeSurface   GfxDestroySurface
 
#define EwGfxLockNativeSurface   GfxLockSurface
 
#define EwGfxUnlockNativeSurface   GfxUnlockSurface
 
#define EwGfxCreateAlpha8Surface   GfxCreateSurface
 
#define EwGfxCreateConstAlpha8Surface   GfxCreateConstSurface
 
#define EwGfxDestroyAlpha8Surface   GfxDestroySurface
 
#define EwGfxLockAlpha8Surface   GfxLockSurface
 
#define EwGfxUnlockAlpha8Surface   GfxUnlockSurface
 
#define EwGfxCreateIndex8Surface   GfxCreateSurface
 
#define EwGfxCreateConstIndex8Surface   GfxCreateConstSurface
 
#define EwGfxDestroyIndex8Surface   GfxDestroySurface
 
#define EwGfxLockIndex8Surface   GfxLockSurface
 
#define EwGfxUnlockIndex8Surface   GfxUnlockSurface
 
#define EwGfxCreateRGB565Surface   GfxCreateSurface
 
#define EwGfxCreateConstRGB565Surface   GfxCreateConstSurface
 
#define EwGfxDestroyRGB565Surface   GfxDestroySurface
 
#define EwGfxLockRGB565Surface   GfxLockSurface
 
#define EwGfxUnlockRGB565Surface   GfxUnlockSurface
 
#define EwGfxLockScreenSurface   GfxLockSurface
 
#define EwGfxUnlockScreenSurface   GfxUnlockSurface
 
#define EwGfxFillSolid   GfxFillDriver
 
#define EwGfxFillSolidBlend   GfxFillDriver
 
#define EwGfxScreenFillSolid   GfxFillDriver
 
#define EwGfxScreenFillSolidBlend   GfxFillDriver
 
#define EwGfxCopyNative   GfxCopyDriver
 
#define EwGfxCopyNativeSolid   GfxCopyDriver
 
#define EwGfxCopyAlpha8Solid   GfxCopyDriver
 
#define EwGfxCopyIndex8   GfxCopyDriver
 
#define EwGfxCopyIndex8Solid   GfxCopyDriver
 
#define EwGfxCopyRGB565   GfxCopyDriver
 
#define EwGfxCopyRGB565Solid   GfxCopyDriver
 
#define EwGfxScreenCopyNative   GfxCopyDriver
 
#define EwGfxScreenCopyNativeSolid   GfxCopyDriver
 
#define EwGfxScreenCopyAlpha8Solid   GfxCopyDriver
 
#define EwGfxScreenCopyIndex8   GfxCopyDriver
 
#define EwGfxScreenCopyIndex8Solid   GfxCopyDriver
 
#define EwGfxScreenCopyRGB565   GfxCopyDriver
 
#define EwGfxScreenCopyRGB565Solid   GfxCopyDriver
 
#define EwGfxCopyNativeBlend   GfxBlendDriver
 
#define EwGfxCopyNativeSolidBlend   GfxBlendDriver
 
#define EwGfxCopyAlpha8SolidBlend   GfxBlendDriver
 
#define EwGfxCopyIndex8Blend   GfxBlendDriver
 
#define EwGfxCopyIndex8SolidBlend   GfxBlendDriver
 
#define EwGfxCopyRGB565SolidBlend   GfxBlendDriver
 
#define EwGfxScreenCopyNativeBlend   GfxBlendDriver
 
#define EwGfxScreenCopyNativeSolidBlend   GfxBlendDriver
 
#define EwGfxScreenCopyAlpha8SolidBlend   GfxBlendDriver
 
#define EwGfxScreenCopyIndex8Blend   GfxBlendDriver
 
#define EwGfxScreenCopyIndex8SolidBlend   GfxBlendDriver
 
#define EwGfxScreenCopyRGB565SolidBlend   GfxBlendDriver
 

Functions

int GfxInitGfx (void *aArgs)
 
unsigned long GfxInitViewport (int aWidth, int aHeight, int aExtentX, int aExtentY, int aExtentWidth, int aExtentHeight, int aOrient, int aOpacity, void *aDisplay1, void *aDisplay2, void *aDisplay3)
 
void GfxDoneViewport (unsigned long aHandle)
 
unsigned long GfxBeginUpdate (unsigned long aHandle)
 
unsigned long GfxBeginUpdateArea (unsigned long aHandle, int aX, int aY, int aWidth, int aHeight)
 
void GfxEndUpdate (unsigned long aHandle, int aX, int aY, int aWidth, int aHeight)
 
unsigned long GfxCreateSurface (int aFormat, int aWidth, int aHeight)
 
unsigned long GfxCreateConstSurface (int aFormat, int aWidth, int aHeight, XSurfaceMemory *aMemory)
 
void GfxDestroySurface (unsigned long aHandle)
 
unsigned long GfxLockSurface (unsigned long aHandle, int aX, int aY, int aWidth, int aHeight, int aIndex, int aCount, int aReadPixel, int aWritePixel, int aReadClut, int aWriteClut, XSurfaceMemory *aMemory)
 
void GfxUnlockSurface (unsigned long aSurfaceHandle, unsigned long aLockHandle, int aX, int aY, int aWidth, int aHeight, int aIndex, int aCount, int aWritePixel, int aWriteClut)
 
void GfxFillDriver (unsigned long aDstHandle, int aDstX, int aDstY, int aWidth, int aHeight, int aBlend, unsigned long *aColors)
 
void GfxCopyDriver (unsigned long aDstHandle, unsigned long aSrcHandle, int aDstX, int aDstY, int aSrcX, int aSrcY, int aWidth, int aHeight, int aBlend, unsigned long *aColors)
 
void GfxBlendDriver (unsigned long aDstHandle, unsigned long aSrcHandle, int aDstX, int aDstY, int aSrcX, int aSrcY, int aWidth, int aHeight, int aBlend, unsigned long *aColors)
 
void GfxUseGraphicsAccelerator (int aActive)
 
int GfxIsGraphicsAcceleratorUsed (void)
 

Macro Definition Documentation

◆ EW_COLOR_CHANNEL_BIT_OFFSET_ALPHA

#define EW_COLOR_CHANNEL_BIT_OFFSET_ALPHA   24

◆ EW_COLOR_CHANNEL_BIT_OFFSET_BLUE

#define EW_COLOR_CHANNEL_BIT_OFFSET_BLUE   0

◆ EW_COLOR_CHANNEL_BIT_OFFSET_GREEN

#define EW_COLOR_CHANNEL_BIT_OFFSET_GREEN   8

◆ EW_COLOR_CHANNEL_BIT_OFFSET_RED

#define EW_COLOR_CHANNEL_BIT_OFFSET_RED   16

◆ EW_PREMULTIPLY_COLOR_CHANNELS

#define EW_PREMULTIPLY_COLOR_CHANNELS   0

◆ EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_BLUE

#define EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_BLUE   0

◆ EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_GREEN

#define EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_GREEN   5

◆ EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_RED

#define EW_SCREEN_COLOR_CHANNEL_BIT_OFFSET_RED   11

◆ EW_USE_GRAPHICS_ACCELERATOR

#define EW_USE_GRAPHICS_ACCELERATOR   1

◆ EW_USE_PIXEL_FORMAT_SCREEN

#define EW_USE_PIXEL_FORMAT_SCREEN

◆ EwGfxBeginUpdate

#define EwGfxBeginUpdate   GfxBeginUpdate

◆ EwGfxBeginUpdateArea

#define EwGfxBeginUpdateArea   GfxBeginUpdateArea

◆ EwGfxCopyAlpha8Solid

#define EwGfxCopyAlpha8Solid   GfxCopyDriver

◆ EwGfxCopyAlpha8SolidBlend

#define EwGfxCopyAlpha8SolidBlend   GfxBlendDriver

◆ EwGfxCopyIndex8

#define EwGfxCopyIndex8   GfxCopyDriver

◆ EwGfxCopyIndex8Blend

#define EwGfxCopyIndex8Blend   GfxBlendDriver

◆ EwGfxCopyIndex8Solid

#define EwGfxCopyIndex8Solid   GfxCopyDriver

◆ EwGfxCopyIndex8SolidBlend

#define EwGfxCopyIndex8SolidBlend   GfxBlendDriver

◆ EwGfxCopyNative

#define EwGfxCopyNative   GfxCopyDriver

◆ EwGfxCopyNativeBlend

#define EwGfxCopyNativeBlend   GfxBlendDriver

◆ EwGfxCopyNativeSolid

#define EwGfxCopyNativeSolid   GfxCopyDriver

◆ EwGfxCopyNativeSolidBlend

#define EwGfxCopyNativeSolidBlend   GfxBlendDriver

◆ EwGfxCopyRGB565

#define EwGfxCopyRGB565   GfxCopyDriver

◆ EwGfxCopyRGB565Solid

#define EwGfxCopyRGB565Solid   GfxCopyDriver

◆ EwGfxCopyRGB565SolidBlend

#define EwGfxCopyRGB565SolidBlend   GfxBlendDriver

◆ EwGfxCreateAlpha8Surface

#define EwGfxCreateAlpha8Surface   GfxCreateSurface

◆ EwGfxCreateConstAlpha8Surface

#define EwGfxCreateConstAlpha8Surface   GfxCreateConstSurface

◆ EwGfxCreateConstIndex8Surface

#define EwGfxCreateConstIndex8Surface   GfxCreateConstSurface

◆ EwGfxCreateConstNativeSurface

#define EwGfxCreateConstNativeSurface   GfxCreateConstSurface

◆ EwGfxCreateConstRGB565Surface

#define EwGfxCreateConstRGB565Surface   GfxCreateConstSurface

◆ EwGfxCreateIndex8Surface

#define EwGfxCreateIndex8Surface   GfxCreateSurface

◆ EwGfxCreateNativeSurface

#define EwGfxCreateNativeSurface   GfxCreateSurface

◆ EwGfxCreateRGB565Surface

#define EwGfxCreateRGB565Surface   GfxCreateSurface

◆ EwGfxDestroyAlpha8Surface

#define EwGfxDestroyAlpha8Surface   GfxDestroySurface

◆ EwGfxDestroyIndex8Surface

#define EwGfxDestroyIndex8Surface   GfxDestroySurface

◆ EwGfxDestroyNativeSurface

#define EwGfxDestroyNativeSurface   GfxDestroySurface

◆ EwGfxDestroyRGB565Surface

#define EwGfxDestroyRGB565Surface   GfxDestroySurface

◆ EwGfxDoneViewport

#define EwGfxDoneViewport   GfxDoneViewport

◆ EwGfxEndUpdate

#define EwGfxEndUpdate   GfxEndUpdate

◆ EwGfxFillSolid

#define EwGfxFillSolid   GfxFillDriver

◆ EwGfxFillSolidBlend

#define EwGfxFillSolidBlend   GfxFillDriver

◆ EwGfxInit

#define EwGfxInit   GfxInitGfx

◆ EwGfxInitViewport

#define EwGfxInitViewport   GfxInitViewport

◆ EwGfxLockAlpha8Surface

#define EwGfxLockAlpha8Surface   GfxLockSurface

◆ EwGfxLockIndex8Surface

#define EwGfxLockIndex8Surface   GfxLockSurface

◆ EwGfxLockNativeSurface

#define EwGfxLockNativeSurface   GfxLockSurface

◆ EwGfxLockRGB565Surface

#define EwGfxLockRGB565Surface   GfxLockSurface

◆ EwGfxLockScreenSurface

#define EwGfxLockScreenSurface   GfxLockSurface

◆ EwGfxScreenCopyAlpha8Solid

#define EwGfxScreenCopyAlpha8Solid   GfxCopyDriver

◆ EwGfxScreenCopyAlpha8SolidBlend

#define EwGfxScreenCopyAlpha8SolidBlend   GfxBlendDriver

◆ EwGfxScreenCopyIndex8

#define EwGfxScreenCopyIndex8   GfxCopyDriver

◆ EwGfxScreenCopyIndex8Blend

#define EwGfxScreenCopyIndex8Blend   GfxBlendDriver

◆ EwGfxScreenCopyIndex8Solid

#define EwGfxScreenCopyIndex8Solid   GfxCopyDriver

◆ EwGfxScreenCopyIndex8SolidBlend

#define EwGfxScreenCopyIndex8SolidBlend   GfxBlendDriver

◆ EwGfxScreenCopyNative

#define EwGfxScreenCopyNative   GfxCopyDriver

◆ EwGfxScreenCopyNativeBlend

#define EwGfxScreenCopyNativeBlend   GfxBlendDriver

◆ EwGfxScreenCopyNativeSolid

#define EwGfxScreenCopyNativeSolid   GfxCopyDriver

◆ EwGfxScreenCopyNativeSolidBlend

#define EwGfxScreenCopyNativeSolidBlend   GfxBlendDriver

◆ EwGfxScreenCopyRGB565

#define EwGfxScreenCopyRGB565   GfxCopyDriver

◆ EwGfxScreenCopyRGB565Solid

#define EwGfxScreenCopyRGB565Solid   GfxCopyDriver

◆ EwGfxScreenCopyRGB565SolidBlend

#define EwGfxScreenCopyRGB565SolidBlend   GfxBlendDriver

◆ EwGfxScreenFillSolid

#define EwGfxScreenFillSolid   GfxFillDriver

◆ EwGfxScreenFillSolidBlend

#define EwGfxScreenFillSolidBlend   GfxFillDriver

◆ EwGfxUnlockAlpha8Surface

#define EwGfxUnlockAlpha8Surface   GfxUnlockSurface

◆ EwGfxUnlockIndex8Surface

#define EwGfxUnlockIndex8Surface   GfxUnlockSurface

◆ EwGfxUnlockNativeSurface

#define EwGfxUnlockNativeSurface   GfxUnlockSurface

◆ EwGfxUnlockRGB565Surface

#define EwGfxUnlockRGB565Surface   GfxUnlockSurface

◆ EwGfxUnlockScreenSurface

#define EwGfxUnlockScreenSurface   GfxUnlockSurface

Function Documentation

◆ GfxBeginUpdate()

unsigned long GfxBeginUpdate ( unsigned long  aHandle)

References XGfxViewport::DoubleBuffer, Err06, EW_ERROR, EwBspDisplayWaitForCompletion(), XGfxViewport::FrameBuffer, GfxFlushGraphics(), and LoadedClutSurface.

Here is the call graph for this function:

◆ GfxBeginUpdateArea()

unsigned long GfxBeginUpdateArea ( unsigned long  aHandle,
int  aX,
int  aY,
int  aWidth,
int  aHeight 
)

References XGfxSurface::BytesPerPixel, XGfxViewport::DoubleBuffer, Err07, EW_ERROR, EwBspDisplayWaitForCompletion(), XGfxViewport::FrameBuffer, GfxFlushGraphics(), XGfxSurface::Height, LoadedClutSurface, XGfxSurface::OrigPixel, XGfxSurface::Pixel, and XGfxSurface::Width.

Here is the call graph for this function:

◆ GfxBlendDriver()

◆ GfxCopyDriver()

◆ GfxCreateConstSurface()

unsigned long GfxCreateConstSurface ( int  aFormat,
int  aWidth,
int  aHeight,
XSurfaceMemory aMemory 
)

◆ GfxCreateSurface()

unsigned long GfxCreateSurface ( int  aFormat,
int  aWidth,
int  aHeight 
)

◆ GfxDestroySurface()

void GfxDestroySurface ( unsigned long  aHandle)

References XGfxSurface::AllocSize, EW_SURFACE_TRANSACTION_MASK, EwFreeVideo(), EwResourcesMemory, XGfxSurface::Flags, GfxFlushGraphics(), and TransactionNumber.

Here is the call graph for this function:

◆ GfxDoneViewport()

void GfxDoneViewport ( unsigned long  aHandle)

References XGfxViewport::DoubleBuffer, EwBspGraphicsDone(), EwFree(), EwResourcesMemory, XGfxViewport::FrameBuffer, and GfxFlushGraphics().

Here is the call graph for this function:

◆ GfxEndUpdate()

void GfxEndUpdate ( unsigned long  aHandle,
int  aX,
int  aY,
int  aWidth,
int  aHeight 
)

◆ GfxFillDriver()

void GfxFillDriver ( unsigned long  aDstHandle,
int  aDstX,
int  aDstY,
int  aWidth,
int  aHeight,
int  aBlend,
unsigned long *  aColors 
)

◆ GfxInitGfx()

◆ GfxInitViewport()

unsigned long GfxInitViewport ( int  aWidth,
int  aHeight,
int  aExtentX,
int  aExtentY,
int  aExtentWidth,
int  aExtentHeight,
int  aOrient,
int  aOpacity,
void aDisplay1,
void aDisplay2,
void aDisplay3 
)

◆ GfxIsGraphicsAcceleratorUsed()

int GfxIsGraphicsAcceleratorUsed ( void  )

◆ GfxLockSurface()

unsigned long GfxLockSurface ( unsigned long  aHandle,
int  aX,
int  aY,
int  aWidth,
int  aHeight,
int  aIndex,
int  aCount,
int  aReadPixel,
int  aWritePixel,
int  aReadClut,
int  aWriteClut,
XSurfaceMemory aMemory 
)

References XGfxSurface::BytesPerPixel, XGfxSurface::Clut, XSurfaceMemory::Clut, EW_INVALIDATE_CACHE, EW_SURFACE_MODIFIED_BY_CPU, EW_SURFACE_MODIFIED_BY_GA, EW_SURFACE_TRANSACTION_MASK, EW_UNUSED_ARG, EwZero(), XGfxSurface::Flags, GfxFlushGraphics(), XGfxSurface::Height, XSurfaceMemory::Pitch1X, XSurfaceMemory::Pitch1Y, XGfxSurface::Pixel, XSurfaceMemory::Pixel1, TransactionNumber, and XGfxSurface::Width.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GfxUnlockSurface()

void GfxUnlockSurface ( unsigned long  aSurfaceHandle,
unsigned long  aLockHandle,
int  aX,
int  aY,
int  aWidth,
int  aHeight,
int  aIndex,
int  aCount,
int  aWritePixel,
int  aWriteClut 
)

References EW_UNUSED_ARG.

Here is the caller graph for this function:

◆ GfxUseGraphicsAccelerator()

void GfxUseGraphicsAccelerator ( int  aActive)

References EwPrint(), and UseGraphicsAccelerator.

Here is the call graph for this function: