Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Point/Rect operators and functions #19

Open
4 of 13 tasks
AMDmi3 opened this issue Dec 26, 2014 · 4 comments
Open
4 of 13 tasks

More Point/Rect operators and functions #19

AMDmi3 opened this issue Dec 26, 2014 · 4 comments

Comments

@AMDmi3
Copy link
Member

AMDmi3 commented Dec 26, 2014

  • Multiply/divide Point by integer
  • Rect::Contains(Rect)
  • Rect::Intersects(Rect)
  • everything from http://wiki.libsdl.org/CategoryRect
    • SDL_EnclosePoints
    • SDL_HasIntersection
    • SDL_IntersectRect
    • SDL_IntersectRectAndLine
    • SDL_PointInRect
    • SDL_RectEmpty
    • SDL_RectEquals
    • SDL_UnionRect
  • constructors from SDL_Point and SDL_Rect
@tony
Copy link

tony commented Aug 23, 2016

@AMDmi3
Copy link
Member Author

AMDmi3 commented Aug 24, 2016

Could you please elaborate on your comment?

@ooxi
Copy link
Contributor

ooxi commented Sep 4, 2016

Most likely @tony wanted to point out the implementation of those functions. Nevertheless the implementation is irrelevant in my opinion, since libSDL2pp strives to provide a wrapper to SDL2, not a reimplementation.

@AMDmi3
Copy link
Member Author

AMDmi3 commented Sep 5, 2016

Partially. It's easier to reimplement some functions than to wrap around clumsy SDL implementations. In any case we're not going to copypaste SDL code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants