Declaration hides another variable same name
This commit is contained in:
parent
4f7757e87c
commit
5cc085c4bd
|
|
@ -114,9 +114,9 @@ int main(void)
|
||||||
ClearBackground(RAYWHITE);
|
ClearBackground(RAYWHITE);
|
||||||
EndTextureMode();
|
EndTextureMode();
|
||||||
|
|
||||||
Image pattern = LoadImage("resources/game_of_life/r_pentomino.png");
|
Image startPattern = LoadImage("resources/game_of_life/r_pentomino.png");
|
||||||
UpdateTextureRec(world2.texture, (Rectangle){ worldWidth/2.0f, worldHeight/2.0f, (float)(pattern.width), (float)(pattern.height) }, pattern.data);
|
UpdateTextureRec(world2.texture, (Rectangle) { worldWidth / 2.0f, worldHeight / 2.0f, (float)(startPattern.width), (float)(startPattern.height) }, startPattern.data);
|
||||||
UnloadImage(pattern);
|
UnloadImage(startPattern);
|
||||||
|
|
||||||
// Pointers to the two textures, to be swapped
|
// Pointers to the two textures, to be swapped
|
||||||
RenderTexture2D *currentWorld = &world2;
|
RenderTexture2D *currentWorld = &world2;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user