Product Application
©
Rev.1.1
/* Wait till coprocessor completes the operation */
Ft_Gpu_Hal_WaitCmdfifo_empty(phost);
You can set point size using POINT_SIZE command, set point color using COLOR_RGB and set location
using VERTEX2F. There is possibility to draw in very similar way round-cornered rectangles (RECTS
command), curvature of the corners can be adjusted using LINE_WIDTH command.
2.4 Lines drawing
In this example, the method for drawing lines in different locations is presented. You will see 8 crossed
lines which imitates street map. On this map will be text “Main s.”.
Figure 4. Lines drawing example
In the Figure 4. you can see effect of following code:
Ft_Gpu_CoCmd_Dlstart(phost);
Ft_App_WrCoCmd_Buffer(phost, CLEAR_COLOR_RGB(236,232,224)); //light gray
Ft_App_WrCoCmd_Buffer(phost, CLEAR(1,1,1));
Ft_App_WrCoCmd_Buffer(phost, COLOR_RGB(170,157,136));//medium gray
Ft_App_WrCoCmd_Buffer(phost, LINE_WIDTH(63));
Ft_App_WrCoCmd_Buffer(phost, BEGIN(LINES));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(-160,-20 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(320,4160 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(800,-20 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(1280,4160 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(1920,-20 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(2400,4160 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(2560,-20 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(3040,4160 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(3200,-20 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(3680,4160 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(2880,-20 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(3360,4160 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(-20,0));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(5440,-480 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(-20,960 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(5440,480 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(-20,1920 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(5440,1440 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(-20,2880 ));
Ft_App_WrCoCmd_Buffer(phost, VERTEX2F(5440,2400 ));
Ft_App_WrCoCmd_Buffer(phost, END());
Ft_App_WrCoCmd_Buffer(phost, DISPLAY());
Ft_Gpu_CoCmd_Swap(phost);
// Download the commands into fifo










