Commit Graph

762 Commits

Author SHA1 Message Date
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
LaurentGom
04075d6a4b Minor modifications to the Window::GetFrameTime() doc
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1690 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-21 09:33:45 +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
LaurentGom
7559f0669f Fixed errors (missing double-quotes) in VS 2010 project files generated by CMake, for static build
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1688 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-20 22:30:14 +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
LaurentGom
e73d274d86 New API for sf::Thread (more flexible)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1685 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-20 13:00:19 +00:00
LaurentGom
7ebf2f1bbb Added the install rule for sfml-main in CMake files
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1684 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-20 08:25:08 +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
f1cae1cfef Moved the RetrieveSFMLClass function to the system module since several other modules will be using this function too.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1678 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-19 13:33:37 +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
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