本文整理汇总了C++中TextRenderer::Print方法的典型用法代码示例。如果您正苦于以下问题:C++ TextRenderer::Print方法的具体用法?C++ TextRenderer::Print怎么用?C++ TextRenderer::Print使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextRenderer
的用法示例。
在下文中一共展示了TextRenderer::Print方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main() {
Setup::SetupProgram(KEYBOARD | MOUSE );
Setup::SetupScreen( 1050, 650,WINDOWED, 8 );
Settings::SetAntialiasing( true );
install_joystick(JOY_TYPE_AUTODETECT);
calibrate_joystick_name(0);
install_timer();
LOCK_VARIABLE(ticks);
LOCK_FUNCTION(ticker);
install_int_ex(ticker , ticker_rate);
LOCK_VARIABLE(ticks_move);
LOCK_FUNCTION(ticker_move);
if(install_int_ex(ticker_move , ticker_rate)!=0){sprintf(string_joystick_state,"Error Initializing Joystick !");};
if(!num_joysticks){sprintf(string_joystick_state,"No Joystick detected!");}
else { sprintf(string_joystick_state,"%d Joysticks detected",num_joysticks);}
Load_Fonts();
if(set_display_switch_mode(SWITCH_BACKGROUND))
{set_display_switch_mode(SWITCH_BACKAMNESIA);}
Load_Tracker();
prepare_move_values(dock_move_selected);//prepa
Prepare_Cross_Spline(dock_move_selected);
char udp_buffer[UDPMAX_CAR];
int sinsize;
int nbrbytessended=0;
SOCKET sock;
char broadcast='1';
WSADATA wsa;
WSAStartup(MAKEWORD(2,0),&wsa);
SOCKADDR_IN sin;
sin.sin_family=AF_INET;
sin.sin_addr.s_addr=inet_addr(ip);
sin.sin_port=htons(udp_port);
sock=socket(AF_INET,SOCK_DGRAM,0); //On initialise le socket avec SOCK_DGRAM pour dire qu'on est en UDP
sprintf(string_Last_Order,"INIT socket");
if (setsockopt(sock, SOL_SOCKET, SO_BROADCAST, &broadcast,
sizeof broadcast) == -1) {
perror("\a\nsetsockopt (SO_BROADCAST)");
exit(1);
}
bind(sock,(SOCKADDR*)&sin,sizeof(sin)); //Liaison entre la structure et la socket
sprintf(string_Last_Order,"BIDING socket");
sinsize=sizeof(sin);
memset(udp_buffer,0,sizeof(udp_buffer));
int old_iris=0;
int old_focus=0;
int old_zoom=0;
int old_iris_fine=0;
int old_focus_fine=0;
int old_zoom_fine=0;
sprintf(string_infos,"Compilation 14nov 09 / Pan= %d Tilt= %d Iris= %d Focus= %d Zoom= %d/ IP: %s / Port: %d",xadress,yadress,irisadress,focusadress,zoomadress,ip, udp_port);
while(index_quit!=1)
{
while(ticks == 0) {rest(1);}
ticks_passed = ticks;
ticks = 0;
poll_joystick();
Canvas::Fill(CouleurFond);
petitchiffre.Print(string_infos,10,10);
tracker_box(xtrack_window, ytrack_window);
if(Thetracker_X!=old_trackerX || Thetracker_Y!=old_trackerY ||
//.........这里部分代码省略.........