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:
laurentgom 2009-01-30 14:58:43 +00:00
parent c3687b4018
commit f044357031
47 changed files with 398 additions and 391 deletions

View File

@ -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>

View File

@ -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"
> >

View File

@ -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>

View File

@ -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>

View File

@ -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"
> >

View File

@ -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>

View File

@ -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"
> >

View File

@ -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>

View File

@ -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>

View File

@ -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"
> >

View File

@ -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" />

View File

@ -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>

View 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" />

View File

@ -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" />

View File

@ -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>

View 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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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

View File

@ -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

View 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

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View 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

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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
/// ///

View File

@ -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
/// ///

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View 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

View File

@ -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
/// ///

View File

@ -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
/// ///

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View 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

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View 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

View File

@ -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;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -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>