Advertisement Jump to content
  • Advertisement

Jeff de Anda

Member
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Jeff de Anda

  • Rank
    Newbie

Personal Information

  • Interests
    Art
    Audio
    Design
    Programming
  1. Jeff de Anda

    SDL_Rect Scope

    That's great! Thanks for your help. Is this the case for all render APIs? I.e. Point, Line, Copy. Or do some hold the pointer to the object until RenderPresent is called? Thanks again.
  2. Jeff de Anda

    C++ SDL_Rect Scope

    Question about SDL_Rect scope. Say I have a member function like so. void drawRect(int x, int y, int w, int y) { SDL_Rect r = {x, y, w, h}; SDL_RenderDrawRect(m_renderer, &r); } Will it cause problems if SDL_Rect goes out of scope before calling SDL_RenderPresent? I cannot tell if the values are copied from SDL_Rect when calling SDL_RenderDrawRect or if internally SDL is storing the pointer until SDL_RenderPresent is called. Thanks!
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!