lesson 3
This commit is contained in:
Binary file not shown.
@@ -7,7 +7,7 @@ const int scren_height = 480;
|
||||
SDL_Window* win = NULL;
|
||||
SDL_Renderer* ren = NULL;
|
||||
|
||||
SDL_Texture* LoadImage(const char path[])
|
||||
SDL_Texture* LoadImage(const char* path)
|
||||
{
|
||||
SDL_Surface* loadedImage = NULL;
|
||||
SDL_Texture* texture = NULL;
|
||||
@@ -62,7 +62,7 @@ int main()
|
||||
|
||||
int bW, bH;
|
||||
SDL_QueryTexture(background, NULL, NULL, &bW, &bH);
|
||||
//cout << bW << " " << bH << endl;
|
||||
cout << bW << " " << bH << endl;
|
||||
ApplySurfaces( 0, 0, background, ren);
|
||||
ApplySurfaces( bW, 0, background, ren);
|
||||
ApplySurfaces( 0, bH, background, ren);
|
||||
|
||||
Reference in New Issue
Block a user