freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于nios_ii的vga顯示電路設(shè)計(jì)方案-資料下載頁

2025-05-06 00:19本頁面
  

【正文】 else {oball_y = ball_y。 ball_y。 } }if(0 != (ball_direct amp。 0x30)){grid = (ball_direct amp。 0x03) + ((0 != (ball_direct amp。 0x10)) ? 4 : 0)。ball_direct amp。= (~0x30)。draw_grid(grid, vga_frame_buffer)。 //Painting background colorvid_draw_circle_ex //draw a radius of 20 cicle ang color it(ball_x,ball_y, 20,0, DO_FILL, vga_frame_buffer,DRAW_MODE_REVERSE)。vga_flip_frame_buffers( vga_frame_buffer )。 //ball and background color remain unchangedwhile( IORD_32DIRECT( vga_frame_buffervga_controller_base, 0xC ) != (int)vga_frame_bufferframe0 )。 //waitting ball direction changeddraw_grid(grid, vga_frame_buffer)。 //Painting background color}else {vid_draw_circle_ex //draw a cicle ang color it (ball_x,ball_y, 20,0, DO_FILL, vga_frame_buffer, DRAW_MODE_REVERSE)。vga_flip_frame_buffers( vga_frame_buffer )。 //ball and background color remain unchangedwhile( IORD_32DIRECT( vga_frame_buffervga_controller_base, 0xC ) != (int)vga_frame_bufferframe0 )。 //waitting ball direction changedvid_draw_circle_ex //draw a cicle ang color it(oball_x,oball_y, 20,0, DO_FILL, vga_frame_buffer, DRAW_MODE_REVERSE)。//vga_flip_frame_buffers( vga_frame_buffer )。}oball_x = ball_x。 oball_y = ball_y。}exit(1)。return 0。}// Integer sin lookupint int_sin( int deg ){deg %= 360。 if( deg 0 ) deg += 360。 return(int_sin_array[deg])。 //the return value is [Sin(deg)*1024]}// Integer cos lookupint int_cos( int deg ){deg %= 360。 if( deg 0 ) deg += 360。 return(int_cos_array[deg])。 //the return value is [Cos(deg)*1024]}void draw_grid(int scheme, display_frame_buffer_struct* vga_frame_buffer){unsigned short x, y, color。 unsigned char i, j, k。 for(i = 0, x = 0。 i 16。 i++, x += 40) //將640x480屏幕分成16x16的小方格 { for(j = 0, y = 0。 j 16。 j++, y += 30) {switch(scheme) //由scheme變量來改變背景顏色 { case 0: color = (~i)。 color = 6。 color += ((~j amp。 0x0f) 1)。 color = 5。 color += (~i amp。 0x0f)。 break。 case 1: color = (~j)。 color = 6。 color += ((~i amp。 0x0f) 1)。 color = 5。 color += j。 break。 case 2: color = (~i)。 color = 6。 color += (j 1)。 color = 5。 color += (~i amp。 0x0f)。 break。 case 3: color = (~j)。 color = 6。 color += (i 1)。 color = 5。 color += j。 break。 case 4: color = i。 color = 6。 color += ((~j amp。 0x0f) 1)。 color = 5。 color += (~i amp。 0x0f)。 break。 case 5: color = j。 color = 6。 color += ((~i amp。 0x0f) 1)。 color = 5。 color += j。 break。 case 6: color = i。 color = 6。 color += (j 1)。 color = 5。 color += (~i amp。 0x0f)。 break。 default: color = j。 color = 6。 color += (i 1)。 color = 5。 color += j。 break。 }//小方格的顏色填充vid_draw_box(x, y, x+40, y+30, color, DO_FILL, vga_frame_buffer)。 } }}
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1