[英]My Draw Method Is Not Working
盡管加載“圖像”沒有問題,但我的繪制函數不會繪制任何內容。 這可能是什么原因?
void Draw_InGameMenu()
{
Rect6.w = 100;
Rect6.h = 100;
Rect6.x = 100;
Rect6.h = 100;
MenuCaption.x = Rect6.x;
MenuCaption.y = Rect6.y;
SDL_RenderCopy(renderer, Image, NULL, &Rect6);
SDL_RenderCopy(renderer, MenuCaptionTexture, NULL, &MenuCaption);
}
Rect6.y永遠不會獲得分配給它的值。 這可能是問題的原因。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.