Commit Graph

405 Commits

Author SHA1 Message Date
Laurent Gomila
d9629cfca7 Fixed typo in sf::Transformable documentation 2013-05-11 08:51:20 +02:00
Laurent Gomila
b92dc572e3 Fixed documentation of sf::Image 2013-05-10 09:48:55 +02:00
Laurent Gomila
ae11207cdf InputStream.hpp was missing from the source file listing in CMake files, and added an important comment in the doc of InputStream::read (#349) 2013-05-09 13:37:24 +02:00
Laurent Gomila
4e8c144879 Updated the year in the copyright notice 2013-04-06 09:34:44 +02:00
Laurent Gomila
5c46daacd4 Fixed sf::Text constructor declaration (no longer explicit) and the API documentation 2013-03-15 08:13:00 +01:00
Foaly
ba2d08684c Added repeating to sf::RenderTexture
Added the missing setRepeated() and isRepeated() methods to sf::RenderTexture.
2013-03-06 18:11:48 +01:00
Shiz
6bc077688e Added Unicode window title support.
- Changed SFML API to receive an sf::String as the window title instead
  of a std::string (in Window::Window and Window::setTitle).
- Changed RenderWindow and WindowImpl APIs accordingly.
- Changed WindowImplWin32 to use a Unicode window title only if the
  target OS supports it.
- Changed WindowImplCocoa to always use Unicode window titles and added
  a utility function to Window/OSX/cpp_objc_conversion.mm.
- Changed WindowImplX11 to set the Unicode window title as part of the
  _NET_WM_NAME specification, which sadly is not part of the official X
  standard, but the closest anything can get. Still set regular ASCII
  title as fallback.
2013-02-12 02:14:52 +01:00
Laurent Gomila
9cf259c365 Minor addition in the API documentation 2013-02-02 20:42:00 +01:00
Laurent Gomila
91e1743516 Changed Texture::bind and Shader::bind to be static functions, that can accept a null argument 2013-01-08 22:24:43 +01:00
Laurent Gomila
527bb287a5 Minor modification to the API documentation 2012-12-30 09:54:09 +01:00
Laurent Gomila
d41837bf16 Fixed example in the API doc of sf::SocketSelector 2012-12-14 15:06:03 +01:00
Laurent Gomila
2e22038be7 Correction in the API documentation 2012-12-04 20:39:29 +01:00
Laurent Gomila
3eb32ded68 Correction in the API documentation 2012-12-04 20:36:39 +01:00
Laurent Gomila
8ddf513216 Updated the description of modules 2012-12-02 23:13:16 +01:00
Laurent Gomila
37d6e72a14 Moved some functions of RenderTarget to private access 2012-12-02 00:10:24 +01:00
Laurent Gomila
4afe83d934 Removed the endianness detection macros (were not used) 2012-11-28 20:44:03 +01:00
Laurent Gomila
6ce6014dd8 Renamed RenderTarget::convertCoords to mapPixelToCoords, and added its inverse mapCoordsToPixel 2012-11-10 10:30:01 +01:00
Laurent Gomila
42118dc217 Minor modification to the API doc 2012-11-01 16:13:07 +01:00
Laurent Gomila
c02e375399 Renamed Ftp::ListingDirectory::getFilenames() to getListing() 2012-10-26 17:09:43 +02:00
Laurent Gomila
121cfeb6a3 Removed Shader::unbind (was not used internally, less consistent with sf::Texture and could be confusing for users) 2012-10-20 23:38:39 +02:00
Laurent Gomila
7656693013 Minor updates in the documentation of sf::Shader 2012-10-02 08:19:21 +02:00
Laurent Gomila
57f81d4051 Disabled an optimization in sf::Shape that could break rendering 2012-09-21 22:06:27 +02:00
Laurent Gomila
2308c5a627 Minor correction in API doc 2012-09-18 18:51:24 +02:00
Laurent Gomila
6790904c80 Minor correction in API documentation 2012-09-01 23:26:20 +02:00
Marco Antognini
1d80eaa59b Revert Transformable documentation
I was a bit too enthusiastic on this one. (see http://en.sfml-dev.org/forums/index.php?topic=8943.msg60213#msg60213)
2012-08-23 17:15:03 +02:00
Marco Antognini
f970a6441f Minor corrections in API documentation 2012-08-23 13:22:17 +02:00
Laurent Gomila
1336a70eac Minor corrections in API documentation 2012-08-11 20:27:30 +02:00
Laurent Gomila
0670bad198 Minor correction in API documentation 2012-08-07 17:31:45 +02:00
Laurent Gomila
a0c1f5f50f Removed the built-in default font 2012-08-04 00:08:14 +02:00
Laurent Gomila
db1f1b8fa1 Minor corrections in API documentation 2012-07-31 17:51:01 +02:00
Laurent Gomila
81e4209482 Minor correction in API documentation 2012-07-28 20:45:00 +02:00
Laurent Gomila
3e2c3b8c95 Corrections in API documentation 2012-07-15 15:04:37 +02:00
Laurent Gomila
e85bd1baf6 Corrections in API documentation 2012-07-15 14:55:13 +02:00
Laurent Gomila
26d5620817 Shape::setOutlineThickness now allows negative values 2012-07-15 13:47:14 +02:00
Laurent Gomila
e3261f0430 Corrections in API documentation 2012-07-14 17:26:21 +02:00
Laurent Gomila
e7284cd665 Minor correction in API documentation 2012-07-10 20:22:08 +02:00
Laurent Gomila
7faf5857ec Added a sf::Key::Unknown key code for unsupported keys 2012-07-09 23:26:37 +02:00
Laurent Gomila
bba63dfae0 Minor correction in API doc 2012-06-30 20:11:43 +02:00
Laurent Gomila
aa534a0936 Fixed crash in SocketSelector::add when passing an invalid socket 2012-06-26 21:55:45 +02:00
Laurent Gomila
dd51b3d8ff Renamed Keyboard::Back to Keyboard::BackSpace 2012-06-19 18:21:16 +02:00
Laurent Gomila
c4c2c77686 Minor fix in the API doc 2012-06-13 17:21:27 +02:00
Laurent Gomila
eadd0b1596 Minor corrections in API doc 2012-06-06 22:06:45 +02:00
Laurent Gomila
8eb5073c33 Minor correction the API doc of sf::Shader 2012-05-30 17:22:13 +02:00
Laurent Gomila
ac9bda51ca Improved the API documentation of sf::Event (added the mapping between event types and members) 2012-05-24 15:56:51 +02:00
Laurent Gomila
945c848b37 Minor correction in API doc 2012-05-18 18:47:26 +02:00
Laurent Gomila
1187c29327 Minor correction API doc 2012-05-02 19:30:28 +02:00
Laurent Gomila
66a1ed7825 Minor corrections in API doc 2012-04-24 17:40:49 +02:00
Laurent Gomila
233fe32fab Minor corrections in API doc 2012-04-23 18:15:32 +02:00
Laurent Gomila
e9a6840e7d Minor corrections in API doc 2012-04-22 08:53:57 +02:00
Laurent Gomila
eebaa27d17 Minor corrections in API doc 2012-04-20 22:28:45 +02:00
Laurent Gomila
3a64ca8943 Minor corrections in API doc 2012-04-20 18:04:01 +02:00
Laurent Gomila
b623975fcf Minor correction in API doc 2012-04-07 17:07:40 +02:00
Laurent Gomila
cef3df4649 Minor corrections in API doc 2012-04-06 19:06:06 +02:00
Laurent Gomila
f3be2da018 Minor correction in API doc 2012-04-05 14:01:14 +02:00
Laurent Gomila
8c776f33c1 Private virtual functions are now protected, so that sub-classes can call them if necessary (and they appear in the API doc :) 2012-04-04 22:33:53 +02:00
Laurent Gomila
1a8488bd7b Minor corrections in API doc 2012-04-04 22:19:29 +02:00
Laurent Gomila
8d0da1d9d6 Replaced char* arguments with void* for raw data 2012-04-03 19:06:32 +02:00
Laurent Gomila
17e6a45a90 Replaced getWidth/getHeight with getSize in sf::Texture and sf::Image 2012-03-31 22:37:13 +02:00
Laurent Gomila
859074b3cc RenderTarget::convertCoords now takes a Vector2i argument 2012-03-27 17:17:59 +02:00
Laurent Gomila
74f9388f31 Made some 1 argument constructors explicit 2012-03-27 17:13:46 +02:00
Laurent Gomila
ac45dc9cba GL states are no longer polluted by SFML's ones when mixing with custom OpenGL code 2012-03-27 17:09:19 +02:00
Laurent Gomila
ee7cd94220 Fixed various minor warnings 2012-03-17 17:00:19 +01:00
Laurent Gomila
9163d04517 Merge branch 'master' of github.com:LaurentGomila/SFML 2012-03-14 19:06:55 +01:00
Laurent Gomila
ac4efb54f3 Improved the documentation of Music::openFromXxx functions 2012-03-14 19:05:51 +01:00
Marco Antognini
c741b6459f Updated the copyright text 2012-03-14 14:37:17 +01:00
Laurent Gomila
d592b2a7d1 Updated the copyright text 2012-03-13 18:37:34 +01:00
Laurent Gomila
4119c3bb31 Fixed compile error in sf::Rect 2012-03-12 18:01:36 +01:00
Laurent Gomila
14ac411542 Changed the naming convention for public member variables/functions and free functions (using lowerCase instead of UpperCase) 2012-03-11 19:10:37 +01:00
Laurent Gomila
ff5b69d312 Changed the naming convention for member variables (prefix changed from "my" to "m_") 2012-03-09 01:48:45 +01:00
Laurent Gomila
15e9d999b3 Added Window::GetPosition, and renamed some setters in Window for better consistency 2012-03-07 23:29:54 +01:00
Laurent Gomila
b8ea003eae Changed Transform::Combine to modify *this (more consistent with other functions) 2012-02-20 20:18:48 +01:00
Laurent Gomila
73b037b244 Updated the comments of Window::SetFramerateLimit 2012-01-31 19:56:51 +01:00
Laurent Gomila
84d75ed487 Fixed Window::SetFramerateLimit 2012-01-31 07:53:02 +01:00
Laurent Gomila
c2c924f512 Minor fixes in comments 2012-01-29 11:39:29 +01:00
Laurent Gomila
10cd729296 The UDP broadcast address is now a valid IpAddress, IpAddress::None is now 0. 2012-01-23 23:01:12 +01:00
Laurent Gomila
108984f71b sf::Time operators now take arguments by value instead of const reference 2012-01-21 15:41:10 +01:00
Laurent Gomila
369f450502 Minor fixes in documentation 2012-01-21 11:53:31 +01:00
Laurent Gomila
906a62df0f Each module now has its own export macro, which solves the "unresolved symbol" error with sf::Time::Zero 2012-01-21 10:34:17 +01:00
Laurent Gomila
4116ad033c Added the sf::Time class 2012-01-19 23:51:06 +01:00
Laurent Gomila
e775bd0169 Renamed SoundStream::Chunk::NbSamples to SampleCount, and renamed other nbSamples variables to sampleCount 2012-01-13 15:09:30 +01:00
Laurent Gomila
c2039e866c Renamed Window::IsOpened to IsOpen
Made some minor consistency modifications in internal code
2012-01-13 14:53:36 +01:00
Laurent Gomila
1e34d04aac Minor fix in comments 2012-01-04 20:38:02 +01:00
Laurent Gomila
8de7fca241 Minor improvements to the API documentation 2011-12-28 22:36:09 +01:00
Laurent Gomila
aaa21dfaf6 Corrected the name of some functions/variable 2011-12-25 23:42:43 +01:00
Laurent Gomila
f55da8d8bc Merge branch 'drawables' 2011-12-25 23:08:02 +01:00
Laurent Gomila
191730ac0d Added a render states cache to improve performances 2011-12-25 22:30:38 +01:00
Laurent Gomila
b65b19343a Changed the type of Vertex::TexCoords from integers to floats, to make it compatible with buggy ATI drivers 2011-12-21 22:44:21 +01:00
Laurent Gomila
5a4e8d58af Minor modifications 2011-12-21 22:31:42 +01:00
Laurent Gomila
78910b555e Removed unused Context::GetCurrentContextId() 2011-12-21 22:28:53 +01:00
Laurent Gomila
537e8c9e8d Fixed typo 2011-12-20 18:58:23 +01:00
Laurent Gomila
3e89dd652f Rewrote the implementation of sf::Clock, it now ensures microseconds resolution and monotonicity 2011-12-20 18:47:33 +01:00
Laurent Gomila
bc95d855b3 Added a virtual destructor to sf::Transformable 2011-12-19 17:50:15 +01:00
Laurent Gomila
5b2648fd8b Fixed typo in comments 2011-12-15 20:45:08 +01:00
Laurent Gomila
c33fa1d290 Added SetPointsCount in sf::CircleShape 2011-12-10 15:22:21 +01:00
Laurent Gomila
048abbf46f Renamed GetOutlinePoint/GetOutlinePointsCount to GetPoint/GetPointsCount in sf::Shape, and made them public 2011-12-10 14:58:18 +01:00
Laurent Gomila
e6956d8e4d Removed the sf::StarShape class 2011-12-10 14:51:03 +01:00
Laurent Gomila
c9b87ec8a9 Added support for vertex shaders in sf::Shader
Rewrote the Shader example
2011-12-10 13:02:38 +01:00
Laurent Gomila
6ff27baf54 Removed wrong comment about scale factors in sf::Transformable 2011-12-05 17:57:45 +01:00
Laurent Gomila
f381260136 Removed references to the old sf::Renderer class 2011-12-04 21:06:29 +01:00
Laurent Gomila
6381d10d40 Made one-arg constructors explicit in shapes classes 2011-12-04 20:43:28 +01:00
Laurent Gomila
a2fcb75876 Fixed compile errors in sf::Vertex with LLVM GCC 4.2 on OS X Lion 2011-12-04 20:37:08 +01:00
Laurent Gomila
44cc9bad84 Added constructors with parameters for shapes, and default-constructed shapes are now always empty 2011-12-04 10:53:14 +01:00
Laurent Gomila
eeff685255 Merge branch 'master' into drawables
Conflicts:
	include/SFML/Graphics/Sprite.hpp
	include/SFML/Graphics/Text.hpp
	src/SFML/Graphics/Sprite.cpp
2011-12-02 20:58:14 +01:00
Laurent Gomila
5bae08a2d8 Implemented the new graphics API:
- Removed the internal classes sf::Renderer and sf::Matrix3
- Split sf::Drawable into sf::Drawable and sf::Transformable
- Added sf::Transform
- Added sf::Vertex
- Added sf::VertexArray
- Types of shapes are now handled with their own derived class
- Modified the Pong example
2011-12-01 23:24:58 +01:00
Laurent Gomila
a5d40de8a2 Replaced unsigned long with Uint32 in the public API (avoids size problems with bindings) 2011-11-20 13:50:11 +01:00
Laurent Gomila
017ef652f9 Removed the Resource and ResourcePtr classes 2011-11-05 15:50:44 +01:00
Laurent Gomila
46b2c096c4 Added extra underscores to gcc 4 specific attributes (visibility, constructor) 2011-11-04 08:01:56 +01:00
Laurent Gomila
eed112d9ea SFML shared libraries now use ELF visibility on Unixes with gcc >= 4 2011-10-16 19:30:37 +02:00
Laurent Gomila
a547acfeb7 Fixed linker errors with InputStream in SFML dynamic libraries 2011-09-20 21:02:02 +02:00
Laurent Gomila
9205942917 Minor fix in API documentation 2011-09-03 10:18:09 +02:00
Laurent Gomila
7f390367f1 OpenGL.hpp now includes windows.h only with VC++ 2011-09-02 19:26:49 +02:00
Laurent Gomila
18cebde155 Minor fix in comments 2011-09-02 19:26:18 +02:00
Laurent Gomila
78afc38501 Minor fixes to the doc 2011-08-26 18:42:54 +02:00
Laurent Gomila
b9b3888788 Minor fix in comments 2011-08-21 21:13:23 +02:00
Laurent Gomila
d541f5f5b0 Minor fixes in documentation 2011-08-19 18:28:08 +02:00
Laurent Gomila
4c3bd58ef6 Config.hpp doesn't define WIN32_LEAN_AND_MEAN anymore on Windows 2011-08-11 22:24:25 +02:00
Laurent Gomila
7f11d16f3b Fixed SoundStream::GetPlayingOffset looping after a few seconds 2011-08-08 20:49:57 +02:00
Laurent Gomila
2e4531f751 Removed useless #include 2011-08-07 13:41:07 +02:00
Laurent Gomila
550ef632e3 Fixed compile error in sf::Font 2011-08-07 10:22:42 +02:00
Laurent Gomila
3f22fbb978 Fixed typo in documentation of sf::TcpListener 2011-07-30 17:35:13 +02:00
Laurent Gomila
f5294d5342 Added Image::FlipHorizontally and Image::FlipVertically 2011-07-29 22:04:59 +02:00
Laurent Gomila
e509f01180 Split sf::Image into sf::Image and sf::Texture (implements issue #18) 2011-07-22 22:31:27 +02:00
Laurent Gomila
3d4bb1f568 Renamed InputStream::GetPosition to InputStream::Tell (more consistent naming) 2011-07-20 08:03:40 +02:00
Laurent Gomila
dfe7cba373 Merge branch 'master' of github.com:LaurentGomila/SFML 2011-07-17 12:22:08 +02:00
Laurent Gomila
c5276ff30a Added a new InputStream interface, and LoadFromStream functions to resource classes 2011-07-17 12:21:47 +02:00
Marco Antognini
535733f5c7 Implemented OSX/Joysticks and fixed some tabulations 2011-07-13 22:16:34 +02:00
Laurent Gomila
e46016a79d Removed Window::GetMouseFocusWindow 2011-07-11 23:26:09 +02:00
Laurent Gomila
46843d84f7 Fixed typo in comments 2011-07-11 08:01:48 +02:00
Laurent Gomila
270f505570 Removed Window::GetCursorPosition/SetCursorPosition, added Mouse::GetPosition/SetPosition (two versions: one that handles desktop coordinates, one that handles window coordinates) 2011-07-08 07:56:14 +02:00
Laurent Gomila
15f6eca815 Updated CSFML and SFML.Net to the new input classes 2011-07-05 23:04:03 +02:00
Laurent Gomila
8621e45960 Implemented global inputs (sf::Keyboard, sf::Mouse, sf::Joystick) and removed the event-based sf::Input.
Window::WaitEvent now works with joystick events as well.
Added Event::JoystickConnected and Event::JoystickDisconnected.
Added Window::GetCursorPosition.
2011-07-04 08:21:40 +02:00
Laurent Gomila
48e30ea0e3 Made the behaviour of Thread::Wait consistent across implementations when called from its owner thread 2011-06-12 14:08:54 +02:00
Laurent Gomila
175cddee58 UdpSocket::Send(Packet) is now limited to UdpSocket::MaxDatagramSize, so that data is never split into multiple datagrams, which removes a lot of potential major problems 2011-06-11 11:28:43 +02:00
Laurent Gomila
79d5217c42 Minor fix in sf::Text 2011-06-09 08:37:25 +02:00
Laurent Gomila
df61292f65 Made sf::Mutex recursive on Unix, the behaviour is now consistent across platforms 2011-05-31 23:31:25 +02:00
Laurent Gomila
d938899f5c Window::SetCursorPosition now triggers MouseMoved events 2011-05-30 18:56:49 +02:00
Laurent Gomila
94ab420dd3 Implemented the sf::Packet to bool conversion using the safe-bool idiom 2011-05-25 20:45:16 +02:00
Laurent Gomila
1526d09701 Changed Packet::operator bool() to Packet::operator void*(), to avoid inappropriate implicit conversions 2011-05-24 22:10:13 +02:00
Laurent Gomila
1a59b9291e Minor fix in documentation 2011-05-23 07:38:49 +02:00
Laurent Gomila
e4c6c30e0b Times in SFML are now Uint32 milliseconds instead of float seconds
Added the sf::Uint64 and sf::Int64 types
2011-05-19 08:19:42 +02:00
Laurent Gomila
a4f6e915a0 Removed the sf::Randomizer class from the system module 2011-05-10 08:16:22 +02:00
Laurent Gomila
2f9a47b463 Minor fixes in documentation related to joysticks 2011-05-06 14:03:15 +02:00
Laurent Gomila
ede01df778 Added the sf::Event::KeyEvent::System member (implements feature #8) 2011-04-26 21:58:03 +02:00
Laurent Gomila
eac841ec71 Added explicit conversions between different types of sf::Vector2, sf::Vector3 and sf::Rect (implements feature #31) 2011-04-26 19:20:24 +02:00
Laurent Gomila
df6874273a Renamed Window::GetEvent to PollEvent 2011-04-11 18:20:21 +02:00
Laurent Gomila
b8ddbb6dcc Updated documentation of Image::SetSmooth 2011-04-08 17:49:48 +02:00
Laurent Gomila
f6bbbb6e6d Inversed rotation angle in drawables, to make it match the Y axis pointing down in SFML (fixes issue #3) 2011-04-06 08:13:55 +02:00
Laurent Gomila
92f70b32e9 Replaced the P-Buffer implementation of RenderImage with a generic "in-memory context" one 2011-04-04 08:20:03 +02:00
Laurent Gomila
3acacc8049 Updated sf::Context main description 2011-04-01 21:52:52 +02:00
laurentgom
f632253adc Fixed compile error ('NULL' not defined) with gcc 4.6 in System/Resource.hpp
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1812 4e206d99-4929-0410-ac5d-dfc041789085
2011-03-21 10:27:29 +00:00