Commit Graph

3413 Commits

Author SHA1 Message Date
Laurent Gomila
84d75ed487 Fixed Window::SetFramerateLimit 2012-01-31 07:53:02 +01:00
Laurent Gomila
feae26e15b Merge branch 'master' of github.com:LaurentGomila/SFML 2012-01-30 19:43:42 +01:00
Marco Antognini
7417870042 Updates readme.txt of cocoa example 2012-01-30 14:50:11 +01:00
Marco Antognini
2a083ea202 SFML-Cocoa is now part of the cmake-based examples
Removes Xcode project
Fixes a crash and
Silences system alerts in this example
2012-01-30 12:23:18 +01:00
Laurent Gomila
c2c924f512 Minor fixes in comments 2012-01-29 11:39:29 +01:00
Laurent Gomila
4488f7f345 Fixed errors in examples after switching to sf::Time 2012-01-25 10:27:29 +01:00
Marco Antognini
918db11074 fix antialiasing on OS X (close issue #161) 2012-01-25 02:53:07 +01:00
Marco Antognini
ac64a7c995 cmake now install Xcode templates for all users on the system. 2012-01-24 17:28:22 +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
bb7cf47d69 Updated the code of the documentation's main page 2012-01-20 07:53:33 +01:00
Laurent Gomila
2a57a5db98 Merge branch 'master' of github.com:LaurentGomila/SFML 2012-01-19 23:52:04 +01:00
Laurent Gomila
4116ad033c Added the sf::Time class 2012-01-19 23:51:06 +01:00
Marco Antognini
00027eb6c1 Update Xcode templates according to commit c2039e8 (s/IsOpened/IsOpen/) 2012-01-15 22:59:05 +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
9d4c8b26a5 Merge pull request #146 from johnbartholomew/pkg-config-support
Add support for pkg-config
2012-01-10 14:13:16 -08:00
John Bartholomew
2ac7653608 Add pkg-config files, optionally installed by CMake on Linux builds.
The modules provided are:

  - sfml-system
  - sfml-graphics
  - sfml-window
  - sfml-audio
  - sfml-network
  - sfml-all (depends on all the above modules)

They are installed to ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig/
which is the standard location for pkg-config files on Linux.

An example use if using autotools:

    # configure.ac
    AC_INIT([sfml-example],[1.0],[example@example.com])
    AM_INIT_AUTOMAKE([foreign])
    AC_PROG_CXX
    PKG_CHECK_MODULES([sfml],
        [sfml-all >= 2.0.0],
        [], [AC_MSG_ERROR([SFML is required])])
    AC_CONFIG_FILES([Makefile])
    AC_OUTPUT

    # Makefile.am
    bin_PROGRAMS = sfml_example
    sfml_example_SOURCES = src/sfml_example.cpp
    sfml_example_CFLAGS = $(sfml_CFLAGS)
    sfml_example_LIBS = $(sfml_LIBS)

An example if using hand-written Makefiles:

    # Makefile
    sfml-example: src/sfml-example.cpp
        g++ `pkg-config --cflags --libs sfml-all` -o $@ $^
2012-01-10 21:08:20 +00:00
Marco Antognini
adca58059c minor update of Cocoa-SFML example 2012-01-07 16:20:01 +01:00
Marco Antognini
2720532d63 move xcode/ into tools/ 2012-01-07 15:34:11 +01:00
Laurent Gomila
1e34d04aac Minor fix in comments 2012-01-04 20:38:02 +01:00
Laurent Gomila
7a8b32c897 Merge branch 'master' of github.com:LaurentGomila/SFML 2012-01-03 18:03:03 +01:00
Laurent Gomila
91705fe25c The architecture (32/64 bits) is now detected only on Windows 2012-01-03 18:02:18 +01:00
Marco Antognini
de1a4fbeae minor fix in cmake script 2012-01-03 12:35:49 +01:00
Laurent Gomila
88683504ba *Really* solved the last commit problem :) 2012-01-02 07:47:13 +01:00
Laurent Gomila
ab0f84ad3f Solved problem with last commit 2012-01-02 07:45:33 +01:00
Laurent Gomila
9d0a0fe3f2 Improved the definition of options in CMake files, they can now be overriden by a parent CMakeLists.txt 2012-01-01 22:50:44 +01:00
Laurent Gomila
c0af511ed1 Fixed glBindProgramObject used on systems that don't support shaders 2011-12-31 11:42:05 +01:00
Laurent Gomila
2a546411d5 Added error checking in initialization of GLEW 2011-12-31 11:39:06 +01:00
Laurent Gomila
bb6ed5dd29 Added detection of Visual C++ 2011 in CMake files 2011-12-30 20:33:37 +01:00
Laurent Gomila
87b7676b95 Fixed minor error in sf::Font::LoadFromStream 2011-12-30 19:16:20 +01:00
Laurent Gomila
6c3fb426b2 Fixed default color of sf::Text (was black instead of white) 2011-12-29 22:12:21 +01:00
Laurent Gomila
8630c88e70 Removed warning in Shader.cpp 2011-12-29 19:24:47 +01:00
Laurent Gomila
c67148eaf2 Fatal errors in CMake files (such as unsupported system) now abort the configuration step 2011-12-29 16:20:21 +01:00
Laurent Gomila
effe6d4cec Improved FindSFML.cmake: the SFMLDIR variable now has the priority over standard paths when searching SFML headers and libs (implements issue #142) 2011-12-29 16:16:09 +01:00
Laurent Gomila
8de7fca241 Minor improvements to the API documentation 2011-12-28 22:36:09 +01:00
Laurent Gomila
aa633f6f12 Added support for CLang 2011-12-28 22:20:15 +01:00
Laurent Gomila
4107505a05 Made CMake files compatible with VC++ 2011, and other minor improvements 2011-12-28 21:39:23 +01:00
Laurent Gomila
94a9dfbdfb Minor fix in comments 2011-12-26 11:56:27 +01:00
Laurent Gomila
aaa21dfaf6 Corrected the name of some functions/variable 2011-12-25 23:42:43 +01:00
Laurent Gomila
c817f882e6 Enabled v-sync in OpenGL and Pong examples (to make them smoother) 2011-12-25 23:13:13 +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
Marco Antognini
167618a89e sf::Joystick now handles controllers designated as "Gamepad" (Fix #138) 2011-12-25 01:41:18 +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