Commit Graph

21 Commits

Author SHA1 Message Date
groogy
7d7c4c999f Some refactoring, moved C++ allocation into the *_Alloc function instead of directly in new, removed new in most of classes too. Cloning should work on all copyable classes now.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1802 4e206d99-4929-0410-ac5d-dfc041789085
2011-02-27 14:07:10 +00:00
groogy
1986fb3f12 Changed names of some methods to fit the new names in SFML2 since revision: 1767
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1769 4e206d99-4929-0410-ac5d-dfc041789085
2011-01-05 18:21:47 +00:00
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
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
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
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
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
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
a4925aab38 Finally finished making all the functions that I will eventually bind to the SFML::Image class. To tired right now, I'll continue tomorrow.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1682 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-20 00:44:23 +00:00
groogy
a80339f668 A lot of changed, nothing complete. Just committing so I can transfer location. I'm currently focusing on getting SFML::Image complete since the entire library more or less depends on it.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1681 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-19 18:36:45 +00:00
groogy
4b8ae2b817 Changed Window so where ever it uses SFML::Vector2 to access it's elements I use the helper functions.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1674 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-19 08:33:30 +00:00
groogy
abd49f55a1 Moved VALIDATE_CLASS to main.hpp and changed so it considers heritage too.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1661 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 20:12:35 +00:00
groogy
13e9b006e7 Modified the entire module so that rdoc can interpret the source to generate documentation for me. This will also be done for sfml-system.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1657 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 16:03:50 +00:00
groogy
f8bfec9321 Updated rdoc commentaries in the window module.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1656 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 13:25:59 +00:00
groogy
26883e3ab4 SFML::Window now supports taking in Vector2 on methods where it would be relevant.
(Example: SFML::Window#cursor_position = [255, 255] )

Updated the demo file to show this in action.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1655 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 09:21:52 +00:00
groogy
bbb8cbb25a Removed some debugging output and added another alias for SFML::Window
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1648 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-15 13:48:53 +00:00
groogy
d1e082d1d7 Finished the Window class now. Still got comments left to do and the setter functions which accepts an array of size 2 should be changed so they accept a SFML::Vector2 and force any argument to that type.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1642 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-15 08:15:42 +00:00
groogy
d62c2e35a6 Finished all methods and has binded every C function to a ruby symbol. Left to do is rdoc comments on every function and giving the methods appropriate symbol aliases to cover similar names and give it a more ruby style to them too.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1641 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-14 23:28:39 +00:00
groogy
845c38406b Almost finished the SFML::Window class. Though got some more methods to implement and I'll have to actually bind them to the class under a symbol. Also there are some functions I'll have to try out if they work, especially the SFML::Window#GetEvent method.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1640 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-14 22:11:44 +00:00
groogy
d516ef4f91 Forgot to fix the Init_Window function on the previous commit. Done now.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1639 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-14 17:44:39 +00:00
groogy
10de308f44 Quck syntax fiex to main.cpp VideoMode.cpp
Added skeleton for SFML::Window and finished the new method I think.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1635 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-11 20:43:18 +00:00