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
4813ca8d8e
A little mistake by me. A warning from the compiler got me notified about it.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1799 4e206d99-4929-0410-ac5d-dfc041789085
2011-02-13 18:10:46 +00:00
groogy
1fad97be6d
Fixed some missing reference in sfml-graphics initiation function. The shared classes has to be global and reacquired in each library for it to work.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1798 4e206d99-4929-0410-ac5d-dfc041789085
2011-02-13 12:59:28 +00:00
tricksterguy
e63a8fe442
new directory structure for ruby binding should compile and link fine under windows
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1797 4e206d99-4929-0410-ac5d-dfc041789085
2011-02-13 05:26:14 +00:00
groogy
4d175b9243
Forgot to actually call SetSourceRect in Sprite#setSourceRect
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1781 4e206d99-4929-0410-ac5d-dfc041789085
2011-01-28 21:50:59 +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
tricksterguy
8eebd71fcc
New extconf.rb for the graphics module
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1763 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-23 23:23:27 +00:00
groogy
9b25dc5641
Forgot to add a negative sign before the one when specifying the amount of arguments SFML::Image#initialize takes.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1751 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-06 08:34:15 +00:00
groogy
8199fa0379
some small fixes for mistakes I made and that Trickster noticed.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1748 4e206d99-4929-0410-ac5d-dfc041789085
2010-12-05 15:40:24 +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
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
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
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
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
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
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
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
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
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
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
aaf1dc3a66
A lot of changes. But all lead to that you now can draw shapes on a SFML::RenderWindow
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1696 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-23 05:58:32 +00:00
groogy
aabed07f10
Finished SFML::RenderImage, still got rdoc comments to do.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1695 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-22 16:13:33 +00:00
groogy
feae42e7f7
Fixed so that the rbDrawable::Render function now wraps the sf::Renderer and sf::RenderTarget objects and passes the wrappers to the SFML::Drawable#render method.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1694 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-22 15:03:30 +00:00
groogy
f991e29cd2
Created the SFML::RenderTarget mixin module for my convenience. Consider this class internal! Do not use it directly in your code!
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1693 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-22 14:50:09 +00:00
groogy
c9e7b6caf2
Created the SFML::Renderer class. Got rdoc comments left to do.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1692 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-21 15:47:37 +00:00
groogy
ae57d51182
Finished the SFML::Shader class. Still got rdoc comments to do.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1691 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-21 13:32:26 +00:00
groogy
7a31d223ef
Finished the SFML::View class. Will add rdoc commentaries later.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1689 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-20 23:42:53 +00:00
groogy
83c580f9b4
Finished SFML::Font with rdoc commentaries too.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1687 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-20 18:16:24 +00:00
groogy
f05ca23625
Finished SFML::Image and have written rdoc comments on every method binding. Left to do is testing it when the whole module is finished.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1686 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-20 16:02:07 +00:00
groogy
dbc947a185
Fixed some compilation errors from previous revision. Now it compiles but the classes different methods haven't been bound yet so won't have any effect.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1683 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-20 01:12:58 +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
738b02c308
Well I made a test to check if Drawable worked, and it didn't... I had made some really bad mistakes but they are fixed now and the drawable test is working currently. Though it will be extended with functionality to render too. Will have to wait with that test for now as the function is actually not finished.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1680 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-19 14:29:21 +00:00
groogy
8153ec8db8
Had to do a lot of configurations to get the cross-module include work correctly.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1679 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-19 14:03:40 +00:00
groogy
550289b6a8
Added Drawable module, still have the comments to add and have to test if it works, but theoretically it should be good to go.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1677 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-19 13:29:40 +00:00
groogy
85d24cbf88
Added helper functions to access the color components in SFML::Color
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1676 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-19 09:28:16 +00:00
groogy
961a417fb6
Updated SFML::Rect to use the new helper functions.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1675 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-19 08:46:00 +00:00
groogy
5161f2a4ee
Added so that Graphics can include System headers
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1671 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-17 21:54:49 +00:00
groogy
6366c02d19
Finished SFML::Rect. Will still have to add rdoc comments when I get the energy and properly debug test the functionality.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1670 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-17 21:47:03 +00:00
groogy
06d6f9b81d
Finished the Rect_Initialize function so we now also can specify two vectors as size and position.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1669 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-17 20:55:20 +00:00
groogy
810cd35cae
Added SFML::Rect, not finished yet but will work more on it when I get home.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1668 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-17 19:29:09 +00:00