Begin G

From MCS Wiki AVR
Jump to: navigation, search

Contents

Action

Begin drawing a Graphics Primitive.

 

 

Syntax

Begin_G  prim 

 

 

Remarks

prim

BITMAPS

POINTS

LINES

LINE_STRIP

EDGE_STRIP_R

EDGE_STRIP_L

EDGE_STRIP_A

EDGE_STRIP_B

RECTS

Bitmap Drawing Primitive

Point Drawing Primitive

Line Drawing Primitive

Line Strip Drawing Primitive

Edge Strip Right side Drawing Primitive

Edge Strip Left side Drawing Primitive

Edge Strip Above Drawing Primitive

Edge Strip Below Drawing Primitive

Rectangle Drawing Primitive

 

All  primitives  supported  by  the  FT800  are  defined  in  the  table  above.  The  primitive

to be drawn is selected by the Begin_G command.  Once the primitive is selected, it will be

valid till the new primitive is selected by the Begin_G command.

 

Please  Note: The primitive drawing operation will not be performed until Vertex2ii or Vertex2f is executed.

 

See also

END_G , VERTEX2FVERTEX2II

 

 

Example

' Pseudocode
Begin_G Lines
Vertex2F (FT_DispWidth / 4) * 16, (FT_DispHeight - 25) / 2 * 16
Vertex2F (FT_DispWidth / 4) * 16, (FT_DispHeight + 25) / 2 * 16
ColorRGB 0, 128, 0
LineWidth 10 * 16
 
Begin_G Points
Vertex2F 50,5,00
Vertex2F 110,15,0,0
 
 
' Drawing points, lines and bitmap
Begin_G POINTS
Vertex2II 50, 5, 0, 0
Vertex2II 110, 15, 0, 0
Begin_G LINES
Vertex2II 50, 45, 0, 0
Vertex2II 110, 55, 0, 0
Begin_G BITMAPS
Vertex2II 50, 65, 31,&H45
Vertex2II 110, 75, 31,&H46
Clip0087.png


Languages   English  
Personal tools
Namespaces
Variants
Actions
Navigation
Language