The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL_PointInRect doesn't exist anymore ?
jeroen.clarysse


Joined: 22 Feb 2010
Posts: 69
the wiki says : https://wiki.libsdl.org/SDL_PointInRect

but i get linker errors and indeed SDL_rect.h does not contain such function ?
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL_PointInRect doesn't exist anymore ?
Jonny D


Joined: 12 Sep 2009
Posts: 932
Are you using SDL 2.0.4?

https://hg.libsdl.org/SDL/file/9f0a0c7de41a/include/SDL_rect.h



Jonny D




On Wed, Aug 19, 2015 at 8:24 AM, jeroen clarysse wrote:
Quote:
the wiki says : https://wiki.libsdl.org/SDL_PointInRect

but i get linker errors and indeed SDL_rect.h does not contain such function ?
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL_PointInRect doesn't exist anymore ?
jeroen.clarysse


Joined: 22 Feb 2010
Posts: 69
apparently I’m using 2.0.0 which doesn’t have this function :-/

i’m not keen on upgrading to 2.0.4 since that means recompiling SDL_image, SDL_mixer, SDL_gfx, SDL_TTF and SDL_rtf :-)





Quote:
Are you using SDL 2.0.4?

https://hg.libsdl.org/SDL/file/9f0a0c7de41a/include/SDL_rect.h

Jonny D


On Wed, Aug 19, 2015 at 8:24 AM, jeroen clarysse wrote:
the wiki says : https://wiki.libsdl.org/SDL_PointInRect

but i get linker errors and indeed SDL_rect.h does not contain such function ?
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL_PointInRect doesn't exist anymore ?
brightening-eyes


Joined: 18 Jun 2015
Posts: 21
Location: tehran, iran
hello,
which error do you get?
and which compiler are you using?

Û±Û³Û¹Û´-Û°Ûµ-Û²Û¹ Û±Û²:Û±Û´ GMT+Û°Û´:Û³Û°, jeroen clarysse:
Quote:
apparently I’m using 2.0.0 which doesn’t have this function :-/

i’m not keen on upgrading to 2.0.4 since that means recompiling SDL_image,
SDL_mixer, SDL_gfx, SDL_TTF and SDL_rtf :-)





Quote:
Are you using SDL 2.0.4?

https://hg.libsdl.org/SDL/file/9f0a0c7de41a/include/SDL_rect.h

Jonny D


On Wed, Aug 19, 2015 at 8:24 AM, jeroen clarysse
wrote:
the wiki says : https://wiki.libsdl.org/SDL_PointInRect

but i get linker errors and indeed SDL_rect.h does not contain such
function ?
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL_PointInRect doesn't exist anymore ?
jeroen.clarysse


Joined: 22 Feb 2010
Posts: 69
it is fixed now : i manually added the code from 2.0.4 to 2.0.0. I will have to upgrade though since I don’t know what else is probably important

Quote:
hello,
which error do you get?
and which compiler are you using?

Û±Û³Û¹Û´-Û°Ûµ-Û²Û¹ Û±Û²:Û±Û´ GMT+Û°Û´:Û³Û°, jeroen clarysse:
Quote:
apparently I’m using 2.0.0 which doesn’t have this function :-/

i’m not keen on upgrading to 2.0.4 since that means recompiling SDL_image,
SDL_mixer, SDL_gfx, SDL_TTF and SDL_rtf :-)





Quote:
Are you using SDL 2.0.4?

https://hg.libsdl.org/SDL/file/9f0a0c7de41a/include/SDL_rect.h

Jonny D


On Wed, Aug 19, 2015 at 8:24 AM, jeroen clarysse
wrote:
the wiki says : https://wiki.libsdl.org/SDL_PointInRect

but i get linker errors and indeed SDL_rect.h does not contain such
function ?
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL_PointInRect doesn't exist anymore ?
Ryan C. Gordon
Guest

On 08/20/2015 03:44 AM, jeroen clarysse wrote:
Quote:
apparently I’m using 2.0.0 which doesn’t have this function :-/

i’m not keen on upgrading to 2.0.4 since that means recompiling SDL_image, SDL_mixer, SDL_gfx, SDL_TTF and SDL_rtf :-)

Fwiw, 2.0.0 and 2.0.4 are ABI and API compatible, so you shouldn't have
to recompile any of those libraries if you want to upgrade to get new
functions in 2.0.4.

(there are a LOT of fixes since 2.0.0...you are going to want to upgrade
sooner than later.)

--ryan.



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org