Reputation: 21
Although there is no problem loading the "Image" my draw function doesn't draw anything. What might be the cause of this?
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);
}
Upvotes: 0
Views: 52
Reputation: 4468
Rect6.y never gets a value assigned to it. That may be the cause of the problem.
Upvotes: 1