Commit Graph

41 Commits

Author SHA1 Message Date
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
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
8335502866 Forgot to change a variable name, now it compiles and works.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1673 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-19 08:30:38 +00:00
groogy
712b64d168 Added helper functions for Vector3 and Vector2. Made them also use the functions themselves and fixed a small bug in Vector3 where only 2 values would be set and not all 3 when doing any kind of arithmetics on them.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1672 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-19 08:26:58 +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
groogy
0994de8d23 Added so that the Init_Color function is called.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1667 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-17 11:51:02 +00:00
groogy
8c45dc9d6b Added the predefined colors
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1666 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-17 08:59:23 +00:00
groogy
a951ee4581 Modified some comments in Vector2.cpp and added comments to Color.cpp
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1665 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-17 08:16:11 +00:00
groogy
6f83501b27 Finished SFML::Color, will still need to add rdoc comments.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1664 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-16 21:40:47 +00:00
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
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
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