Commit Graph

32 Commits

Author SHA1 Message Date
groogy
a6bceffa43 Well struggling with SVN, hopefully it will be deleted and properly ignored now.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1663 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 20:40:39 +00:00
groogy
5983b93a4d Created the graphics module and the Color class. SFML::Color is not done yet.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1662 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 20:31:57 +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
784c8ca80b Removed documentation
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1660 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 18:50:19 +00:00
groogy
01b0f37451 I forgot to actually include the documentation to the commit.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1659 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 16:41:16 +00:00
groogy
85a4e5155e Removed some stuff that wasn't needed any more in the window module
Also made the required changed for Rdoc to the system module and generated rdoc documentation for both modules.
It's safe to say now that rbSFML is available to be used for at least opening up a window and opengl context and render something in opengl.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1658 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 16:26:00 +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
1c9e5ff5a2 Concerned changes is that the 'true' values had to be Qtrue or I would be doing an invalid comparison.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1654 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 09:17:50 +00:00
groogy
23fd179d8b Include the headers from the system module.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1653 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 09:05:24 +00:00
groogy
da2cec5a9f Added support for external classes from sfml-system and the ability to include them.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1652 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 09:04:35 +00:00
groogy
1fda02efc4 Added VideoMode_ForceType so we can ensure we get a VideoMode.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1651 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 09:03:15 +00:00
groogy
53621f0726 Added a capped frame rate at 100 to demonstrate that the library also supports ruby-style methods.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1650 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 08:10:47 +00:00
groogy
07dd3de1d2 Added dependency check for Window module.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1649 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 08:09:41 +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
262d9bfc1d Demonstrate the window ruby binding
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1647 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-15 10:03:25 +00:00
groogy
756874a4ba Changed INT2FIX to FIX2UINT. That it didn't crash still surprises me.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1646 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-15 09:15:43 +00:00
groogy
f41b2b3f14 Added @type get method to SFML::Event
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1645 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-15 09:08:22 +00:00
groogy
f79fec5c56 Forgot to load and initialize SFML::VideoMode and SFML::Window
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1644 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-15 08:33:41 +00:00
groogy
ca0a02556a Fixed some dumb mistakes by me when I tried to copy over the sf::Key enum values trough for-loops.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1643 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-15 08:32:08 +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
LaurentGom
afbe386bca Fixed the current view management in RenderWindow and RenderImage, in SFML.Net
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1638 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-14 15:23:19 +00:00
LaurentGom
d69903765b Fixed crash after disposing RenderWindow or RenderImage instances, in SFML.Net
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1637 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-13 18:59:06 +00:00
LaurentGom
5421f1c42f Minor fixes in SFML.Net
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1636 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-13 18:27:03 +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
groogy
462c5723df Finished VideoMode and changed some aliases in ContextSettings.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1634 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-11 12:33:14 +00:00
LaurentGom
13b91bf116 Removed default constructor of Image and Shader in CSFML and SFML.Net
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1633 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-11 09:53:12 +00:00
LaurentGom
0e2297af28 Moved all bindings to the "bindings" sub-directory
Renamed the CSFML directory to c
Renamed the DSFML directory to d
--> bindings must now be updated to match the new organization!

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1630 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-09 17:13:17 +00:00