Commit Graph

1184 Commits

Author SHA1 Message Date
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
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
08393593e1 Fixed minor error in sf::Window::Window documentation, and removed a useless member
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1632 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-11 08:46:13 +00:00
LaurentGom
230f5e58ca Fixed texture cache not properly updated when a same sf::Image instance allocated a new OpenGL texture internally
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1631 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-09 21:55:24 +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
LaurentGom
0cc5563cac Removed top-level Linux makefiles for SFML and CSFML (forgot to remove them before)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1629 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-08 22:26:54 +00:00
LaurentGom
95eda37e47 Fixed crash when saving PNG images with gcc
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1628 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-08 22:22:17 +00:00
groogy
9f386d038b Added the static functions for VideoMode. Haven't been tested yet so might not work properly.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1627 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-07 23:03:00 +00:00
groogy
ac0cb73e3a Skeleton for VideoMode class
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1626 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-07 20:10:13 +00:00
LaurentGom
e895d6516b Fixed double quotes in VS 2010 projects generated by CMake for static builds
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1625 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-07 19:51:33 +00:00
LaurentGom
4ed1d8861c Added some missing "CallingConvention = CallingConvention.Cdecl" in SFML.Net
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1624 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-07 18:55:13 +00:00
LaurentGom
511be1028d Fixed install path for FindSFML.cmake
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1623 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-07 18:53:18 +00:00
groogy
fefcc2a951 Converted the enums sf::Key::Code, sf::Mouse::Button, sf::Joy:Axis and sf::Style.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1622 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-07 18:10:17 +00:00
LaurentGom
4f09703b55 Fixed install path for libraries in CMake makefiles
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1621 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-07 16:50:00 +00:00
groogy
d2b0953e03 Finished Input class.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1620 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-07 00:08:50 +00:00
groogy
b26417c240 Added skeleton for SFML::Input class.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1619 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-06 18:01:24 +00:00
groogy
0124c37fb5 Finished SFML::Event and run tests to see that it works.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1618 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-06 15:38:26 +00:00
groogy
3a7168b497 Added the EventType enum as constant ints in SFML::Event
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1617 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-06 00:43:16 +00:00