FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
242
Copyright © Bridgetek Limited
A w and h of (1,1) means that the tracker is rotary, and reports an
angle value in REG_TRACKER. A w and h of (0,0) disables the track
functionality of co-processor engine.
tag
tag of the graphics object to be tracked, 1-255
Command layout
+0
CMD_TRACK(0xffffff2c)
+4
X
+6
Y
+8
W
+10
h
+12
tag
Examples
Horizontal track of rectangle dimension 40x12pixels and the present touch is
at 50%:
dl( CLEAR_COLOR_RGB(5, 45, 110) );
dl( COLOR_RGB(255, 168, 64) );
dl( CLEAR(1 ,1 ,1) );
dl( BEGIN(RECTS) );
dl( VERTEX2F(60 * 16,50 * 16) );
dl( VERTEX2F(100 * 16,62 * 16) );
dl( COLOR_RGB(255, 0, 0) );
dl( VERTEX2F(60 * 16,50 * 16) );
dl( VERTEX2F(80 * 16,62 * 16) );
dl( COLOR_MASK(0 ,0 ,0 ,0) );
dl( TAG(1) );
dl( VERTEX2F(60 * 16,50 * 16) );
dl( VERTEX2F(100 * 16,62 * 16) );
cmd_track(60 * 16, 50 * 16, 40, 12, 1);