Hello Everyone,
It would appear that some functions have been changed and the demos have not
been updated to reflect this, or the functions have not been updated.
For example, the Rectangles Demo complains about SDL_RenderFill having too
many arguments. The demo is trying to pass 5 arguments, when the function is
only wanting one.
If I go ahead and just pass the pointer, the build is successful, but I just
get a black screen.
Any news on when this will be corrected?
Thanks,
Rick
You have to replace every call of:
SDL_RenderFill(r,g,b,a,rect);
with:
SDL_SetRenderColor(r,g,b,a);
SDL_RenderFill(rect);
I think it will be fixed in SVN sooner or later but it’s a trivial fix :)On Wed, Mar 4, 2009 at 8:29 PM, Rick Page wrote:
Hello Everyone,
It would appear that some functions have been changed and the demos have not
been updated to reflect this, or the functions have not been updated.
For example, the Rectangles Demo complains about SDL_RenderFill having too
many arguments. The demo is trying to pass 5 arguments, when the function is
only wanting one.
If I go ahead and just pass the pointer, the build is successful, but I just
get a black screen.
Any news on when this will be corrected?
–
Ing. Gabriele Greco, DARTS Engineering
Tel: +39-0105761240 Fax: +39-0105760224
s-mail: Via G.T. Invrea 14 - 16129 GENOVA (ITALY)
Thanks for the info, but I think I might have the wrong version SVN. I’ll
try downloading again, because I get a linker error “_SDL_SetRenderColor”,
referenced from: _render in rectangles.o, _SDL_Main in rectangles.o
symbol(s) not found.
RickOn Mon, Mar 9, 2009 at 5:37 AM, Gabriele Greco <gabriele.greco at darts.it>wrote:
On Wed, Mar 4, 2009 at 8:29 PM, Rick Page <@Rick_Page> wrote:
Hello Everyone,
It would appear that some functions have been changed and the demos have
not
been updated to reflect this, or the functions have not been updated.
For example, the Rectangles Demo complains about SDL_RenderFill having
too
many arguments. The demo is trying to pass 5 arguments, when the function
is
only wanting one.
If I go ahead and just pass the pointer, the build is successful, but I
just
get a black screen.
Any news on when this will be corrected?You have to replace every call of:
SDL_RenderFill(r,g,b,a,rect);
with:
SDL_SetRenderColor(r,g,b,a);
SDL_RenderFill(rect);I think it will be fixed in SVN sooner or later but it’s a trivial fix
–
Ing. Gabriele Greco, DARTS Engineering
Tel: +39-0105761240 Fax: +39-0105760224
s-mail: Via G.T. Invrea 14 - 16129 GENOVA (ITALY)
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Nevermind, it is SDL_SetRenderDrawColor.
RickOn Mon, Mar 9, 2009 at 9:36 AM, Rick Page <@Rick_Page> wrote:
Thanks for the info, but I think I might have the wrong version SVN. I’ll
try downloading again, because I get a linker error “_SDL_SetRenderColor”,
referenced from: _render in rectangles.o, _SDL_Main in rectangles.o
symbol(s) not found.
RickOn Mon, Mar 9, 2009 at 5:37 AM, Gabriele Greco <gabriele.greco at darts.it>wrote:
On Wed, Mar 4, 2009 at 8:29 PM, Rick Page <@Rick_Page> wrote:
Hello Everyone,
It would appear that some functions have been changed and the demos have
not
been updated to reflect this, or the functions have not been updated.
For example, the Rectangles Demo complains about SDL_RenderFill having
too
many arguments. The demo is trying to pass 5 arguments, when the
function is
only wanting one.
If I go ahead and just pass the pointer, the build is successful, but I
just
get a black screen.
Any news on when this will be corrected?You have to replace every call of:
SDL_RenderFill(r,g,b,a,rect);
with:
SDL_SetRenderColor(r,g,b,a);
SDL_RenderFill(rect);I think it will be fixed in SVN sooner or later but it’s a trivial fix
–
Ing. Gabriele Greco, DARTS Engineering
Tel: +39-0105761240 Fax: +39-0105760224
s-mail: Via G.T. Invrea 14 - 16129 GENOVA (ITALY)
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org