Commit Graph

3214 Commits

Author SHA1 Message Date
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
groogy
e75c42869d I made some errors since I couldn't previously test compile my source. Anyway fixed now. Just gonna check runtime later too.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1616 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-05 20:06:30 +00:00
LaurentGom
1279cb208c Minor modifications to Config.hpp
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1615 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-05 14:09:29 +00:00
LaurentGom
6a6ff075e8 Removed the SFML_DYNAMIC symbol for dynamic builds, added SFML_STATIC for static builds
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1614 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-05 13:58:29 +00:00
LaurentGom
7ed866667d Removed old projects/makefiles for SFML examples
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1613 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-05 13:29:20 +00:00
LaurentGom
6e682af51a Finished to adjust the libraries names in SFML, CSFML and SFML.Net
Removed support for old projects/makefiles (only CMake makefiles can be used now)

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1612 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-04 22:49:49 +00:00
LaurentGom
9f0d6882ba Fixed a bug in sf::Shader with textures
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1611 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-04 21:51:27 +00:00
groogy
3e73efccbd Finished the different event types. Only got the main event class left.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1610 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-04 21:29:09 +00:00
LaurentGom
7c20d648fc Changed the naming rules for SFML 2 libraries: the major version number no longer appears in them, except for Windows DLLs (not in import libraries)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1609 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-04 21:21:32 +00:00
groogy
5232a66eb3 Finished Event_Initialize as far as I can see.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1608 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-04 16:58:25 +00:00
groogy
a751ef306b git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1607 4e206d99-4929-0410-ac5d-dfc041789085 2010-11-04 16:29:04 +00:00
groogy
dec0928c4e This message will be more like a note to self.
I've added so that a ruby instance of each event type is created when an event is allocated and initialized. Left to do is to keep reference to these objects inside the event instance and to force the event type instances to keep a reference back to their original event. This is to make sure that the garbage collector keep them together in memory at all times. Also something I must do is to check the event's type in the initialize method so that we will always only create ONE of these "child" instances.

This way we won't need to allocate any unnecessary memory except if the developer specifically request a new event type instance. For example: SFML::Event::Key.new

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1606 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-04 14:41:47 +00:00
groogy
31d438dd87 Begun work on the Event class. This is a quite tricky one because of the union.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1605 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-04 09:56:54 +00:00
groogy
51066ce55d git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1604 4e206d99-4929-0410-ac5d-dfc041789085 2010-11-03 22:33:57 +00:00
groogy
0d2581a4df Removed an unnecessary definition of the new function.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1603 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 20:02:08 +00:00
groogy
8c3ec2b353 Added ContextSettings to the window library.
Also changed an exception type in Context.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1602 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 20:01:20 +00:00
laurentgom
01edb04ad5 Added the version and soversion of SFML libraries in CMake files
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1601 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 17:39:17 +00:00
groogy
f2176a98b4 Added SFML::Context to the sfml-window library.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1600 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 16:53:48 +00:00
LaurentGom
93d92ddb0d Increased the number of supported joysticks to 8
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1599 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 16:45:44 +00:00
groogy
a1ba993c66 Added the main file for the sfml-window library and also so that you can check if it has been loaded by checking SFML::WindowLoaded
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1598 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 10:24:14 +00:00
groogy
5219f332b4 Changed name of System.* to main.* since I will otherwise have a big problem with file/name collision in other libraries.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1597 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 10:06:01 +00:00