10#ifndef GFXWRAPDAVE__H_
11#define GFXWRAPDAVE__H_
16#include "DAVEScreen.h"
18#include "GUIImageLoader.h"
19#include "GUIImageDataDAVE.h"
21#include "GUILayerConfig.h"
25#include "dave_driver.h"
53 const eC_UInt& uiWorkingMemorySize = 64000);
63 virtual void SetForegroundColorImpl(
const eC_UByte &ubRed,
const eC_UByte &ubGreen,
const eC_UByte &ubBlue,
const eC_UByte &ubAlpha = 255);
65 virtual void Line(
const eC_Value& vX1,
const eC_Value& vY1,
const eC_Value& vX2,
const eC_Value& vY2);
66 virtual void Rect(
const eC_Value& vX1,
const eC_Value& vY1,
const eC_Value& vX2,
const eC_Value& vY2);
67 virtual void FilledRect(
const eC_Value& vX1,
const eC_Value& vY1,
const eC_Value& vX2,
const eC_Value& vY2);
70 const eC_Value& vX1,
const eC_Value& vY1,
71 const eC_Value& vX2,
const eC_Value& vY2,
72 const eC_Bool &bFilled =
true);
79 const eC_Value& vStartAngle,
80 const eC_Value& vEndAngle,
81 const eC_Value& vRotationAngle,
82 const eC_Bool &bFilled);
89 const eC_Value& vRingWidth,
90 const eC_Value& vStartAngle,
91 const eC_Value& vEndAngle,
92 const eC_Value& vRotationAngle,
93 const eC_Bool & bFilled);
97 const eC_UInt& uiCount,
98 const eC_Bool& bFilled);
121 const eC_UInt &uiSrcX,
const eC_UInt &uiSrcY,
const eC_UInt &uiSrcWidth,
const eC_UInt &uiSrcHeight,
122 const eC_Value& vDestX,
const eC_Value& vDestY,
const eC_Value& vDestWidth,
const eC_Value& vDestHeight,
123 const eC_UByte &ubAlpha = 255,
124 const eC_Value& vAngle = eC_FromFloat(0),
125 const eC_Value& vRotCenterX = eC_FromFloat(0.5),
const eC_Value& vRotCenterY = eC_FromFloat(0.5));
176 const eC_UInt& uiGlyphWidth,
177 const eC_UInt& uiGlyphHeight,
178 eC_UByte* pkGlyphBitmap);
198 const eC_UInt& uiWidth,
199 const eC_UInt& uiHeight,
200 const eC_UInt& eImageType,
222 virtual eC_Bool
LoadImgDecoder(
const eC_String& kPath,
const eC_UInt& uiImageIndex);
229 GUIBitmapPlaneID_t uiNewBitmapID,
231 const eC_Value& vWidth,
232 const eC_Value& vHeight);
ImageResource_t
Enumeration of image resource ids.
Definition: GUIImageResource.h:126
Definition: DAVEScreen.h:23
The bitmap plane base class.
Definition: GUIBitmapPlane.h:152
ImageType_t
Definition: GUICommonEnums.h:80
Definition: GUIImageDataDAVE.h:21
Contains information about an image loaded by CGUIImageLoader.
Definition: GUIImageData.h:29
This is the Guiliani base class all controls are derived from.
Definition: GUIObject.h:81
Helper class to supply a platform independent rectangle implementation.
Definition: GUIRect.h:63
D/AVE implementation of the graphics wrapper.
Definition: GfxWrapDave.h:44
virtual eC_UInt GetVirtualScreenWidth()
eC_Int m_iD2Mode
Dave L2 Mode.
Definition: GfxWrapDave.h:277
virtual void Arc(const eC_Value &vX1, const eC_Value &vY1, const eC_Value &vX2, const eC_Value &vY2, const eC_Value &vStartAngle, const eC_Value &vEndAngle, const eC_Value &vRotationAngle, const eC_Bool &bFilled)
virtual void LoadImgImpl(void *pkMemory, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &eImageType, const ImageResource_t &eID)
eC_Bool SetNOFImagesImpl(const eC_UInt uiNOFImages)
virtual void Line(const eC_Value &vX1, const eC_Value &vY1, const eC_Value &vX2, const eC_Value &vY2)
the following methods are protected to prevent calling them directly
virtual eC_UInt GetVirtualScreenHeight()
virtual eC_Bool LoadImgRLE(eC_File *pkImageFile, CGUIImageDataDAVE &kImageData)
virtual void RefreshImage(const ImageResource_t &eID, void *pkMemory)
static eC_UInt GetD1PixelFormat(const CGUICommonEnums::ImageType_t &ePixFormat)
virtual void Ellipse(const eC_Value &vX1, const eC_Value &vY1, const eC_Value &vX2, const eC_Value &vY2, const eC_Bool &bFilled=true)
eC_Int m_iD1Mode
Dave L1 Mode.
Definition: GfxWrapDave.h:275
eC_Bool m_bSeperatedMemory
true if memory is seperated (e.g. Linux)
Definition: GfxWrapDave.h:289
virtual void Polygon(eC_Value *pvPoints, const eC_UInt &uiCount, const eC_Bool &bFilled)
virtual void SetCliprect(const CGUIRect &NewClipRect)
virtual eC_Bool DrawToScreen()
virtual eC_UInt GetImageSize(const ImageResource_t &eID) const
Definition: GfxWrapDave.h:131
virtual eC_Bool Refresh(const RefreshCall_t eRefreshCallType)
void CheckDAVEError()
Checks DAVE device for errors and outputs a log-message with error-code and description.
eC_UInt m_uiNumberOfScreens
number of screen
Definition: GfxWrapDave.h:272
virtual void Ring(const eC_Value &vX1, const eC_Value &vY1, const eC_Value &vX2, const eC_Value &vY2, const eC_Value &vRingWidth, const eC_Value &vStartAngle, const eC_Value &vEndAngle, const eC_Value &vRotationAngle, const eC_Bool &bFilled)
d2_renderbuffer * m_pkRenderBuffer
a single renderbuffer for immediate mode
Definition: GfxWrapDave.h:297
virtual CGUIBitmapPlane * CreateGfxDependentBitmap(GUIBitmapPlaneID_t uiNewBitmapID, const CGUIObject &rkParentObject, const eC_Value &vWidth, const eC_Value &vHeight)
eC_Bool m_bFrameStarted
if frame has started
Definition: GfxWrapDave.h:295
virtual eC_Bool SupportCompressedFonts() const
Definition: GfxWrapDave.h:172
virtual eC_Bool LoadImgRAW(eC_File *pkImageFile, CGUIImageDataDAVE &kImageData)
virtual eC_Bool LoadImgDecoder(const eC_String &kPath, const eC_UInt &uiImageIndex)
virtual void LoadImgImpl(const eC_String &kPath, const ImageResource_t &eID)
d2_device * m_pkD2Handle
a device for DAVE
Definition: GfxWrapDave.h:279
static eC_Bool CreateInstance(CGfxEnv *pkGfxEnv, const eC_UInt &uiWorkingMemorySize=64000)
virtual void LoadGlyphData(CGUIImageData *pkImageData, const eC_UInt &uiGlyphWidth, const eC_UInt &uiGlyphHeight, eC_UByte *pkGlyphBitmap)
virtual eC_Bool ImageExists(const ImageResource_t eID) const
virtual eC_Value SetLineWidth(const eC_Value &vWidth)
CGfxWrapDAVE(CGfxEnv *pkGfxEnv, const eC_UInt &uiWorkingMemorySize)
void SetAlpha(eC_UByte ubAlpha)
virtual void SetTargetLayer(const eC_UInt &uiLayerID)
virtual eC_Bool DrawToBitmap(GUIBitmapPlaneID_t uiBitmapID)
virtual void BlitImgExtImpl(const ImageResource_t &eID, const eC_UInt &uiSrcX, const eC_UInt &uiSrcY, const eC_UInt &uiSrcWidth, const eC_UInt &uiSrcHeight, const eC_Value &vDestX, const eC_Value &vDestY, const eC_Value &vDestWidth, const eC_Value &vDestHeight, const eC_UByte &ubAlpha=255, const eC_Value &vAngle=eC_FromFloat(0), const eC_Value &vRotCenterX=eC_FromFloat(0.5), const eC_Value &vRotCenterY=eC_FromFloat(0.5))
virtual void UnloadGlyphData(CGUIImageData *pkImageData)
virtual void UnloadImg(const ImageResource_t &eID)
eC_TArray< CGUIImageDataDAVE * > m_pkImages
the array of the loaded images
Definition: GfxWrapDave.h:286
static eC_UInt GetD2PixelFormat(const CGUICommonEnums::ImageType_t &ePixFormat)
virtual void DestroyScreen()
Method to clean and release the screen which was created via the CreateScreen Method.
virtual eC_UInt GetPhysicalScreenHeight()
virtual ~CGfxWrapDAVE(void)
Destructor.
d2_device * GetDaveDevice()
virtual void FilledRect(const eC_Value &vX1, const eC_Value &vY1, const eC_Value &vX2, const eC_Value &vY2)
virtual eC_UInt GetPhysicalScreenWidth()
virtual void Rect(const eC_Value &vX1, const eC_Value &vY1, const eC_Value &vX2, const eC_Value &vY2)
virtual void CreateScreen()
virtual void SetForegroundColorImpl(const eC_UByte &ubRed, const eC_UByte &ubGreen, const eC_UByte &ubBlue, const eC_UByte &ubAlpha=255)
virtual eC_UInt GetImgWidthImpl(const ImageResource_t &eID) const
virtual eC_UInt GetImgHeightImpl(const ImageResource_t &eID) const
d1_device * m_pkD1Handle
A handle for the display controller.
Definition: GfxWrapDave.h:281
d2_context * m_pkD2Context
a dave context
Definition: GfxWrapDave.h:284
dc_handle m_dc_handle
A handle for the display controller.
Definition: GfxWrapDave.h:292
ScreenConfig_t * m_pkScreens
Pointer to memory areas of configured framebuffers.
Definition: GfxWrapDave.h:269
virtual void BlitImgExtImpl(const CGUIImageData &kImageData, const eC_Value &vAbsDestX, const eC_Value &vAbsDestY)
The graphics wrapper base class.
Definition: GfxWrap.h:88
RefreshCall_t
Definition: GfxWrap.h:113
config for screen
Definition: GfxWrapDave.h:262
CDAVEScreen * pScreen
pointer to screens
Definition: GfxWrapDave.h:264
eC_UInt uiID
id of screen
Definition: GfxWrapDave.h:263