Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUIBitmapPlane_GL.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#if !defined GUIBITMAPGL__H_
11#define GUIBITMAPGL__H_
12
13#include "GUIBitmapPlane.h"
14
15class CGfxWrapGL;
16
21{
22 friend class CGfxWrapGL;
23
24public:
25 void DoDraw();
26
27 virtual void SetWidth(eC_Value vWidth, eC_Bool bExpandCentered = false);
28
29 virtual void SetHeight(eC_Value vHeight, eC_Bool bExpandCentered = false);
30
31 virtual void SetAlphaValues(
32 const eC_UByte ubTopLeft,
33 const eC_UByte ubBottomLeft,
34 const eC_UByte ubBottomRight,
35 const eC_UByte ubTopRight);
36
37 virtual void SetTopLeftV(eC_Value vV);
38 virtual eC_Value GetTopLeftV();
39
40 virtual void SetBottomLeftV(eC_Value vV);
41 virtual eC_Value GetBottomLeftV();
42
43 virtual void SetBottomRightV(eC_Value vV);
44 virtual eC_Value GetBottomRightV();
45
46 virtual void SetTopRightV(eC_Value vV);
47 virtual eC_Value GetTopRightV();
48
52 const eC_UInt GetTextureID() const;
53
54 virtual eC_Value Get2DPlaneDistance();
55
56 virtual void Clear(const eC_UByte ubRed, const eC_UByte ubGreen, const eC_UByte ubBlue, const eC_UByte ubAlpha);
57
58 virtual void GetData(eC_TArray<eC_UByte>* pkData);
59
60protected:
67 CGUIBitmapPlane_GL(GUIBitmapPlaneID_t uiNewBitmapID, const CGUIObject& rkParentObject, eC_Value vWidth, eC_Value vHeight);
68 virtual ~CGUIBitmapPlane_GL();
69
72
75
77 virtual void CreateRenderSurface();
78
80 virtual void DeleteRenderSurface() {}
81
84
85 virtual eC_Bool DrawToBitmap();
86
87 virtual eC_Bool DrawToScreen();
88
89protected:
90 eC_Bool m_bComplete;
91
92private:
93 eC_UInt m_uiGLTextureID;
94 eC_TArray<eC_Value> m_avVertices;
95 eC_TArray<eC_UByte> m_aubColor;
96 eC_Value m_vDepthCorrection;
97 eC_UByte m_ubAlpha;
98};
99#endif
The BitmapPlane Class for GL with pseudo offscreen rendering.
Definition: GUIBitmapPlane_GL.h:21
virtual eC_Value GetTopRightV()
virtual void SetBottomLeftV(eC_Value vV)
virtual eC_Bool DrawToBitmap()
virtual void SetWidth(eC_Value vWidth, eC_Bool bExpandCentered=false)
virtual void DeleteRenderSurface()
Called by the framework to allow derived classes to free memory allocated by the associated render su...
Definition: GUIBitmapPlane_GL.h:80
virtual void SetHeight(eC_Value vHeight, eC_Bool bExpandCentered=false)
virtual eC_Value GetTopLeftV()
virtual eC_Value Get2DPlaneDistance()
virtual void CreateRenderSurface()
Inits the Texture Object by actually allocating memory for it.
CGUIBitmapPlane_GL(GUIBitmapPlaneID_t uiNewBitmapID, const CGUIObject &rkParentObject, eC_Value vWidth, eC_Value vHeight)
const eC_UInt GetTextureID() const
virtual void Clear(const eC_UByte ubRed, const eC_UByte ubGreen, const eC_UByte ubBlue, const eC_UByte ubAlpha)
virtual eC_Value GetBottomRightV()
virtual void SetBottomRightV(eC_Value vV)
virtual void GetData(eC_TArray< eC_UByte > *pkData)
virtual eC_Value GetBottomLeftV()
void UpdateVertices()
Calculates the vertices in the vertex array.
void CreateTexture()
Generates and binds a texture to this bitmap plane.
virtual void SetTopRightV(eC_Value vV)
virtual void SetTopLeftV(eC_Value vV)
virtual void SetAlphaValues(const eC_UByte ubTopLeft, const eC_UByte ubBottomLeft, const eC_UByte ubBottomRight, const eC_UByte ubTopRight)
virtual eC_Bool DrawToScreen()
eC_Bool m_bComplete
is bitmap-plane complete
Definition: GUIBitmapPlane_GL.h:90
The bitmap plane base class.
Definition: GUIBitmapPlane.h:152
This is the Guiliani base class all controls are derived from.
Definition: GUIObject.h:79
OpenGL graphic wrapper base class. This is the base class for all OpenGL related graphic wrappers (Op...
Definition: GfxWrapGL.h:61
eC_Value m_vDepthCorrection
depth-corretion
Definition: GfxWrapGL.h:708
eC_UByte m_ubAlpha
Currently set global alpha value.
Definition: GfxWrap.h:1410