Commit Graph

20 Commits

Author SHA1 Message Date
groogy
5232a66eb3 Finished Event_Initialize as far as I can see.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1608 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-04 16:58:25 +00:00
groogy
a751ef306b git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1607 4e206d99-4929-0410-ac5d-dfc041789085 2010-11-04 16:29:04 +00:00
groogy
dec0928c4e This message will be more like a note to self.
I've added so that a ruby instance of each event type is created when an event is allocated and initialized. Left to do is to keep reference to these objects inside the event instance and to force the event type instances to keep a reference back to their original event. This is to make sure that the garbage collector keep them together in memory at all times. Also something I must do is to check the event's type in the initialize method so that we will always only create ONE of these "child" instances.

This way we won't need to allocate any unnecessary memory except if the developer specifically request a new event type instance. For example: SFML::Event::Key.new

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1606 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-04 14:41:47 +00:00
groogy
31d438dd87 Begun work on the Event class. This is a quite tricky one because of the union.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1605 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-04 09:56:54 +00:00
groogy
51066ce55d git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1604 4e206d99-4929-0410-ac5d-dfc041789085 2010-11-03 22:33:57 +00:00
groogy
0d2581a4df Removed an unnecessary definition of the new function.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1603 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 20:02:08 +00:00
groogy
8c3ec2b353 Added ContextSettings to the window library.
Also changed an exception type in Context.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1602 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 20:01:20 +00:00
groogy
f2176a98b4 Added SFML::Context to the sfml-window library.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1600 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 16:53:48 +00:00
groogy
a1ba993c66 Added the main file for the sfml-window library and also so that you can check if it has been loaded by checking SFML::WindowLoaded
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1598 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 10:24:14 +00:00
groogy
5219f332b4 Changed name of System.* to main.* since I will otherwise have a big problem with file/name collision in other libraries.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1597 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 10:06:01 +00:00
groogy
e0b1a7a53f Added so that we can check if the system library has been loaded by querying: SFML::SystemLoaded which will be true if loaded otherwise nil which counts as false in an if-statement
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1596 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 10:01:10 +00:00
groogy
14741b19b6 added license
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1595 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 08:01:26 +00:00
groogy
055735e489 Just bare-bones for the Window library.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1594 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-02 22:59:19 +00:00
groogy
e9c325a9cf Modified Clock description and added first comments on the Vector2 and Vector3 classes. Though I have to comment the comparison methods of the vector classes too.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1593 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-02 22:54:38 +00:00
groogy
562547b0ee Added comments to the ruby wrapper functions. Hopefully they comply with rdoc and the ruby standard so I can generate a good documentation later.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1592 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-02 22:20:20 +00:00
groogy
bd16e0fc40 Change so that Clock_New is only used and accessible from within Clock.cpp since I realized that using it directly and not trough a ruby call will mess up ruby's call stack probably
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1591 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-02 22:00:53 +00:00
groogy
77626aa172 Forgot to place message on previous. Added the entire System library to the repo.
Here I've modified Clock.cpp and added another alias for Clock_GetElapsedTime so that it conforms with the Ruby standard.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1590 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-02 16:15:14 +00:00
groogy
4b418bb4d7 git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1589 4e206d99-4929-0410-ac5d-dfc041789085 2010-11-02 16:06:32 +00:00
groogy
b1a9967d56 Cleaned folder
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1588 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-02 10:10:38 +00:00
laurentgom
2f524481c1 Added the trunk/branches/tags directories at repository root, and moved previous root into trunk/
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1002 4e206d99-4929-0410-ac5d-dfc041789085
2009-01-28 16:18:34 +00:00