paragui-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-dev] draw::ScaleSurface


From: Asko Kauppi
Subject: [paragui-dev] draw::ScaleSurface
Date: Thu, 8 Jul 2004 10:29:57 +0300


Going through the API..

ScaleSurface (one of the SDLgfx functions) has three 'faces', two of which can be differentiated in C++ but not so in scripting languages:

ScaleSurface( SDL_Surface*, double zoomx, double zoomy, bool smooth = true ) ScaleSurface( SDL_Surface*, Uint16 newx, Uint16 newy, bool smooth = true )

At least in Lua, numbers are just numbers (all double) so I cannot really differ between these two. Of course, one could check the _values_ of the numbers, but that would be bad: zooming by integers wouldn't work! So I plan to leave the second form out.

Any better alternatives?

-ak





reply via email to

[Prev in Thread] Current Thread [Next in Thread]