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
groogy
e0b1a7a53f
Added so that we can check if the system library has been loaded by querying: SFML::SystemLoaded which will be true if loaded otherwise nil which counts as false in an if-statement
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1596 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 10:01:10 +00:00
groogy
14741b19b6
added license
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1595 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-03 08:01:26 +00:00
groogy
055735e489
Just bare-bones for the Window library.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1594 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-02 22:59:19 +00:00
groogy
e9c325a9cf
Modified Clock description and added first comments on the Vector2 and Vector3 classes. Though I have to comment the comparison methods of the vector classes too.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1593 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-02 22:54:38 +00:00
groogy
562547b0ee
Added comments to the ruby wrapper functions. Hopefully they comply with rdoc and the ruby standard so I can generate a good documentation later.
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1592 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-02 22:20:20 +00:00
groogy
bd16e0fc40
Change so that Clock_New is only used and accessible from within Clock.cpp since I realized that using it directly and not trough a ruby call will mess up ruby's call stack probably
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1591 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-02 22:00:53 +00:00
groogy
77626aa172
Forgot to place message on previous. Added the entire System library to the repo.
...
Here I've modified Clock.cpp and added another alias for Clock_GetElapsedTime so that it conforms with the Ruby standard.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1590 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-02 16:15:14 +00:00
groogy
4b418bb4d7
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1589 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-02 16:06:32 +00:00
groogy
b1a9967d56
Cleaned folder
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1588 4e206d99-4929-0410-ac5d-dfc041789085
2010-11-02 10:10:38 +00:00
Trass3r
b7fc208177
brought back alloc.d
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1587 4e206d99-4929-0410-ac5d-dfc041789085
2010-10-31 19:53:48 +00:00
Trass3r
643ff2b38a
+ Vector swizzling (thx Simen Kjaeraas)
...
- alloc.d
* small fix in KeyCode enum
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1586 4e206d99-4929-0410-ac5d-dfc041789085
2010-10-29 10:41:46 +00:00
LaurentGom
61dc7e0100
Added the TcpListener::Close function
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1585 4e206d99-4929-0410-ac5d-dfc041789085
2010-10-26 19:38:26 +00:00
LaurentGom
16d986c762
Binding two sockets to the same port on the same computer now triggers an error
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1584 4e206d99-4929-0410-ac5d-dfc041789085
2010-10-17 21:20:36 +00:00
LaurentGom
2cd966f566
Fixed a bug in sf::UdpSocket::Receive(sf::Packet&) with non-blocking sockets (incorrect packets were sometimes returned)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1583 4e206d99-4929-0410-ac5d-dfc041789085
2010-10-16 08:47:27 +00:00
LaurentGom
5e73228b5e
Switched to the latest version of FreeType (2.4.3) and recompiled the VC++ version with /MD
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1582 4e206d99-4929-0410-ac5d-dfc041789085
2010-10-15 19:33:58 +00:00
LaurentGom
bfcc54db3d
Updated sfWindowHandle in CSFML (sync with sf::WindowHandle)
...
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1581 4e206d99-4929-0410-ac5d-dfc041789085
2010-10-13 21:43:24 +00:00