ADTF_DISPLAY_TOOLBOX
3.8.0 (ADTF 3.14.3)
|
Graphics mode interface for common graphic support. More...
Public Types | |
enum | tMode { MODE_DrawPoints , MODE_DrawLines , MODE_DrawLineStrip , MODE_DrawLineLoop , MODE_DrawTriangles , MODE_DrawTriangleStrip , MODE_DrawTriangleFan , MODE_DrawQuads , MODE_DrawQuadStrip , MODE_DrawPolygon } |
enumeration for the supported modes. More... | |
enum | tFeature { FEATURE_AlphaBlending , FEATURE_Antialiasing , FEATURE_Lighting , FEATURE_DepthBuffer , FEATURE_BackFaceCulling , FEATURE_CommandLists , FEATURE_HardwareAcceleration } |
This enumeration enables / disables or describes the features for the graphics mode. More... | |
Public Member Functions | |
virtual | ~IGraphicsMode () |
virtual destructor to ensure proper cleanup. | |
virtual tBool | IsSupported (tFeature nFeatureId) const =0 |
This function returns if the features shown in tFeature is supported. More... | |
virtual tVoid | EnableAlpha (tBool bAdditiveMode=tFalse) const =0 |
This function enables the alpha graphics mode. More... | |
virtual tVoid | DisableAlpha () const =0 |
This function disables the alpha graphics mode. More... | |
virtual tVoid | EnableAntialiasing () const =0 |
This function enables the anti aliasing if feature is supported. More... | |
virtual tVoid | DisableAntialiasing () const =0 |
This function disables the anti aliasing. More... | |
virtual tVoid | EnableLighting () const =0 |
This function enables the lighting if feature is supported. More... | |
virtual tVoid | DisableLighting () const =0 |
This function disables the lighting. More... | |
virtual tVoid | EnableDepthBuffer () const =0 |
This function enables the depth buffer if feature is supported. More... | |
virtual tVoid | DisableDepthBuffer () const =0 |
This function disables the depth buffer. More... | |
virtual tVoid | EnableBackFaceCulling () const =0 |
This function enables the back face culling if supported. More... | |
virtual tVoid | DisableBackFaceCulling () const =0 |
This function disables the back face culling. More... | |
virtual tVoid | LineWidth (tFloat64 fWidth)=0 |
This function sets the current line width to the fWidth value. More... | |
virtual tVoid | LinePattern (tUInt16 ui16Pattern, tInt nFactor=1)=0 |
This function adjusts the Line Style for all Lines in drawing operations. More... | |
virtual tVoid | Color (const IColor *col)=0 |
This function sets the current color to col value. More... | |
virtual tVoid | Color (tInt nRed, tInt nGreen, tInt nBlue, tInt nAlpha=255)=0 |
This function sets the current color. More... | |
virtual tVoid | Color (tUInt8 nRed, tUInt8 nGreen, tUInt8 nBlue, tUInt8 nAlpha=255)=0 |
This function sets the current color. More... | |
virtual tVoid | Color (tFloat64 fRed, tFloat64 fGreen, tFloat64 fBlue, tFloat64 fAlpha=1.0)=0 |
This function sets the current color. More... | |
virtual tVoid | BgColor (const IColor *col)=0 |
This function sets the current background color to col value. More... | |
virtual tVoid | BgColor (tInt nRed, tInt nGreen, tInt nBlue, tInt nAlpha=0)=0 |
This function sets the current background color to col value. More... | |
virtual tVoid | BgColor (tUInt8 nRed, tUInt8 nGreen, tUInt8 nBlue, tUInt8 nAlpha=0)=0 |
This function sets the current background color to col value. More... | |
virtual tVoid | BgColor (tFloat64 fRed, tFloat64 fGreen, tFloat64 fBlue, tFloat64 fAlpha=0.0)=0 |
This function sets the current background color to col value. More... | |
virtual tVoid | Begin (tMode eMode)=0 |
Start graphics command. More... | |
virtual tVoid | Coord (tInt x, tInt y)=0 |
Set the context to the given coordinates. More... | |
virtual tVoid | Coord (tFloat32 x, tFloat32 y)=0 |
Set the context to the given coordinates. More... | |
virtual tVoid | Coord (IPoint *pt)=0 |
Set the context to the given coordinates. More... | |
virtual tVoid | Coord (IPoint **ppPoints, tInt nCount)=0 |
Set the context to the coordinate list. More... | |
virtual tVoid | CoordTexture (tFloat32 u, tFloat32 v)=0 |
Set the context to the coordinate list. More... | |
virtual tVoid | End ()=0 |
Ends a device context. More... | |
Graphics mode interface for common graphic support.
Definition at line 221 of file gfxlibinterfaces.h.
enum tFeature |
This enumeration enables / disables or describes the features for the graphics mode.
Definition at line 251 of file gfxlibinterfaces.h.
enum tMode |
enumeration for the supported modes.
Definition at line 226 of file gfxlibinterfaces.h.
|
pure virtual |
Start graphics command.
Always call the begin function in your painting routine before use any drawing commands.
eMode | The Mode for drawing (see IGraphicsMode). |
|
pure virtual |
This function sets the current background color to col value.
All next draw calls will draw with the col as background.
col | [in] The Color. |
|
pure virtual |
This function sets the current background color to col value.
All next draw calls will draw with the col as background.
fRed | [in] Red value (0.0-1.0). |
fGreen | [in] Green value (0.0-1.0). |
fBlue | [in] Blue value (0.0-1.0). |
fAlpha | [in] Alpha value (0.0-1.0 (non-full)). |
|
pure virtual |
This function sets the current background color to col value.
All next draw calls will draw with the col as background.
nRed | [in] Red value (0-255). |
nGreen | [in] Green value (0-255). |
nBlue | [in] Blue value (0-255). |
nAlpha | [in] Alpha value (0-255 (non-full)). |
|
pure virtual |
This function sets the current background color to col value.
All next draw calls will draw with the col as background.
nRed | [in] Red value (0-255). |
nGreen | [in] Green value (0-255). |
nBlue | [in] Blue value (0-255). |
nAlpha | [in] Alpha value (0-255 (non-full)). |
|
pure virtual |
This function sets the current color to col value.
All next draw calls will draw with the col.
col | [in] The Color. |
|
pure virtual |
This function sets the current color.
All next draw calls will draw with this color.
fRed | [in] Red value (0.0-1.0). |
fGreen | [in] Green value (0.0-1.0). |
fBlue | [in] Blue value (0.0-1.0). |
fAlpha | [in] Alpha value (0.0-1.0 (non-full)). |
|
pure virtual |
This function sets the current color.
All next draw calls will draw with this color.
nRed | [in] Red value (0-255). |
nGreen | [in] Green value (0-255). |
nBlue | [in] Blue value (0-255). |
nAlpha | [in] Alpha value (0-255 (non-full)). |
|
pure virtual |
This function sets the current color.
All next draw calls will draw with this color.
nRed | [in] Red value (0-255). |
nGreen | [in] Green value (0-255). |
nBlue | [in] Blue value (0-255). |
nAlpha | [in] Alpha value (0-255 (non-full)). |
|
pure virtual |
Set the context to the coordinate list.
ppPoints | reference to the first elements of the points of coordinates. |
nCount | number of elements. |
|
pure virtual |
Set the context to the given coordinates.
pt | Point of coordinates. |
|
pure virtual |
Set the context to the given coordinates.
x | x-value. |
y | y-value. |
|
pure virtual |
Set the context to the given coordinates.
x | x-value. |
y | y-value. |
|
pure virtual |
Set the context to the coordinate list.
u | [in] the u value |
v | [in] the u value |
|
pure virtual |
This function disables the alpha graphics mode.
|
pure virtual |
This function disables the anti aliasing.
|
pure virtual |
This function disables the back face culling.
|
pure virtual |
This function disables the depth buffer.
|
pure virtual |
This function disables the lighting.
|
pure virtual |
This function enables the alpha graphics mode.
If the bAdditiveMode=tTrue then the alpha value will be recalculate additive.
bAdditiveMode | [in] additive or not. |
|
pure virtual |
This function enables the anti aliasing if feature is supported.
|
pure virtual |
This function enables the back face culling if supported.
|
pure virtual |
This function enables the depth buffer if feature is supported.
|
pure virtual |
This function enables the lighting if feature is supported.
|
pure virtual |
|
pure virtual |
This function returns if the features shown in tFeature is supported.
nFeatureId | [in] The feature to ask for shown in tFeature. |
|
pure virtual |
This function adjusts the Line Style for all Lines in drawing operations.
[in] | ui16Pattern | A 16-bit integer whose bit pattern determines which fragments of a line will be drawn when the line is rasterized. Bit zero is used first, and the default pattern is all ones. if 0xFFFF is used the Lines will be draw solid. |
[in] | nFactor | A multiplier for each bit in the line stipple pattern. If factor is 3, for example, each bit in the pattern will be used three times before the next bit in the pattern is used. The factor parameter is clamped to the range [1, 256] and defaults to one. . |
|
pure virtual |
This function sets the current line width to the fWidth value.
The next lines will be draw with this new line width.
fWidth | [in] The line width. |