From: <ba...@us...> - 2008-08-24 12:35:55
|
Revision: 26 http://scrupp.svn.sourceforge.net/scrupp/?rev=26&view=rev Author: basique Date: 2008-08-24 12:35:54 +0000 (Sun, 24 Aug 2008) Log Message: ----------- - the core supports two new functions: -- scrupp.getWindowSize() -- scrupp.setDelta(<minimum delta in milliseconds>) Modified Paths: -------------- trunk/src/Graphics.c trunk/src/Graphics.h trunk/src/Main.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-08-29 13:07:44
|
Revision: 27 http://scrupp.svn.sourceforge.net/scrupp/?rev=27&view=rev Author: basique Date: 2008-08-29 13:07:40 +0000 (Fri, 29 Aug 2008) Log Message: ----------- - removed the mouse and key table All functions belonging to these tables are renamed: key.isDown -> scrupp.keyIsDown mouse.getX -> scrupp.getMouseX mouse.getY -> scrupp.getMouseY mouse.getPos -> scrupp.getMousePos mouse.isDown -> scrupp.mouseButtonIsDown - renamed scrupp.isMusicPlaying and scrupp.isMusicPaused for consistency: scrupp.isMusicPlaying -> scrupp.musicIsPlaying scrupp.isMusicPaused -> scrupp.musicIsPaused - any callable values (i.e. values with a __call metamethod) are accepted as callbacks - added two new options to scrupp.draw(): xOffset and yOffset The graphic is translated according to these two parameters. - all key events are represented by strings Now scrupp.keyIsDown(k) expects k to be a string. The callbacks keypressed(k) and keyreleased(k) are called with a string as argument. See keyboard.c for the mappings. Modified Paths: -------------- trunk/src/Graphics.c trunk/src/Keyboard.c trunk/src/Main.c trunk/src/Mouse.c trunk/src/Sound.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-08-30 11:18:05
|
Revision: 29 http://scrupp.svn.sourceforge.net/scrupp/?rev=29&view=rev Author: basique Date: 2008-08-30 11:17:59 +0000 (Sat, 30 Aug 2008) Log Message: ----------- - implemented resizable windows Added a new option to scrupp.init(): resizable. The new prototype is: scrupp.init(title, width, height, bit_depth, fullscreen, [resizable]). This option is only checked if fullscreen is false. Added a new callback: resized(w,h). This callback gets the new width and height of the window as arguments. It should call scrupp.init() with these new values. Modified Paths: -------------- trunk/src/Graphics.c trunk/src/Main.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-09-24 12:36:50
|
Revision: 30 http://scrupp.svn.sourceforge.net/scrupp/?rev=30&view=rev Author: basique Date: 2008-09-24 12:36:44 +0000 (Wed, 24 Sep 2008) Log Message: ----------- - fixed minor problems to make it compile with Microsoft VC6 without any warnings Modified Paths: -------------- trunk/src/FileIO.c trunk/src/FileIO.h trunk/src/Graphics.c trunk/src/Main.c trunk/src/Main.h This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-12-14 17:14:50
|
Revision: 37 http://scrupp.svn.sourceforge.net/scrupp/?rev=37&view=rev Author: basique Date: 2008-12-14 17:14:42 +0000 (Sun, 14 Dec 2008) Log Message: ----------- - support for larger images than OpenGL can handle Scrupp checks whether an image is too big for OpenGL and breaks it into smaller tiles. Normally, graphic cards for desktop systems support textures bigger than 2048x2048 pixels. Nevertheless, chipsets of embedded systems may be limited to 512x512 pixels. So this feature is crucial on these systems. Many thanks to Michal Kolodziejczyk for pointing this out. Modified Paths: -------------- trunk/src/Graphics.c trunk/src/Graphics.h This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-12-27 22:19:41
|
Revision: 39 http://scrupp.svn.sourceforge.net/scrupp/?rev=39&view=rev Author: basique Date: 2008-12-27 22:19:35 +0000 (Sat, 27 Dec 2008) Log Message: ----------- - support for UTF8 strings No change to the scripting interface. scrupp.getTextSize() and scrupp.generateImage() support both LATIN1 and UTF8. Thanks to Michal Kolodziejczyk for the idea and for providing a patch! - added scrupp.PLATFORM Can be one of the strings "Windows", "Mac OS X", "Linux" and "Unknown" depending on the system Scrupp was compiled on. - fixed segfault if the script didn't call scrupp.init() + some minor source code changes Modified Paths: -------------- trunk/src/Font.c trunk/src/Graphics.c trunk/src/Macros.c trunk/src/Main.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2009-03-02 21:58:34
|
Revision: 44 http://scrupp.svn.sourceforge.net/scrupp/?rev=44&view=rev Author: basique Date: 2009-03-02 21:58:17 +0000 (Mon, 02 Mar 2009) Log Message: ----------- - changed default audio sampling frequency from 22.05 kHz to 44.1 kHz - enabled audio support for mpeg movies The audio channel uses the music channel for playback. Therefore, music playback is disabled during video playback. - fixed bug regarding rendering of parts of images - fixed some compilation warnings - source code cleanup Modified Paths: -------------- trunk/src/FileIO.c trunk/src/Graphics.c trunk/src/Macros.c trunk/src/Main.c trunk/src/Movie.c trunk/src/Movie.h trunk/src/Sound.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2009-03-30 21:32:47
|
Revision: 46 http://scrupp.svn.sourceforge.net/scrupp/?rev=46&view=rev Author: basique Date: 2009-03-30 21:32:42 +0000 (Mon, 30 Mar 2009) Log Message: ----------- - some fixes to make the cairo support on Mac OS X working - Cairo.image_surface_create_from_png() supports the virtual file system provided by PhysFS Modified Paths: -------------- trunk/src/Graphics.c trunk/src/lua-oocairo-1.2/obj_surface.c trunk/src/lua-oocairo-1.2/oocairo.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2009-03-31 14:52:09
|
Revision: 48 http://scrupp.svn.sourceforge.net/scrupp/?rev=48&view=rev Author: basique Date: 2009-03-31 14:51:54 +0000 (Tue, 31 Mar 2009) Log Message: ----------- - small fixes to make scrupp cleanly compile on Linux Modified Paths: -------------- trunk/src/Macros.c trunk/src/lua-oocairo-1.2/oocairo.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2009-08-31 21:52:52
|
Revision: 55 http://scrupp.svn.sourceforge.net/scrupp/?rev=55&view=rev Author: basique Date: 2009-08-31 21:52:40 +0000 (Mon, 31 Aug 2009) Log Message: ----------- - re-enabled linear texture filtering - the center coordinates, scale factors and rotation is stored in every image - new functions: img:setCenterX(cx) cx = img:getCenterX() img:setCenterY(cy) cy = img:getCenterY() img:setCenter(cx, cy) cx, cy = img:getCenter() img:setScaleX(sx) sx = img:getScaleX() img:setScaleY(sy) sy = img:getScaleY() img:setScale(sx, sy) sx, sy = img:getScale() img:setRotation(a) a = img:getRotation() This should speed up the rendering of images, because in many cases it's not nescessary to use img:render{centerX = cx, centerY = cy, ...}. Instead the state of the image is changed and the normal img:render(x, y) call is used. Modified Paths: -------------- trunk/src/Graphics.c trunk/src/Graphics.h This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2009-09-03 21:43:58
|
Revision: 56 http://scrupp.svn.sourceforge.net/scrupp/?rev=56&view=rev Author: basique Date: 2009-09-03 21:43:48 +0000 (Thu, 03 Sep 2009) Log Message: ----------- - new functions: img:setColor(r,g,b) r,g,b = img:getColor() img:clearColor() img:setRect(x,y,w,h) x,y,w,h = img:getRect() img:clearRect() The color and the coordinates of the area of the image which should be rendered belong to the image state now. Modified Paths: -------------- trunk/src/Graphics.c trunk/src/Graphics.h This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2009-10-24 16:52:33
|
Revision: 63 http://scrupp.svn.sourceforge.net/scrupp/?rev=63&view=rev Author: basique Date: 2009-10-24 16:52:22 +0000 (Sat, 24 Oct 2009) Log Message: ----------- - new function: scrupp.setKeyRepeat(delay, interval) - delay (in ms) specifies how long the key must be pressed before it begins repeating - interval (in ms) specifies the repetition speed - the callback "keypressed" gets the utf-8 translation of the pressed key as a second argument - if you press the ?\195?\182 key on a German keyboard, the string will contain "?\195?\182" - the translation depends on the keyboard layout of the user Modified Paths: -------------- trunk/src/Graphics.c trunk/src/Keyboard.c trunk/src/Main.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Andreas K. <and...@gm...> - 2009-10-24 16:58:40
|
ba...@us... wrote: > - the callback "keypressed" gets the utf-8 > translation of the pressed key as a second argument > - if you press the ?\195?\182 key on a German keyboard, > the string will contain "?\195?\182" > - the translation depends on the keyboard layout > of the user That should have read: - if you press the ö key on a German keyboard, the string will contain "ö" |
From: <ba...@us...> - 2009-12-17 11:44:36
|
Revision: 65 http://scrupp.svn.sourceforge.net/scrupp/?rev=65&view=rev Author: basique Date: 2009-12-17 11:44:26 +0000 (Thu, 17 Dec 2009) Log Message: ----------- - new (optional) callback: main.update(dt) - if the return value of this function is true, the call to main.render(dt) is skipped in this frame - if the function does not exist, returns nothing, or returns false or nil, main.render(dt) is called - if the window needs to be redrawn, main.render(dt) is called, no matter what main.update(dt) returns - some small fixes Modified Paths: -------------- trunk/src/Main.c trunk/src/Mouse.c trunk/src/Sound.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2010-02-03 22:25:12
|
Revision: 73 http://scrupp.svn.sourceforge.net/scrupp/?rev=73&view=rev Author: basique Date: 2010-02-03 22:25:03 +0000 (Wed, 03 Feb 2010) Log Message: ----------- - new timer function with much more resolution taken from LuaSocket -> delta time parameter for render function has microsecond resolution -> standard delta time increased to 30 ms (~ 33 fps) - fix in library order in Makefile.am Modified Paths: -------------- trunk/src/Main.c trunk/src/Makefile.am This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2010-02-10 23:57:48
|
Revision: 77 http://scrupp.svn.sourceforge.net/scrupp/?rev=77&view=rev Author: basique Date: 2010-02-10 23:57:40 +0000 (Wed, 10 Feb 2010) Log Message: ----------- - fixed compilation error - fixed segfault when error() function is called without message Modified Paths: -------------- trunk/src/Main.c trunk/src/werechipmunk/cpBody-lua.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2010-02-17 22:26:45
|
Revision: 80 http://scrupp.svn.sourceforge.net/scrupp/?rev=80&view=rev Author: basique Date: 2010-02-17 22:26:36 +0000 (Wed, 17 Feb 2010) Log Message: ----------- - new method for images: img:toString() - returns a string containing the image as PNG with maximum compression - the PNG is currently padded to power of two dimensions - uses the module IMG_savepng.c/.h created by Philip D. Bober and Tyler Montbriand Modified Paths: -------------- trunk/src/Graphics.c trunk/src/Makefile.am Added Paths: ----------- trunk/src/IMG_savepng.c trunk/src/IMG_savepng.h This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2010-07-13 21:57:04
|
Revision: 83 http://scrupp.svn.sourceforge.net/scrupp/?rev=83&view=rev Author: basique Date: 2010-07-13 21:56:58 +0000 (Tue, 13 Jul 2010) Log Message: ----------- - fixed compiler warning in Graphics.c - small bugfix in Main.c Modified Paths: -------------- trunk/src/Graphics.c trunk/src/Main.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2010-08-27 22:29:26
|
Revision: 89 http://scrupp.svn.sourceforge.net/scrupp/?rev=89&view=rev Author: basique Date: 2010-08-27 22:29:20 +0000 (Fri, 27 Aug 2010) Log Message: ----------- - renamed Lua_Keyboard_isDown to Lua_Keyboard_keyIsDown - scrupp.draw supports tables with doubles instead of integers only - fixed translation by half pixels done by scrupp.draw Modified Paths: -------------- trunk/src/Graphics.c trunk/src/Keyboard.c trunk/src/Macros.c trunk/src/Macros.h trunk/src/Main.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2010-09-16 12:24:42
|
Revision: 92 http://scrupp.svn.sourceforge.net/scrupp/?rev=92&view=rev Author: basique Date: 2010-09-16 12:24:36 +0000 (Thu, 16 Sep 2010) Log Message: ----------- - Fix: the build system now uses the SDLMain function provided by Scrupp (see SDL_win32_main.c) instead of the one that comes with SDL - Change: the windows version no longer uses stdout.txt and stderr.txt but behaves like a console program --> all output goes to the console - Change: if there is an error, the error message is printed to stdout before the message box appears Modified Paths: -------------- trunk/src/Macros.c trunk/src/Makefile.am trunk/src/SDL_win32_main.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2011-01-30 20:05:18
|
Revision: 93 http://scrupp.svn.sourceforge.net/scrupp/?rev=93&view=rev Author: basique Date: 2011-01-30 20:05:12 +0000 (Sun, 30 Jan 2011) Log Message: ----------- - Fix: On Windows, it's not possible to use the console output with a GUI app. Thus, I re-enabled the output to stdout.txt and stderr.txt. They are written to the temp directory (see TEMP environment variable), e.g., on Windows 7 this is "C:\Users\<User>\AppData\Local\Temp". This fix partly reverts the changes of revision 92. Revision Links: -------------- http://scrupp.svn.sourceforge.net/scrupp/?rev=92&view=rev Modified Paths: -------------- trunk/src/Main.c trunk/src/SDL_win32_main.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2011-06-14 21:22:57
|
Revision: 95 http://scrupp.svn.sourceforge.net/scrupp/?rev=95&view=rev Author: basique Date: 2011-06-14 21:22:51 +0000 (Tue, 14 Jun 2011) Log Message: ----------- - Added joystick support New functions: - scrupp.getJoystickCount() Returns the number of available joysticks. - scrupp.getJoystickName(nr) Returns the name of the joystick with this number. - scrupp.openJoystick(nr) Opens the joystick with this number and returns a joystick object. Methods of the joystick object: - joystick:getName() - joystick:getIndex() Returns the number of the joystick. - joystick:getNumberOfAxes() - joystick:getNumberOfBalls() - joystick:getNumberOfHats() - joystick:getNumberOfButtons() - joystick:getAxis(axis_nr) - joystick:getHat(hat_nr) Returns dx and dy with dx = -1 or 1 and dy = -1 or 1. - joystick:getBall(ball_nr) - joystick:isDown(button_nr) - joystick:close() All joystick, axis, ball, hat and button numbers start at 1. See the documentation of SDL for a details about the return values of these functions. New callbacks: - main.joystickpressed(joystick_object, button_nr) - main.joystickreleased(joystick_object, button_nr) Modified Paths: -------------- trunk/src/Graphics.c trunk/src/Main.c trunk/src/Makefile.am Added Paths: ----------- trunk/src/Joystick.c trunk/src/Joystick.h This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |