ADTF Display Toolbox
Loading...
Searching...
No Matches
gcl.h File Reference

Copyright © Audi Electronics Venture GmbH. More...

Go to the source code of this file.

Classes

class  IGCLProcessorEvents
 Class for events of Graphics Command Language. More...
 
struct  IGCLProcessorEvents::tGCLProcessEvent
 Event structure for signal registry events through the ucom::IEventSource interface. More...
 
class  cGCLProcessor
 Graphics command language processing class. More...
 
class  IGCLProcessorEvents
 Class for events of Graphics Command Language. More...
 
class  cGCLProcessor
 Graphics command language processing class. More...
 

Namespaces

namespace  adtf
 Main namespace.
 
namespace  adtf::disptb
 Namespace for functionality provided by the Display Toolbox.
 

Macros

#define GCL_SIZE(nParams, nExtra)
 
#define GCL_SIZE_DYNAMIC()
 

Variables

constexpr tInt g_nGCL_ItemSize = sizeof(tUInt32)
 
constexpr tInt g_nGCL_CommandSize = g_nGCL_ItemSize
 
constexpr tInt g_nGCL_ParamSize = g_nGCL_ItemSize
 
constexpr tInt g_nGCL_ExtraSize = g_nGCL_ItemSize
 
constexpr tGCLCommandDescriptor g_aGCLCommandTable []
 

Detailed Description

Copyright © Audi Electronics Venture GmbH.

All rights reserved

Definition in file gcl.h.

Macro Definition Documentation

◆ GCL_SIZE

#define GCL_SIZE ( nParams,
nExtra )
Value:
(1 + (nParams) + (nExtra))

Definition at line 69 of file gcl.h.

◆ GCL_SIZE_DYNAMIC

#define GCL_SIZE_DYNAMIC ( )
Value:
(0)

Definition at line 70 of file gcl.h.

Variable Documentation

◆ g_aGCLCommandTable

tGCLCommandDescriptor g_aGCLCommandTable[]
constexpr
Initial value:
= {
{GCL_CMD_END, GCL_SIZE(0, 0), "end"},
{GCL_CMD_INT, GCL_SIZE(0, 0), "int"},
{GCL_CMD_FLOAT, GCL_SIZE(0, 0), "float"},
{GCL_CMD_CLEAR, GCL_SIZE(0, 0), "clear"},
{GCL_CMD_FGCOL, GCL_SIZE(1, 0), "fgcol"},
{GCL_CMD_BGCOL, GCL_SIZE(1, 0), "bgcol"},
{GCL_CMD_MOVETO, GCL_SIZE(2, 0), "moveto"},
{GCL_CMD_DRAWPIXEL, GCL_SIZE(2, 0), "drawpixel"},
{GCL_CMD_DRAWLINE, GCL_SIZE(4, 0), "drawline"},
{GCL_CMD_LINETO, GCL_SIZE(2, 0), "lineto"},
{GCL_CMD_DRAWRECT, GCL_SIZE(4, 0), "drawrect"},
{GCL_CMD_FILLRECT, GCL_SIZE(4, 0), "fillrect"},
{GCL_CMD_TEXT, GCL_SIZE_DYNAMIC(), "text"},
{GCL_CMD_LINEWIDTH, GCL_SIZE(1, 0), "linewidth"},
{GCL_CMD_DRAWCIRCLE, GCL_SIZE(3, 0), "drawcircle"},
{GCL_CMD_FILLCIRCLE, GCL_SIZE(3, 0), "fillcircle"},
{GCL_CMD_LINEPATTERN, GCL_SIZE(2, 0), "linepattern"},
{GCL_CMD_ALPHA, GCL_SIZE(1, 0), "alpha"},
{GCL_CMD_DRAWPOLYGON, GCL_SIZE_DYNAMIC(), "drawpolygon"},
{GCL_CMD_FILLPOLYGON, GCL_SIZE_DYNAMIC(), "fillpolygon"},
{GCL_CMD_TEXT_SIZE_SMALL, GCL_SIZE(0, 0), "textsizesmall"},
{GCL_CMD_TEXT_SIZE_NORMAL, GCL_SIZE(0, 0), "textsizenormal"},
{GCL_CMD_TEXT_SIZE_HUGE, GCL_SIZE(0, 0), "textsizehuge"},
}
@ GCL_CMD_LINEWIDTH
Sets width for line drawing operations.
Definition gcltypes.h:41
@ GCL_CMD_DRAWCIRCLE
Draws a circle at the specified point and with the given diameter.
Definition gcltypes.h:42
@ GCL_CMD_TEXT_SIZE_HUGE
Sets current font to huge font.
Definition gcltypes.h:50
@ GCL_CMD_FLOAT
Switches mode to float coordinates (not supported)
Definition gcltypes.h:27
@ GCL_CMD_TEXT_SIZE_SMALL
Sets current font to small font.
Definition gcltypes.h:48
@ GCL_CMD_DRAWLINE
Draws a line between the specified points.
Definition gcltypes.h:36
@ GCL_CMD_FILLPOLYGON
Fills a polygon.
Definition gcltypes.h:47
@ GCL_CMD_ALPHA
Enable/Disable alpha blending (OpenGL only)
Definition gcltypes.h:45
@ GCL_CMD_TEXT_SIZE_NORMAL
Sets current font to normal font.
Definition gcltypes.h:49
@ GCL_CMD_INT
Switches mode to integer coordinates (not supported)
Definition gcltypes.h:26
@ GCL_CMD_LINEPATTERN
Sets the line pattern (pattern, factor)
Definition gcltypes.h:44
@ GCL_CMD_DRAWPIXEL
Draws a pixel at the specified coordinate.
Definition gcltypes.h:35
@ GCL_CMD_LINETO
Draws a line from the current position to the specified coordinate.
Definition gcltypes.h:37
@ GCL_CMD_FILLCIRCLE
Draws a filled circle at the specified point with the given diameter.
Definition gcltypes.h:43
@ GCL_CMD_END
Marks the end of the GCL buffer.
Definition gcltypes.h:25
@ GCL_CMD_DRAWPOLYGON
Draws a polygon (outline)
Definition gcltypes.h:46
@ GCL_CMD_CLEAR
Clears the drawing canvas.
Definition gcltypes.h:28
@ GCL_CMD_FILLRECT
Draws a filled rectangle.
Definition gcltypes.h:39
@ GCL_CMD_DRAWRECT
Draws a rectangle.
Definition gcltypes.h:38
@ GCL_CMD_TEXT
Generates text output at specified coordinate.
Definition gcltypes.h:40

Definition at line 73 of file gcl.h.

◆ g_nGCL_CommandSize

tInt g_nGCL_CommandSize = g_nGCL_ItemSize
constexpr

Definition at line 65 of file gcl.h.

◆ g_nGCL_ExtraSize

tInt g_nGCL_ExtraSize = g_nGCL_ItemSize
constexpr

Definition at line 67 of file gcl.h.

◆ g_nGCL_ItemSize

tInt g_nGCL_ItemSize = sizeof(tUInt32)
constexpr

Definition at line 64 of file gcl.h.

◆ g_nGCL_ParamSize

tInt g_nGCL_ParamSize = g_nGCL_ItemSize
constexpr

Definition at line 66 of file gcl.h.