Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv THIS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
- struct Rendering
- {
- //...
- };
- struct GameState
- {
- // ...
- Rendering rendering;
- // ...
- };
- static Rendering* rendering;
- static void update_game()
- {
- // ...
- rendering = gameState->rendering;
- }
- // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ THIS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv VS THIS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
- struct Rendering
- {
- //...
- };
- struct GameState
- {
- // ...
- // ...
- };
- static Rendering rendering;
- static void update_game()
- {
- // ...
- }
- // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ VS THIS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement