mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fixed compile errors with sfRenderWindow and sfImage in CSFML
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1004 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
c3687b4018
commit
f044357031
@ -401,6 +401,10 @@
|
|||||||
RelativePath="..\include\SFML\Audio\SoundStream.h"
|
RelativePath="..\include\SFML\Audio\SoundStream.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\include\SFML\Audio\Types.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
</Globals>
|
</Globals>
|
||||||
|
@ -436,6 +436,10 @@
|
|||||||
RelativePath="..\include\SFML\Graphics\String.h"
|
RelativePath="..\include\SFML\Graphics\String.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\include\SFML\Graphics\Types.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\SFML\Graphics\View.cpp"
|
RelativePath="..\src\SFML\Graphics\View.cpp"
|
||||||
>
|
>
|
||||||
|
@ -397,6 +397,10 @@
|
|||||||
RelativePath="..\include\SFML\Network\SocketUDP.h"
|
RelativePath="..\include\SFML\Network\SocketUDP.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\include\SFML\Network\Types.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
</Globals>
|
</Globals>
|
||||||
|
@ -377,6 +377,10 @@
|
|||||||
RelativePath="..\include\SFML\System\Thread.h"
|
RelativePath="..\include\SFML\System\Thread.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\include\SFML\System\Types.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
</Globals>
|
</Globals>
|
||||||
|
@ -361,6 +361,10 @@
|
|||||||
RelativePath="..\include\SFML\Window\Input.h"
|
RelativePath="..\include\SFML\Window\Input.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\include\SFML\Window\Types.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\SFML\Window\VideoMode.cpp"
|
RelativePath="..\src\SFML\Window\VideoMode.cpp"
|
||||||
>
|
>
|
||||||
|
@ -400,6 +400,10 @@
|
|||||||
RelativePath="..\include\SFML\Audio\SoundStream.h"
|
RelativePath="..\include\SFML\Audio\SoundStream.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\include\SFML\Audio\Types.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
</Globals>
|
</Globals>
|
||||||
|
@ -431,6 +431,10 @@
|
|||||||
RelativePath="..\include\SFML\Graphics\String.h"
|
RelativePath="..\include\SFML\Graphics\String.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\include\SFML\Graphics\Types.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\SFML\Graphics\View.cpp"
|
RelativePath="..\src\SFML\Graphics\View.cpp"
|
||||||
>
|
>
|
||||||
|
@ -396,6 +396,10 @@
|
|||||||
RelativePath="..\include\SFML\Network\SocketUDP.h"
|
RelativePath="..\include\SFML\Network\SocketUDP.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\include\SFML\Network\Types.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
</Globals>
|
</Globals>
|
||||||
|
@ -376,6 +376,10 @@
|
|||||||
RelativePath="..\include\SFML\System\Thread.h"
|
RelativePath="..\include\SFML\System\Thread.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\include\SFML\System\Types.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
</Globals>
|
</Globals>
|
||||||
|
@ -360,6 +360,10 @@
|
|||||||
RelativePath="..\include\SFML\Window\Input.h"
|
RelativePath="..\include\SFML\Window\Input.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\include\SFML\Window\Types.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\SFML\Window\VideoMode.cpp"
|
RelativePath="..\src\SFML\Window\VideoMode.cpp"
|
||||||
>
|
>
|
||||||
|
@ -123,6 +123,7 @@
|
|||||||
<Unit filename="..\include\SFML\Audio\SoundRecorder.h" />
|
<Unit filename="..\include\SFML\Audio\SoundRecorder.h" />
|
||||||
<Unit filename="..\include\SFML\Audio\SoundStatus.h" />
|
<Unit filename="..\include\SFML\Audio\SoundStatus.h" />
|
||||||
<Unit filename="..\include\SFML\Audio\SoundStream.h" />
|
<Unit filename="..\include\SFML\Audio\SoundStream.h" />
|
||||||
|
<Unit filename="..\include\SFML\Audio\Types.h" />
|
||||||
<Unit filename="..\src\SFML\Audio\Listener.cpp" />
|
<Unit filename="..\src\SFML\Audio\Listener.cpp" />
|
||||||
<Unit filename="..\src\SFML\Audio\Music.cpp" />
|
<Unit filename="..\src\SFML\Audio\Music.cpp" />
|
||||||
<Unit filename="..\src\SFML\Audio\Sound.cpp" />
|
<Unit filename="..\src\SFML\Audio\Sound.cpp" />
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<Option compiler="gcc" />
|
<Option compiler="gcc" />
|
||||||
<Build>
|
<Build>
|
||||||
<Target title="Debug DLL_Win32">
|
<Target title="Debug DLL_Win32">
|
||||||
<Option output="..\lib\mingw\csfml-graphics-d" prefix_auto="1" extension_auto="1" />
|
<Option output="..\lib\mingw\csfml-graphics-d.dll" prefix_auto="1" extension_auto="1" />
|
||||||
<Option object_output="..\Temp\csfml-graphics\Debug DLL_Win32" />
|
<Option object_output="..\Temp\csfml-graphics\Debug DLL_Win32" />
|
||||||
<Option type="3" />
|
<Option type="3" />
|
||||||
<Option compiler="gcc" />
|
<Option compiler="gcc" />
|
||||||
@ -31,7 +31,7 @@
|
|||||||
</Linker>
|
</Linker>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Release DLL_Win32">
|
<Target title="Release DLL_Win32">
|
||||||
<Option output="..\lib\mingw\csfml-graphics" prefix_auto="1" extension_auto="1" />
|
<Option output="..\lib\mingw\csfml-graphics.dll" prefix_auto="1" extension_auto="1" />
|
||||||
<Option object_output="..\Temp\csfml-graphics\Release DLL_Win32" />
|
<Option object_output="..\Temp\csfml-graphics\Release DLL_Win32" />
|
||||||
<Option external_deps="..\..\lib\mingw\libcsfml-window.a;..\lib\mingw\libcsfml-system.a;" />
|
<Option external_deps="..\..\lib\mingw\libcsfml-window.a;..\lib\mingw\libcsfml-system.a;" />
|
||||||
<Option type="3" />
|
<Option type="3" />
|
||||||
@ -56,7 +56,7 @@
|
|||||||
</Linker>
|
</Linker>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Debug static_Win32">
|
<Target title="Debug static_Win32">
|
||||||
<Option output="..\lib\mingw\libcsfml-graphics-s-d" prefix_auto="1" extension_auto="1" />
|
<Option output="..\lib\mingw\libcsfml-graphics-s-d.a" prefix_auto="1" extension_auto="1" />
|
||||||
<Option working_dir="" />
|
<Option working_dir="" />
|
||||||
<Option object_output="..\Temp\csfml-graphics\Debug static_Win32" />
|
<Option object_output="..\Temp\csfml-graphics\Debug static_Win32" />
|
||||||
<Option external_deps="..\..\lib\mingw\libcsfml-window-s-d.a;..\lib\mingw\libcsfml-system-s-d.a;" />
|
<Option external_deps="..\..\lib\mingw\libcsfml-window-s-d.a;..\lib\mingw\libcsfml-system-s-d.a;" />
|
||||||
@ -83,7 +83,7 @@
|
|||||||
</Linker>
|
</Linker>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Release static_Win32">
|
<Target title="Release static_Win32">
|
||||||
<Option output="..\lib\mingw\libcsfml-graphics-s" prefix_auto="1" extension_auto="1" />
|
<Option output="..\lib\mingw\libcsfml-graphics-s.a" prefix_auto="1" extension_auto="1" />
|
||||||
<Option working_dir="" />
|
<Option working_dir="" />
|
||||||
<Option object_output="..\Temp\csfml-graphics\Release static_Win32" />
|
<Option object_output="..\Temp\csfml-graphics\Release static_Win32" />
|
||||||
<Option external_deps="..\..\lib\mingw\libcsfml-window-s.a;..\lib\mingw\libcsfml-system-s.a;" />
|
<Option external_deps="..\..\lib\mingw\libcsfml-window-s.a;..\lib\mingw\libcsfml-system-s.a;" />
|
||||||
@ -132,6 +132,7 @@
|
|||||||
<Unit filename="..\include\SFML\Graphics\Shape.h" />
|
<Unit filename="..\include\SFML\Graphics\Shape.h" />
|
||||||
<Unit filename="..\include\SFML\Graphics\Sprite.h" />
|
<Unit filename="..\include\SFML\Graphics\Sprite.h" />
|
||||||
<Unit filename="..\include\SFML\Graphics\String.h" />
|
<Unit filename="..\include\SFML\Graphics\String.h" />
|
||||||
|
<Unit filename="..\include\SFML\Graphics\Types.h" />
|
||||||
<Unit filename="..\include\SFML\Graphics\View.h" />
|
<Unit filename="..\include\SFML\Graphics\View.h" />
|
||||||
<Unit filename="..\src\SFML\Graphics\Color.cpp" />
|
<Unit filename="..\src\SFML\Graphics\Color.cpp" />
|
||||||
<Unit filename="..\src\SFML\Graphics\Font.cpp" />
|
<Unit filename="..\src\SFML\Graphics\Font.cpp" />
|
||||||
@ -145,7 +146,6 @@
|
|||||||
<Unit filename="..\src\SFML\Graphics\View.cpp" />
|
<Unit filename="..\src\SFML\Graphics\View.cpp" />
|
||||||
<Extensions>
|
<Extensions>
|
||||||
<code_completion />
|
<code_completion />
|
||||||
<debugger />
|
|
||||||
</Extensions>
|
</Extensions>
|
||||||
</Project>
|
</Project>
|
||||||
</CodeBlocks_project_file>
|
</CodeBlocks_project_file>
|
||||||
|
@ -114,6 +114,7 @@
|
|||||||
<Unit filename="..\include\SFML\Network\SocketStatus.h" />
|
<Unit filename="..\include\SFML\Network\SocketStatus.h" />
|
||||||
<Unit filename="..\include\SFML\Network\SocketTCP.h" />
|
<Unit filename="..\include\SFML\Network\SocketTCP.h" />
|
||||||
<Unit filename="..\include\SFML\Network\SocketUDP.h" />
|
<Unit filename="..\include\SFML\Network\SocketUDP.h" />
|
||||||
|
<Unit filename="..\include\SFML\Network\Types.h" />
|
||||||
<Unit filename="..\src\SFML\Network\Ftp.cpp" />
|
<Unit filename="..\src\SFML\Network\Ftp.cpp" />
|
||||||
<Unit filename="..\src\SFML\Network\Http.cpp" />
|
<Unit filename="..\src\SFML\Network\Http.cpp" />
|
||||||
<Unit filename="..\src\SFML\Network\IPAddress.cpp" />
|
<Unit filename="..\src\SFML\Network\IPAddress.cpp" />
|
||||||
|
@ -104,6 +104,7 @@
|
|||||||
<Unit filename="..\include\SFML\System\Randomizer.h" />
|
<Unit filename="..\include\SFML\System\Randomizer.h" />
|
||||||
<Unit filename="..\include\SFML\System\Sleep.h" />
|
<Unit filename="..\include\SFML\System\Sleep.h" />
|
||||||
<Unit filename="..\include\SFML\System\Thread.h" />
|
<Unit filename="..\include\SFML\System\Thread.h" />
|
||||||
|
<Unit filename="..\include\SFML\System\Types.h" />
|
||||||
<Unit filename="..\src\SFML\System\Clock.cpp" />
|
<Unit filename="..\src\SFML\System\Clock.cpp" />
|
||||||
<Unit filename="..\src\SFML\System\Mutex.cpp" />
|
<Unit filename="..\src\SFML\System\Mutex.cpp" />
|
||||||
<Unit filename="..\src\SFML\System\Randomizer.cpp" />
|
<Unit filename="..\src\SFML\System\Randomizer.cpp" />
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<Option compiler="gcc" />
|
<Option compiler="gcc" />
|
||||||
<Build>
|
<Build>
|
||||||
<Target title="Debug DLL_Win32">
|
<Target title="Debug DLL_Win32">
|
||||||
<Option output="..\lib\mingw\csfml-window-d" prefix_auto="1" extension_auto="1" />
|
<Option output="..\lib\mingw\csfml-window-d.dll" prefix_auto="1" extension_auto="1" />
|
||||||
<Option object_output="..\Temp\csfml-window\Debug DLL_Win32" />
|
<Option object_output="..\Temp\csfml-window\Debug DLL_Win32" />
|
||||||
<Option external_deps="..\..\lib\mingw\csfml-system-d.a;" />
|
<Option external_deps="..\..\lib\mingw\csfml-system-d.a;" />
|
||||||
<Option type="3" />
|
<Option type="3" />
|
||||||
@ -31,7 +31,7 @@
|
|||||||
</Linker>
|
</Linker>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Release DLL_Win32">
|
<Target title="Release DLL_Win32">
|
||||||
<Option output="..\lib\mingw\csfml-window" prefix_auto="1" extension_auto="1" />
|
<Option output="..\lib\mingw\csfml-window.dll" prefix_auto="1" extension_auto="1" />
|
||||||
<Option object_output="..\Temp\csfml-window\Release DLL_Win32" />
|
<Option object_output="..\Temp\csfml-window\Release DLL_Win32" />
|
||||||
<Option external_deps="..\..\lib\mingw\csfml-system.a;" />
|
<Option external_deps="..\..\lib\mingw\csfml-system.a;" />
|
||||||
<Option type="3" />
|
<Option type="3" />
|
||||||
@ -55,7 +55,7 @@
|
|||||||
</Linker>
|
</Linker>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Debug static_Win32">
|
<Target title="Debug static_Win32">
|
||||||
<Option output="..\lib\mingw\libcsfml-window-s-d" prefix_auto="1" extension_auto="1" />
|
<Option output="..\lib\mingw\libcsfml-window-s-d.a" prefix_auto="1" extension_auto="1" />
|
||||||
<Option working_dir="" />
|
<Option working_dir="" />
|
||||||
<Option object_output="..\Temp\csfml-window\Debug static_Win32" />
|
<Option object_output="..\Temp\csfml-window\Debug static_Win32" />
|
||||||
<Option external_deps="..\..\lib\mingw\csfml-system-s-d.a;" />
|
<Option external_deps="..\..\lib\mingw\csfml-system-s-d.a;" />
|
||||||
@ -80,7 +80,7 @@
|
|||||||
</Linker>
|
</Linker>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Release static_Win32">
|
<Target title="Release static_Win32">
|
||||||
<Option output="..\lib\mingw\libcsfml-window-s" prefix_auto="1" extension_auto="1" />
|
<Option output="..\lib\mingw\libcsfml-window-s.a" prefix_auto="1" extension_auto="1" />
|
||||||
<Option working_dir="" />
|
<Option working_dir="" />
|
||||||
<Option object_output="..\Temp\csfml-window\Release static_Win32" />
|
<Option object_output="..\Temp\csfml-window\Release static_Win32" />
|
||||||
<Option external_deps="..\..\lib\mingw\csfml-system-s.a;" />
|
<Option external_deps="..\..\lib\mingw\csfml-system-s.a;" />
|
||||||
@ -120,6 +120,7 @@
|
|||||||
<Unit filename="..\include\SFML\Window\Context.h" />
|
<Unit filename="..\include\SFML\Window\Context.h" />
|
||||||
<Unit filename="..\include\SFML\Window\Event.h" />
|
<Unit filename="..\include\SFML\Window\Event.h" />
|
||||||
<Unit filename="..\include\SFML\Window\Input.h" />
|
<Unit filename="..\include\SFML\Window\Input.h" />
|
||||||
|
<Unit filename="..\include\SFML\Window\Types.h" />
|
||||||
<Unit filename="..\include\SFML\Window\VideoMode.h" />
|
<Unit filename="..\include\SFML\Window\VideoMode.h" />
|
||||||
<Unit filename="..\include\SFML\Window\Window.h" />
|
<Unit filename="..\include\SFML\Window\Window.h" />
|
||||||
<Unit filename="..\include\SFML\Window\WindowHandle.h" />
|
<Unit filename="..\include\SFML\Window\WindowHandle.h" />
|
||||||
@ -129,7 +130,6 @@
|
|||||||
<Unit filename="..\src\SFML\Window\Window.cpp" />
|
<Unit filename="..\src\SFML\Window\Window.cpp" />
|
||||||
<Extensions>
|
<Extensions>
|
||||||
<code_completion />
|
<code_completion />
|
||||||
<debugger />
|
|
||||||
</Extensions>
|
</Extensions>
|
||||||
</Project>
|
</Project>
|
||||||
</CodeBlocks_project_file>
|
</CodeBlocks_project_file>
|
||||||
|
@ -30,13 +30,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Audio/SoundStatus.h>
|
#include <SFML/Audio/SoundStatus.h>
|
||||||
|
#include <SFML/Audio/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfMusic defines a big sound played using streaming,
|
|
||||||
/// so usually what we call a music :)
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfMusic sfMusic;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -29,15 +29,8 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Audio/SoundBuffer.h>
|
|
||||||
#include <SFML/Audio/SoundStatus.h>
|
#include <SFML/Audio/SoundStatus.h>
|
||||||
|
#include <SFML/Audio/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfSound defines the properties of the sound such as position,
|
|
||||||
/// volume, pitch, etc.
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfSound sfSound;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -29,13 +29,7 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
|
#include <SFML/Audio/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfSoundBuffer is the low-level for loading and manipulating
|
|
||||||
/// sound buffers
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfSoundBuffer sfSoundBuffer;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -29,14 +29,7 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Audio/SoundBuffer.h>
|
#include <SFML/Audio/Types.h>
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// Specialized sfSoundRecorder which saves the captured
|
|
||||||
/// audio data into a sound buffer
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfSoundBufferRecorder sfSoundBufferRecorder;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -29,14 +29,9 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Audio/SoundBuffer.h>
|
#include <SFML/Audio/Types.h>
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfSoundRecorder is an interface for capturing sound data
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfSoundRecorder sfSoundRecorder;
|
|
||||||
|
|
||||||
typedef sfBool (*sfSoundRecorderStartCallback)(void*); ///< Type of the callback used when starting a capture
|
typedef sfBool (*sfSoundRecorderStartCallback)(void*); ///< Type of the callback used when starting a capture
|
||||||
typedef sfBool (*sfSoundRecorderProcessCallback)(const sfInt16*, size_t, void*); ///< Type of the callback used to process audio data
|
typedef sfBool (*sfSoundRecorderProcessCallback)(const sfInt16*, size_t, void*); ///< Type of the callback used to process audio data
|
||||||
typedef void (*sfSoundRecorderStopCallback)(void*); ///< Type of the callback used when stopping a capture
|
typedef void (*sfSoundRecorderStopCallback)(void*); ///< Type of the callback used when stopping a capture
|
||||||
|
@ -30,16 +30,9 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Audio/SoundStatus.h>
|
#include <SFML/Audio/SoundStatus.h>
|
||||||
|
#include <SFML/Audio/Types.h>
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfSoundStream is a streamed sound, ie samples are acquired
|
|
||||||
/// while the sound is playing. Use it for big sound that would
|
|
||||||
/// require hundreds of MB in memory (see sfMusic),
|
|
||||||
/// or for streaming sound from the network
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfSoundStream sfSoundStream;
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// sfSoundStreamChunk defines the data to fill by the
|
/// sfSoundStreamChunk defines the data to fill by the
|
||||||
/// OnGetData callback
|
/// OnGetData callback
|
||||||
|
37
CSFML/include/SFML/Audio/Types.h
Normal file
37
CSFML/include/SFML/Audio/Types.h
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// SFML - Simple and Fast Multimedia Library
|
||||||
|
// Copyright (C) 2007-2008-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||||
|
//
|
||||||
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
//
|
||||||
|
// Permission is granted to anyone to use this software for any purpose,
|
||||||
|
// including commercial applications, and to alter it and redistribute it freely,
|
||||||
|
// subject to the following restrictions:
|
||||||
|
//
|
||||||
|
// 1. The origin of this software must not be misrepresented;
|
||||||
|
// you must not claim that you wrote the original software.
|
||||||
|
// If you use this software in a product, an acknowledgment
|
||||||
|
// in the product documentation would be appreciated but is not required.
|
||||||
|
//
|
||||||
|
// 2. Altered source versions must be plainly marked as such,
|
||||||
|
// and must not be misrepresented as being the original software.
|
||||||
|
//
|
||||||
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
|
//
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef SFML_AUDIO_TYPES_H
|
||||||
|
#define SFML_AUDIO_TYPES_H
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct sfMusic sfMusic;
|
||||||
|
typedef struct sfSound sfSound;
|
||||||
|
typedef struct sfSoundBuffer sfSoundBuffer;
|
||||||
|
typedef struct sfSoundBufferRecorder sfSoundBufferRecorder;
|
||||||
|
typedef struct sfSoundRecorder sfSoundRecorder;
|
||||||
|
typedef struct sfSoundStream sfSoundStream;
|
||||||
|
|
||||||
|
|
||||||
|
#endif // SFML_AUDIO_TYPES_H
|
@ -29,13 +29,7 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Graphics/Glyph.h>
|
#include <SFML/Graphics/Glyph.h>
|
||||||
|
#include <SFML/Graphics/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfFont is the low-level class for loading and
|
|
||||||
/// manipulating character fonts (see sfString)
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfFont sfFont;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -31,16 +31,7 @@
|
|||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Graphics/Color.h>
|
#include <SFML/Graphics/Color.h>
|
||||||
#include <SFML/Graphics/Rect.h>
|
#include <SFML/Graphics/Rect.h>
|
||||||
|
#include <SFML/Graphics/Types.h>
|
||||||
|
|
||||||
typedef struct sfRenderWindow sfRenderWindow;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfImage is the low-level class for loading and
|
|
||||||
/// manipulating images
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfImage sfImage;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -29,13 +29,7 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Graphics/Image.h>
|
#include <SFML/Graphics/Types.h>
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// PostFX is used to apply a post effect to a window
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfPostFX sfPostFX;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -30,25 +30,12 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Graphics/Color.h>
|
#include <SFML/Graphics/Color.h>
|
||||||
#include <SFML/Graphics/Image.h>
|
|
||||||
#include <SFML/Graphics/PostFX.h>
|
|
||||||
#include <SFML/Graphics/Rect.h>
|
#include <SFML/Graphics/Rect.h>
|
||||||
#include <SFML/Graphics/Shape.h>
|
#include <SFML/Graphics/Types.h>
|
||||||
#include <SFML/Graphics/Sprite.h>
|
|
||||||
#include <SFML/Graphics/String.h>
|
|
||||||
#include <SFML/Graphics/View.h>
|
|
||||||
#include <SFML/Window/Event.h>
|
#include <SFML/Window/Event.h>
|
||||||
#include <SFML/Window/Input.h>
|
|
||||||
#include <SFML/Window/VideoMode.h>
|
#include <SFML/Window/VideoMode.h>
|
||||||
#include <SFML/Window/Window.h>
|
|
||||||
#include <SFML/Window/WindowHandle.h>
|
#include <SFML/Window/WindowHandle.h>
|
||||||
|
#include <SFML/Window/Window.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfRenderWindow is a simple wrapper for sfWindow that
|
|
||||||
/// allows easy 2D rendering
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfRenderWindow sfRenderWindow;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -31,14 +31,7 @@
|
|||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Graphics/BlendMode.h>
|
#include <SFML/Graphics/BlendMode.h>
|
||||||
#include <SFML/Graphics/Color.h>
|
#include <SFML/Graphics/Color.h>
|
||||||
|
#include <SFML/Graphics/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfShape defines a drawable convex Shape ; it also defines
|
|
||||||
/// helper functions to draw simple Shapes like
|
|
||||||
/// lines, rectangles, circles, etc.
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfShape sfShape;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -31,15 +31,8 @@
|
|||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Graphics/BlendMode.h>
|
#include <SFML/Graphics/BlendMode.h>
|
||||||
#include <SFML/Graphics/Color.h>
|
#include <SFML/Graphics/Color.h>
|
||||||
#include <SFML/Graphics/Image.h>
|
|
||||||
#include <SFML/Graphics/Rect.h>
|
#include <SFML/Graphics/Rect.h>
|
||||||
|
#include <SFML/Graphics/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfSprite defines a sprite : texture, transformations,
|
|
||||||
/// color, and draw on screen
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfSprite sfSprite;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -31,14 +31,8 @@
|
|||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Graphics/BlendMode.h>
|
#include <SFML/Graphics/BlendMode.h>
|
||||||
#include <SFML/Graphics/Color.h>
|
#include <SFML/Graphics/Color.h>
|
||||||
#include <SFML/Graphics/Font.h>
|
|
||||||
#include <SFML/Graphics/Rect.h>
|
#include <SFML/Graphics/Rect.h>
|
||||||
|
#include <SFML/Graphics/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfString defines a graphical 2D text, that can be drawn on screen
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfString sfString;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
39
CSFML/include/SFML/Graphics/Types.h
Normal file
39
CSFML/include/SFML/Graphics/Types.h
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// SFML - Simple and Fast Multimedia Library
|
||||||
|
// Copyright (C) 2007-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||||
|
//
|
||||||
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
//
|
||||||
|
// Permission is granted to anyone to use this software for any purpose,
|
||||||
|
// including commercial applications, and to alter it and redistribute it freely,
|
||||||
|
// subject to the following restrictions:
|
||||||
|
//
|
||||||
|
// 1. The origin of this software must not be misrepresented;
|
||||||
|
// you must not claim that you wrote the original software.
|
||||||
|
// If you use this software in a product, an acknowledgment
|
||||||
|
// in the product documentation would be appreciated but is not required.
|
||||||
|
//
|
||||||
|
// 2. Altered source versions must be plainly marked as such,
|
||||||
|
// and must not be misrepresented as being the original software.
|
||||||
|
//
|
||||||
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
|
//
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef SFML_GRAPHICS_TYPES_H
|
||||||
|
#define SFML_GRAPHICS_TYPES_H
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct sfFont sfFont;
|
||||||
|
typedef struct sfImage sfImage;
|
||||||
|
typedef struct sfPostFX sfPostFX;
|
||||||
|
typedef struct sfRenderWindow sfRenderWindow;
|
||||||
|
typedef struct sfShape sfShape;
|
||||||
|
typedef struct sfSprite sfSprite;
|
||||||
|
typedef struct sfString sfString;
|
||||||
|
typedef struct sfView sfView;
|
||||||
|
|
||||||
|
|
||||||
|
#endif // SFML_GRAPHICS_TYPES_H
|
@ -30,13 +30,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Graphics/Rect.h>
|
#include <SFML/Graphics/Rect.h>
|
||||||
|
#include <SFML/Graphics/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// This class defines a view (position, size, etc.) ;
|
|
||||||
/// you can consider it as a 2D camera
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfView sfView;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Network/IPAddress.h>
|
#include <SFML/Network/IPAddress.h>
|
||||||
|
#include <SFML/Network/Types.h>
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
@ -110,16 +111,6 @@ enum sfFtpStatus
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfFtpListingResponse wraps a FTP directory listing response,
|
|
||||||
/// which is basically :
|
|
||||||
/// - a status code
|
|
||||||
/// - a message
|
|
||||||
/// - a list of directory and files
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfFtpListingResponse sfFtpListingResponse;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Destroy an existing Ftp listing response
|
/// Destroy an existing Ftp listing response
|
||||||
///
|
///
|
||||||
@ -180,16 +171,6 @@ CSFML_API size_t sfFtpListingResponse_GetCount(sfFtpListingResponse* FtpListingR
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_API const char* sfFtpListingResponse_GetFilename(sfFtpListingResponse* FtpListingResponse, size_t Index);
|
CSFML_API const char* sfFtpListingResponse_GetFilename(sfFtpListingResponse* FtpListingResponse, size_t Index);
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfFtpDirectoryResponse wraps a FTP directory response, which is basically :
|
|
||||||
/// - a status code
|
|
||||||
/// - a message
|
|
||||||
/// - a directory name
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfFtpDirectoryResponse sfFtpDirectoryResponse;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Destroy an existing Ftp directory response
|
/// Destroy an existing Ftp directory response
|
||||||
///
|
///
|
||||||
@ -240,14 +221,6 @@ CSFML_API const char* sfFtpDirectoryResponse_GetMessage(sfFtpDirectoryResponse*
|
|||||||
CSFML_API const char* sfFtpDirectoryResponse_GetDirectory(sfFtpDirectoryResponse* FtpDirectoryResponse);
|
CSFML_API const char* sfFtpDirectoryResponse_GetDirectory(sfFtpDirectoryResponse* FtpDirectoryResponse);
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfFtpResponse wraps a FTP response, which is basically :
|
|
||||||
/// - a status code
|
|
||||||
/// - a message
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfFtpResponse sfFtpResponse;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Destroy an existing Ftp response
|
/// Destroy an existing Ftp response
|
||||||
///
|
///
|
||||||
@ -287,16 +260,6 @@ CSFML_API sfFtpStatus sfFtpResponse_GetStatus(sfFtpResponse* FtpResponse);
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_API const char* sfFtpResponse_GetMessage(sfFtpResponse* FtpResponse);
|
CSFML_API const char* sfFtpResponse_GetMessage(sfFtpResponse* FtpResponse);
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfFtp provides methods for manipulating the FTP
|
|
||||||
/// protocol (described in RFC 959).
|
|
||||||
/// It provides easy access and transfers to remote
|
|
||||||
/// directories and files on a FTP server
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfFtp sfFtp;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Construct a new Ftp
|
/// Construct a new Ftp
|
||||||
///
|
///
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
|
#include <SFML/Network/Types.h>
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
@ -78,14 +79,6 @@ enum sfHttpStatus
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfHttpRequest wraps an HTTP request, which is basically :
|
|
||||||
/// - a header with a method, a target URI, and a set of field/value pairs
|
|
||||||
/// - an optional body (for POST requests)
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfHttpRequest sfHttpRequest;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Construct a new Http request
|
/// Construct a new Http request
|
||||||
///
|
///
|
||||||
@ -154,15 +147,6 @@ CSFML_API void sfHttpRequest_SetHttpVersion(sfHttpRequest* HttpRequest, unsigned
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_API void sfHttpRequest_SetBody(sfHttpRequest* HttpRequest, const char* Body);
|
CSFML_API void sfHttpRequest_SetBody(sfHttpRequest* HttpRequest, const char* Body);
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfHttpResponse wraps an HTTP response, which is basically :
|
|
||||||
/// - a header with a status code and a set of field/value pairs
|
|
||||||
/// - a body (the content of the requested resource)
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfHttpResponse sfHttpResponse;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Destroy an existing Http response
|
/// Destroy an existing Http response
|
||||||
///
|
///
|
||||||
@ -226,15 +210,6 @@ CSFML_API unsigned int sfHttpResponse_GetMinorVersion(sfHttpResponse* HttpRespon
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_API const char* sfHttpResponse_GetBody(sfHttpResponse* HttpResponse);
|
CSFML_API const char* sfHttpResponse_GetBody(sfHttpResponse* HttpResponse);
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfHttp provides methods for manipulating the HTTP
|
|
||||||
/// protocol (described in RFC 1945).
|
|
||||||
/// It can connect to a website, get its files, send requests, etc.
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfHttp sfHttp;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Construct a new Http object
|
/// Construct a new Http object
|
||||||
///
|
///
|
||||||
|
@ -29,12 +29,7 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
|
#include <SFML/Network/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfPacket wraps data to send / to receive through the network
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfPacket sfPacket;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -29,16 +29,7 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Network/SocketTCP.h>
|
#include <SFML/Network/Types.h>
|
||||||
#include <SFML/Network/SocketUDP.h>
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfSelectorTCP and sfSelectorUDP allow reading from multiple sockets
|
|
||||||
/// without blocking. It's a kind of multiplexer
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfSelectorTCP sfSelectorTCP;
|
|
||||||
typedef struct sfSelectorUDP sfSelectorUDP;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -30,15 +30,8 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Network/IPAddress.h>
|
#include <SFML/Network/IPAddress.h>
|
||||||
#include <SFML/Network/Packet.h>
|
|
||||||
#include <SFML/Network/SocketStatus.h>
|
#include <SFML/Network/SocketStatus.h>
|
||||||
|
#include <SFML/Network/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// SocketTCP wraps a socket using TCP protocol to
|
|
||||||
/// send data safely (but a bit slower)
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfSocketTCP sfSocketTCP;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -30,15 +30,8 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Network/IPAddress.h>
|
#include <SFML/Network/IPAddress.h>
|
||||||
#include <SFML/Network/Packet.h>
|
|
||||||
#include <SFML/Network/SocketStatus.h>
|
#include <SFML/Network/SocketStatus.h>
|
||||||
|
#include <SFML/Network/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfSocketUDP wraps a socket using UDP protocol to
|
|
||||||
/// send data fastly (but with less safety)
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfSocketUDP sfSocketUDP;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
43
CSFML/include/SFML/Network/Types.h
Normal file
43
CSFML/include/SFML/Network/Types.h
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// SFML - Simple and Fast Multimedia Library
|
||||||
|
// Copyright (C) 2007-2008-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||||
|
//
|
||||||
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
//
|
||||||
|
// Permission is granted to anyone to use this software for any purpose,
|
||||||
|
// including commercial applications, and to alter it and redistribute it freely,
|
||||||
|
// subject to the following restrictions:
|
||||||
|
//
|
||||||
|
// 1. The origin of this software must not be misrepresented;
|
||||||
|
// you must not claim that you wrote the original software.
|
||||||
|
// If you use this software in a product, an acknowledgment
|
||||||
|
// in the product documentation would be appreciated but is not required.
|
||||||
|
//
|
||||||
|
// 2. Altered source versions must be plainly marked as such,
|
||||||
|
// and must not be misrepresented as being the original software.
|
||||||
|
//
|
||||||
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
|
//
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef SFML_NETWORK_TYPES_H
|
||||||
|
#define SFML_NETWORK_TYPES_H
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct sfFtpDirectoryResponse sfFtpDirectoryResponse;
|
||||||
|
typedef struct sfFtpListingResponse sfFtpListingResponse;
|
||||||
|
typedef struct sfFtpResponse sfFtpResponse;
|
||||||
|
typedef struct sfFtp sfFtp;
|
||||||
|
typedef struct sfHttpRequest sfHttpRequest;
|
||||||
|
typedef struct sfHttpResponse sfHttpResponse;
|
||||||
|
typedef struct sfHttp sfHttp;
|
||||||
|
typedef struct sfPacket sfPacket;
|
||||||
|
typedef struct sfSelectorTCP sfSelectorTCP;
|
||||||
|
typedef struct sfSelectorUDP sfSelectorUDP;
|
||||||
|
typedef struct sfSocketTCP sfSocketTCP;
|
||||||
|
typedef struct sfSocketUDP sfSocketUDP;
|
||||||
|
|
||||||
|
|
||||||
|
#endif // SFML_NETWORK_TYPES_H
|
@ -29,13 +29,9 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
|
#include <SFML/System/Types.h>
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfClock is an utility structure for manipulating time
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfClock sfClock;
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Create a new clock and start it
|
/// Create a new clock and start it
|
||||||
///
|
///
|
||||||
|
@ -29,15 +29,9 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
|
#include <SFML/System/Types.h>
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfMutex defines a mutex (MUTual EXclusion) object,
|
|
||||||
/// that allows a thread to lock critical instructions
|
|
||||||
/// to avoid simultaneous access with other threads.
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfMutex sfMutex;
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Create a new mutex
|
/// Create a new mutex
|
||||||
///
|
///
|
||||||
|
@ -29,12 +29,7 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
|
#include <SFML/System/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfThread defines an easy way to manipulate a thread
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfThread sfThread;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
34
CSFML/include/SFML/System/Types.h
Normal file
34
CSFML/include/SFML/System/Types.h
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// SFML - Simple and Fast Multimedia Library
|
||||||
|
// Copyright (C) 2007-2008-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||||
|
//
|
||||||
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
//
|
||||||
|
// Permission is granted to anyone to use this software for any purpose,
|
||||||
|
// including commercial applications, and to alter it and redistribute it freely,
|
||||||
|
// subject to the following restrictions:
|
||||||
|
//
|
||||||
|
// 1. The origin of this software must not be misrepresented;
|
||||||
|
// you must not claim that you wrote the original software.
|
||||||
|
// If you use this software in a product, an acknowledgment
|
||||||
|
// in the product documentation would be appreciated but is not required.
|
||||||
|
//
|
||||||
|
// 2. Altered source versions must be plainly marked as such,
|
||||||
|
// and must not be misrepresented as being the original software.
|
||||||
|
//
|
||||||
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
|
//
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef SFML_SYSTEM_TYPES_H
|
||||||
|
#define SFML_SYSTEM_TYPES_H
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct sfClock sfClock;
|
||||||
|
typedef struct sfMutex sfMutex;
|
||||||
|
typedef struct sfThread sfThread;
|
||||||
|
|
||||||
|
|
||||||
|
#endif // SFML_SYSTEM_TYPES_H
|
@ -29,14 +29,7 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
|
#include <SFML/Window/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// Class wrapping an OpenGL context with no window.
|
|
||||||
/// This class is for internal use mainly, it is required
|
|
||||||
/// to solve tricky problems involving multi-threading
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfContext sfContext;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -30,14 +30,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Window/Event.h>
|
#include <SFML/Window/Event.h>
|
||||||
|
#include <SFML/Window/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfInput handles real-time input from keyboard and mouse.
|
|
||||||
/// Use it instead of events to handle continuous moves and more
|
|
||||||
/// game-friendly inputs
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfInput sfInput;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
34
CSFML/include/SFML/Window/Types.h
Normal file
34
CSFML/include/SFML/Window/Types.h
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// SFML - Simple and Fast Multimedia Library
|
||||||
|
// Copyright (C) 2007-2008-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||||
|
//
|
||||||
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
//
|
||||||
|
// Permission is granted to anyone to use this software for any purpose,
|
||||||
|
// including commercial applications, and to alter it and redistribute it freely,
|
||||||
|
// subject to the following restrictions:
|
||||||
|
//
|
||||||
|
// 1. The origin of this software must not be misrepresented;
|
||||||
|
// you must not claim that you wrote the original software.
|
||||||
|
// If you use this software in a product, an acknowledgment
|
||||||
|
// in the product documentation would be appreciated but is not required.
|
||||||
|
//
|
||||||
|
// 2. Altered source versions must be plainly marked as such,
|
||||||
|
// and must not be misrepresented as being the original software.
|
||||||
|
//
|
||||||
|
// 3. This notice may not be removed or altered from any source distribution.
|
||||||
|
//
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef SFML_WINDOW_TYPES_H
|
||||||
|
#define SFML_WINDOW_TYPES_H
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct sfContext sfContext;
|
||||||
|
typedef struct sfInput sfInput;
|
||||||
|
typedef struct sfWindow sfWindow;
|
||||||
|
|
||||||
|
|
||||||
|
#endif // SFML_WINDOW_TYPES_H
|
@ -30,16 +30,9 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Config.h>
|
#include <SFML/Config.h>
|
||||||
#include <SFML/Window/Event.h>
|
#include <SFML/Window/Event.h>
|
||||||
#include <SFML/Window/Input.h>
|
|
||||||
#include <SFML/Window/VideoMode.h>
|
#include <SFML/Window/VideoMode.h>
|
||||||
#include <SFML/Window/WindowHandle.h>
|
#include <SFML/Window/WindowHandle.h>
|
||||||
|
#include <SFML/Window/Types.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// sfWindow is a rendering window ; it can create a new window
|
|
||||||
/// or connect to an existing one
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef struct sfWindow sfWindow;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Graphics/String.h>
|
#include <SFML/Graphics/String.h>
|
||||||
|
#include <SFML/Graphics/Font.h>
|
||||||
#include <SFML/Graphics/String.hpp>
|
#include <SFML/Graphics/String.hpp>
|
||||||
#include <SFML/Graphics/Color.hpp>
|
#include <SFML/Graphics/Color.hpp>
|
||||||
#include <SFML/Graphics/Rect.hpp>
|
#include <SFML/Graphics/Rect.hpp>
|
||||||
|
Loading…
Reference in New Issue
Block a user