Commit Graph

693 Commits

Author SHA1 Message Date
LaurentGom
08f819e49e WGL implementations not supporting wglChoosePixelFormatARB (for antialiasing) no longer crash
When an OpenGL 3.x context cannot be created, the minor version is decreased until it reaches 0 (instead of giving up and switching to a 2.x context immediately)


git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1300 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-03 08:49:45 +00:00
LaurentGom
4418469d97 Added SetSmooth / IsSmooth to sf::RenderImage
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1299 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-03 08:29:35 +00:00
LaurentGom
10296333be Fixed minor warnings after the last commit
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1298 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-02 20:50:21 +00:00
LaurentGom
6bd654b854 Fixed wrong type for OpenGL indices (std::size_t could be 64 bits on 64 bits platforms -- now using sf::Uint32)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1297 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-02 20:45:53 +00:00
LaurentGom
cf9ffb0d27 Fixed a const issue in SelectorBase::GetSocketReady on Mac OS X
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1296 4e206d99-4929-0410-ac5d-dfc041789085
2009-12-02 18:41:22 +00:00
LaurentGom
35cfe7a8e4 Removed the workaround for shaders parameters (too slow!)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1295 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-29 10:10:10 +00:00
LaurentGom
acfc296150 Removed sfFont_Create() from CSFML
Removed sfText_GetWidth() and sfFont_GetHeight() declarations from SFML.Net (these functions don't exist)

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1294 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-29 10:06:34 +00:00
LaurentGom
642c4fecfa Fixed compile warnings in sfml-graphics
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1293 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-27 08:21:41 +00:00
LaurentGom
092720c0c2 Fixed wrong #include in WindowImplX11.cpp on Linux
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1292 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-27 07:43:25 +00:00
LaurentGom
49fbdb56df Fixed endless recursion in audio initialization
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1291 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-26 22:32:38 +00:00
LaurentGom
d979ca254e Fixed linker errors in sfml-network and csfml-network
Made every read-only pointer "const" in CSFML

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1290 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-26 20:09:57 +00:00
LaurentGom
29ecc552c2 Fixed crashes at startup when using the audio module
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1289 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-26 09:03:00 +00:00
LaurentGom
5669793e9e Updated the API documentation of Utf and String classes
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1288 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-26 08:51:39 +00:00
LaurentGom
ae57e56a98 FS#70 - Add support for unicode strings in sf::Packet
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1287 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-26 08:26:01 +00:00
LaurentGom
78247bd386 FS#90 - Improve Unicode string classes
Added the sf::String class to replace (and enhance) sf::Unicode::Text
FS#138 - Rename sf::String to sf::Text


git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1286 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-26 08:07:38 +00:00
LaurentGom
9f063921c9 Fixed RenderWindow being automatically deactivated sometimes
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1285 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-26 07:33:03 +00:00
remi-k
f3f630142a Minor fix in sf.Window
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1284 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-24 11:25:46 +00:00
LaurentGom
8bc4460d15 Added an automatic Flush() when drawing with a shader (temporary workaround to make shaders parameters work properly)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1283 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-22 22:15:56 +00:00
laurentgom
b735c7f3d1 Fixed a memory leak in sf::Window on Linux
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1282 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-22 10:08:11 +00:00
LaurentGom
2d886a366d Added missing #include in SFML/Window.hpp
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1281 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-21 23:38:25 +00:00
LaurentGom
a32d30c1be Fixed a memory leak in sf::Window implementation on Windows
Synchronized sfml2 with trunk

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1280 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-21 21:39:31 +00:00
LaurentGom
17cf6873aa Fixed a memory leak in sf::Window implementation on Windows
Synchronized sfml2 with trunk

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1280 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-21 21:39:31 +00:00
laurentgom
877df21756 Removed STATIC and DEBUGBUILD options from makefiles, debug symbols are now generated by default and installed to a separate folder
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1279 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-19 23:31:33 +00:00
LaurentGom
548991d665 Fixed error in WGL context creation with anti-aliasing level too high
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1278 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-18 21:36:09 +00:00
LaurentGom
3fb9888b49 Fixed error in WGL context creation with anti-aliasing level too high
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1277 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-18 21:33:23 +00:00
LaurentGom
a5b117eea7 Added sf::Shader files to Code::Blocks projects
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1276 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-12 18:20:14 +00:00
LaurentGom
fb543957ee Fixed the "edge" effect in the Shader sample
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1275 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-12 07:44:11 +00:00
LaurentGom
4c9f2e18cd Forgot source code with last commit :)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1274 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-11 11:54:44 +00:00
LaurentGom
677e0343e2 Updated the shader sample (fixed "blur", added "edge")
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1273 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-11 11:53:20 +00:00
laurentgom
7aabc3c3c1 Fixed the Shader sample on Linux
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1272 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-11 09:55:11 +00:00
laurentgom
15c81ba493 fixed samples makefile on Linux
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1271 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-11 09:50:27 +00:00
LaurentGom
9c8843e85c Fixed error in the "wave" effect of the shader sample
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1270 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-11 07:45:59 +00:00
ceylo
45458cb82d Added sndfile for Intel 64 bits. Using subdir to prevent ld from linking against OpenAL.framework from the parent directory when compiling for x86_64 (which misses the x86_64 arch, only present in the OS OpenAL framework).
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1269 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-07 15:39:55 +00:00
ceylo
c3f18addd6 Added project for building Intel 64 binaries. Window and Graphics packages not usable.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1268 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-06 17:06:55 +00:00
ceylo
3177b7010d Added Intel 64 bits architecture.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1267 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-06 16:57:21 +00:00
ceylo
dc58c4c4c5 Updated project for building System, Audio and Network targets. Window and Graphics packages are not usable.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1266 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-06 16:49:21 +00:00
LaurentGom
0e65f72b61 Fixed wrong blending mode with glBlendFuncSeparate
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1265 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-06 13:22:39 +00:00
LaurentGom
f593ea29e7 Fixed alpha-blended drawables getting incorrect alpha values when rendered through a RenderImage
Replaced internal calls to glewIsSupported with the corresponding constants (faster checks)

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1264 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-06 10:38:07 +00:00
LaurentGom
5d778b2bc4 Improved the API documentation of sf::View
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1263 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-04 16:04:18 +00:00
LaurentGom
0f8b8d6c0f Forgot to remove temporary code in ContextGLX.cpp :)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1262 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-04 08:04:43 +00:00
LaurentGom
8e4c61dd19 Added the context version to ContextSettings
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1261 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-03 15:13:11 +00:00
LaurentGom
9db63151e1 Updated API documentation for sf::Shader
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1260 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-03 14:09:58 +00:00
LaurentGom
683f82b118 Forgot to remove a CSFML debug project in last commit
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1259 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-03 09:37:28 +00:00
LaurentGom
d7bd00afc0 FS#25 - Change sf::PostFx to a more general purpose pixel shader class (sf::Shader)
Updated the PostFx sample, renamed to Shader
Renamed all the static X::CanUseX() functions to X::IsAvailable() to make the API more consistent
Moved .def files from /build/VC200X to /src in CSFML
Minors fixes in CSFML

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1258 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-03 09:04:40 +00:00
LaurentGom
63e07cec84 Fixed a typo in CSFML
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1257 4e206d99-4929-0410-ac5d-dfc041789085
2009-11-01 19:39:56 +00:00
LaurentGom
87b2d5a0d0 Added Close() function to TCP and UDP sockets in CSFML
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1256 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-31 19:23:19 +00:00
LaurentGom
472627f65f Synchronized with trunk
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1255 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-31 18:49:31 +00:00
LaurentGom
78850be8df FS#134 - Fix Event::TextEntered ignoring the key repeat state
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1254 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-31 16:24:10 +00:00
LaurentGom
7d5f354850 Improved the API documentation in the audio module
Added sf::SoundSource as a base class of both sf::Sound and sf::SoundStream

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1253 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-30 16:14:26 +00:00
LaurentGom
3c0d42fdd0 Improved the API documentation in the audio module
Removed the bufferSize parameter from sf::Music constructor

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1252 4e206d99-4929-0410-ac5d-dfc041789085
2009-10-29 16:05:22 +00:00