gameprogcpp / code

Game Programming in C++ Code
Other
1.01k stars 354 forks source link

Stuck on Exercise 2.3 #33

Closed patoncrispy closed 4 years ago

patoncrispy commented 4 years ago

Hey there. I'm stuck on Exercise 2.3 and not entirely sure of a few things.

Also, I'm not entirely sure if I'm using SDL_RenderCopyEx correctly. I have:

SDL_RenderCopyEx(
                    renderer,
                    mTexture,
                    &rect,
                    nullptr,
                    -Math::ToDegrees(mOwner->GetRotation()),
                    nullptr,
                    SDL_FLIP_NONE
                );

It's rendering stuff, but again, not entirely sure if I'm going in the right direction.

Apologies if this isn't the right place to post these questions. I wasn't sure how else to get the answers! :)

patoncrispy commented 4 years ago

Nevermind! I got there in the end! 😄

chalonverse commented 4 years ago

Glad you figured it out!