Commit Graph

3314 Commits

Author SHA1 Message Date
groogy
0aafc6b6ba Added commentaries to all new initialize methods.
Also moved the commentaries in SFML::Window from the Window_New function to Window_Initialize.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1746 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-04 21:17:35 +00:00
groogy
aa39447c26 Changed resource classes initialize method to call often used methods if arguments are provided.
Check for details: http://tasks.groogy.se/index.php?do=details&task_id=1&project=2

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1745 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-04 19:26:05 +00:00
groogy
44e811ec64 Fixed a bug in RenderImage where RenderImage_GetHeight was named RenderTarget_GetHeight which should've led to that you couldn't even compile the source.
Also added so that when creating a new RenderImage instance that if you give any arguments then those will be passed on to a method call to SFML::RenderImage#create.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1744 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-04 18:01:32 +00:00
mantognini
f2be71b1ea remove a warning from video mode impl
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1743 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-04 16:03:44 +00:00
mantognini
93cc2e4472 add (non-tested) impl of PBuffer
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1742 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-03 22:49:13 +00:00
mantognini
fd02b2d3af fix event mouse move
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1741 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-03 22:29:41 +00:00
groogy
bb7a6fac1f Added a #initialize_copy method to all classes which are wrapped around a C++ object in order to properly copy the values.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1740 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-03 19:47:41 +00:00
groogy
0920da5d8e Just some wrong names which is fixed now.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1739 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-03 16:16:50 +00:00
groogy
30865b6ef9 Made the classes that is non-copyable in the C++ library also non-copyable in rbSFML.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1738 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-03 14:12:16 +00:00
groogy
cd04d29584 Added a NonCopyable mixin-module which prohibits any attempt to copy instances of classes that includes this module.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1737 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-03 13:44:59 +00:00
groogy
1a7e7a30be Apparently not, forgot to add sfml-all/all/main.cpp.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1736 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-03 11:43:14 +00:00
groogy
b2168230ec Ah stupid me, I copied an already SVN-tracked folder without deleting the SVN data so the SVN client thought everything had already been committed. I hope I got it right now.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1735 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-03 11:42:35 +00:00
groogy
c61b4fec47 Changed so that we use the static libraries of SFML instead to reduce the dependency when you want to distribute your ruby applications.
Also seems like that my sfml-all wasn't committed. Should be done now.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1734 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-03 11:27:38 +00:00
groogy
6d66ed1af3 Added 'sfml/all' package which will require each package for you when you require this one.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1733 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-03 09:26:25 +00:00
LaurentGom
6ce458939e Minor fix that makes sf::SoundStream less crazy when the internal AL source couldn't be created
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1732 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-02 22:26:35 +00:00
mantognini
0ed20bf130 fix SFContext::MakeCurrent
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1731 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-30 23:00:45 +00:00
mantognini
e2ff29ecda fix event with fullscreen mode
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1730 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-30 22:55:23 +00:00
LaurentGom
9ce6a2aa2a Updated libsndfile DLL to version 1.0.23 on Windows (fixes bad quality with some ogg/vorbis files)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1729 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-30 18:55:00 +00:00
groogy
501c0030f5 Added specialized getWidth and getHeight to SFML::RenderImage and SFML::RenderWindow. Also removed documentation from the specialized methods.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1728 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-30 05:33:44 +00:00
groogy
fef70e1280 Fixes for: http://sfml-dev.org/forum/viewtopic.php?p=23727#23727
Also had forgotten two breaks in a switch-statement in View.cpp

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1727 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-29 15:44:02 +00:00
groogy
4de4d0832c Invalid number conversion in SFML::View, fixed now.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1726 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-29 09:11:05 +00:00
groogy
6541486967 Fixed an invalid comparison in SFML::Rect#intersects
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1725 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-29 08:51:37 +00:00
LaurentGom
166de04854 Added macros to define the SFML version in Config.hpp
Improved FindSFML.cmake to check the version

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1724 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-28 22:03:05 +00:00
groogy
86ec781e81 Had bound SFML::VideoMode height to width. Fixed now
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1723 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-28 01:55:19 +00:00
groogy
7e42a2b505 Nothing major, just some changes here and there.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1722 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-28 01:02:57 +00:00
groogy
0446d03a03 Created an instance of wrong class.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1721 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-27 23:48:33 +00:00
groogy
888d4f7585 Forgot to add the isValid method to the SFML::VideoMode class. Fixed now.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1720 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-27 22:51:38 +00:00
mantognini
13f062220b update licence header
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1719 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-26 08:09:38 +00:00
groogy
1a6835e042 Some changes because of a mistake made on my behalf. I forgot to write rb_funcall2 but I used instead rb_funcall instead.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1718 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-25 23:05:37 +00:00
groogy
2f46c7a85b Fixed some mistakes on my behalf and possibly the sf::RenderTarget::Draw segmentation fault. And I did it without dynamic cast!
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1717 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-25 22:45:30 +00:00
mantognini
90a61a6048 update cmake for better doxygen search
remove duplicated headers - update cmake accordingly



git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1716 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-25 22:06:17 +00:00
mantognini
4a1a2a6b5f add licence header
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1715 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-25 20:54:29 +00:00
groogy
50a5ecd79f Added rdoc comments to all audio classes.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1714 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-25 19:30:10 +00:00
groogy
191776fbec Made some changes to ensure consistency with references when it comes to the Garbage Collector
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1713 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-25 17:52:50 +00:00
groogy
0d7c966d5e Finished the library. Got some bugs to sort out first but after that it's all done!
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1712 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-25 17:36:29 +00:00
mantognini
de8712fa5f This is a big commit for os x port!
> remove old OSX version
> add new sources (Window and Graphics modules)
> add extlibs static binaries/headers/frameworks
> update cmake for OSX




git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1711 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-25 16:45:03 +00:00
groogy
bb55254fe3 Added SoundBufferRecorder.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1710 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-25 15:12:33 +00:00
groogy
398f4ee763 Forgot to pass the sample pointer in the OnProcessSamples function and also some aliases.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1709 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-25 11:04:17 +00:00
groogy
d22a5648d4 Finished the SoundRecorder class. You can make instances from it but you'll have to implement the pure abstract method yourself in ruby code.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1708 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-25 10:55:08 +00:00
groogy
ce1ffbc687 Finished the SFML::Sound class
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1707 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-25 07:32:07 +00:00
groogy
748f572201 Finished SoundBuffer. Also adding files for SoundStream and Sound, not completed yet!
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1706 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-24 21:08:40 +00:00
groogy
d4e60f3a2a Fixed a bug where Image_LoadFromFile was bound to SFML::Image#loadFromPixels...
Didn't I commit this just now? I think my SVN client isn't working properly.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1705 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-24 21:06:54 +00:00
groogy
ee117bb749 Small changes in header files and also finished the SoundSource class.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1704 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-24 19:17:57 +00:00
groogy
7c2b4bccfa Started working on the SFML-Audio module. Thought I committed this previously but doesn't look like it. Anyway here it is. Completed at least Listener
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1703 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-24 18:52:07 +00:00
groogy
3fc9c7f999 Started working on the sfml-audio module. Got Listener done with rdoc documentation.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1702 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-24 16:08:56 +00:00
groogy
5c848f3617 Don't know what would be the difference but this is more semantically correct.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1701 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-24 11:36:07 +00:00
groogy
a8a1c98a41 Graphics module is now complete. Added rdoc documentation to every class and method.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1700 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-24 05:49:36 +00:00
groogy
bc24802219 Finished the Graphics Module. Gonna go trough all files again now and add the rdoc comments where I've left it out.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1699 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-23 17:21:20 +00:00
groogy
dbd8795df8 Just some small fixes for my convenience.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1698 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-23 15:00:23 +00:00
groogy
7178d7bfcf Test to check that SFML::RenderWindow and shapes works as they should.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1697 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-23 05:59:28 +00:00