User Tools

Site Tools


zh_cn:tutorial:screenhandler

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
zh_cn:tutorial:screenhandler [2023/09/14 01:22] – [ScreenHandler 和 Screen] wjz_pzh_cn:tutorial:screenhandler [2023/09/14 01:42] (current) – [ScreenHandler 和 Screen] wjz_p
Line 257: Line 257:
         int y = (height - backgroundHeight) / 2;         int y = (height - backgroundHeight) / 2;
         drawTexture(matrices, x, y, 0, 0, backgroundWidth, backgroundHeight);         drawTexture(matrices, x, y, 0, 0, backgroundWidth, backgroundHeight);
 +        //1.20或者以上的版本,这个方法在DrawContext类里面。
     }     }
  
zh_cn/tutorial/screenhandler.1694654557.txt.gz · Last modified: 2023/09/14 01:22 by wjz_p