Commit Graph

7 Commits

Author SHA1 Message Date
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
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