Commit graph

15 commits

Author SHA1 Message Date
Benoît Minisini
1b67769f30 [GB.SDL2.AUDIO]
* BUG: Setting music volume now works even if the music is not playing.
  Workaround an SDL2 deficiency.


git-svn-id: svn://localhost/gambas/trunk@6799 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-02 20:52:15 +00:00
Benoît Minisini
317dce6638 [GB.SDL2.AUDIO]
* NEW: Now Channel is creatable, and returns the first available channel 
  that has never been used.
* NEW: Channel now raises the Finish event when it has finished to play its 
  sound.
* NEW: Channel.Index is a new property that returns its channel number.

git-svn-id: svn://localhost/gambas/trunk@6795 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-02 12:32:57 +00:00
Benoît Minisini
4edd14b3db [GB.SDL2.AUDIO]
* NEW: Explicitely initialize each sound format support, and print a 
  warning for each failure.
* NEW: 'gb.sdl2.audio' does not require 'gb.sdl2' anymore.


git-svn-id: svn://localhost/gambas/trunk@6793 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-02 10:47:37 +00:00
Benoît Minisini
a5f2cb1575 [FARM SERVER]
* NEW: Software screenshot can be deleted by the client.

[INTERPRETER]
* NEW: The little interpreter sleep is now done inside the watch file 
  descriptor read callback only. So no need to implement it in each
  component event loop.

[GB.SDL2]
* BUG: The SDL event loop now calls the interpreter event loop so that 
  timers and watched file descriptor are correctly handled.


git-svn-id: svn://localhost/gambas/trunk@6792 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-02 03:44:30 +00:00
Benoît Minisini
7dca5a263a [GB.SDL2]
* NEW: Font.DefaultHeight is a new constant that returns the height of the 
  default font.

[GB.SDL2.AUDIO]
* NEW: Sound.Play method has been implemented.


git-svn-id: svn://localhost/gambas/trunk@6784 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-31 15:49:49 +00:00
Benoît Minisini
327ad6bacf [GB.SDL2.AUDIO]
* BUG: Fix Music.Volume property.


git-svn-id: svn://localhost/gambas/trunk@6782 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-31 13:38:28 +00:00
Benoît Minisini
c9d87bf8b9 [GB.SDL2]
* NEW: Channel.Distance is a new property that defines the channel 
  distance, between 0 (near) and 255 (far).
* NEW: Channel.Angle is a new property that defines the channel direction,
  0° being the front, 90° the right, 180° behind and 270° the left.
* NEW: Channel.Reverse is a new boolean property that reverses the channel
  stereo.
* NEW: Music.SoundFontPath is a new property to tell SDL the directories 
  where the MIDI sound font files are stored.


git-svn-id: svn://localhost/gambas/trunk@6780 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-30 23:10:56 +00:00
Benoît Minisini
f811768f78 [DEVELOPMENT ENVIRONMENT]
* NEW: Add gb.sdl2 and gb.sdl2.audio to the component list.

[EXAMPLES]
* NEW: Start porting SDL examples to gb.sdl2. They are not published to the 
  farm server yet.

[GB.UTIL]
* NEW: Raise an error if Date.EasterDay() is call for a year lower then 
  1583.

[GB.GTK]
* NEW: Ignore WAIT inside jkeyboard event handlers only if a duration is 
  specified.

[GB.GTK3]
* NEW: Ignore WAIT inside jkeyboard event handlers only if a duration is 
  specified.

[GB.QT4]
* NEW: Ignore WAIT inside jkeyboard event handlers only if a duration is 
  specified.

[GB.SDL2]
* NEW: OpenGL support.
* NEW: Window.Resizable has been implemented.


git-svn-id: svn://localhost/gambas/trunk@6779 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-30 17:36:02 +00:00
Benoît Minisini
14a735ac51 [GB.SDL2.AUDIO]
* NEW: The audio part of the SDL2 component. It's the old gb.sdl.sound 
  without the CD-Rom support, but with a few more features planned.


git-svn-id: svn://localhost/gambas/trunk@6778 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-30 15:56:19 +00:00
Benoît Minisini
ac239ebc89 [GB.SDL2]
* NEW: Implement Font.TextWidth() and Font.TextHeight().
* NEW: Add the default Gambas font.
* NEW: Add a texture cache in each Font object, that can store the last 128 
  drawn texts. When the cache is full, it is completely erased.
* BUG: Many fixes.

git-svn-id: svn://localhost/gambas/trunk@6776 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-29 21:49:05 +00:00
Benoît Minisini
1709cd1302 [GB.SDL2]
* NEW: Mouse and keyboard support.
* NEW: TTF fonts support.


git-svn-id: svn://localhost/gambas/trunk@6773 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-29 01:39:45 +00:00
Benoît Minisini
a434a994c0 [GB.SDL2]
* BUG: Forget some files.


git-svn-id: svn://localhost/gambas/trunk@6772 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-27 19:05:42 +00:00
Benoît Minisini
a8e23e8c23 [GB.SDL2]
* NEW: Image class.
* NEW: Can load images now, thanks to SDL_image.
* NEW: Image drawing, with optional opacity and rotation.


git-svn-id: svn://localhost/gambas/trunk@6771 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-27 11:24:05 +00:00
Benoît Minisini
7f06ab1316 [GB.SDL2]
* NEW: Add the event loop, the framerate limitation, the Draw class.
* NEW: 'SDL2_image' will be used for image I/O instead of 'gb.image.io'.


git-svn-id: svn://localhost/gambas/trunk@6770 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-27 08:33:25 +00:00
Benoît Minisini
6557ebfbc8 [GB.SDL2]
* NEW: Start rewriting the SDL component with SDL 2.


git-svn-id: svn://localhost/gambas/trunk@6769 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-26 17:34:32 +00:00