mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Added RenderImage
Cleaned internal CSFML code Synchronized with trunk git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1135 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
commit
2deb8bd021
@ -216,6 +216,10 @@
|
||||
RelativePath="..\..\include\SFML\Audio\Music.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Audio\MusicStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Audio\Sound.cpp"
|
||||
>
|
||||
@ -240,6 +244,14 @@
|
||||
RelativePath="..\..\include\SFML\Audio\SoundBufferRecorder.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Audio\SoundBufferRecorderStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Audio\SoundBufferStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Audio\SoundRecorder.cpp"
|
||||
>
|
||||
@ -248,6 +260,10 @@
|
||||
RelativePath="..\..\include\SFML\Audio\SoundRecorder.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Audio\SoundRecorderStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\Audio\SoundStatus.h"
|
||||
>
|
||||
@ -260,6 +276,14 @@
|
||||
RelativePath="..\..\include\SFML\Audio\SoundStream.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Audio\SoundStreamStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Audio\SoundStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\Audio\Types.h"
|
||||
>
|
||||
|
@ -166,6 +166,22 @@ EXPORTS
|
||||
sfString_GetStyle
|
||||
sfString_GetCharacterPos
|
||||
sfString_GetRect
|
||||
sfRenderImage_Create
|
||||
sfRenderImage_Destroy
|
||||
sfRenderImage_GetWidth
|
||||
sfRenderImage_GetHeight
|
||||
sfRenderImage_SetActive
|
||||
sfRenderImage_DrawPostFX
|
||||
sfRenderImage_DrawSprite
|
||||
sfRenderImage_DrawShape
|
||||
sfRenderImage_DrawString
|
||||
sfRenderImage_Clear
|
||||
sfRenderImage_SetView
|
||||
sfRenderImage_GetView
|
||||
sfRenderImage_GetDefaultView
|
||||
sfRenderImage_PreserveOpenGLStates
|
||||
sfRenderImage_GetImage
|
||||
sfRenderImage_CanUseRenderImage
|
||||
sfRenderWindow_Create
|
||||
sfRenderWindow_CreateFromHandle
|
||||
sfRenderWindow_Destroy
|
||||
|
@ -166,6 +166,22 @@ EXPORTS
|
||||
sfString_GetStyle
|
||||
sfString_GetCharacterPos
|
||||
sfString_GetRect
|
||||
sfRenderImage_Create
|
||||
sfRenderImage_Destroy
|
||||
sfRenderImage_GetWidth
|
||||
sfRenderImage_GetHeight
|
||||
sfRenderImage_SetActive
|
||||
sfRenderImage_DrawPostFX
|
||||
sfRenderImage_DrawSprite
|
||||
sfRenderImage_DrawShape
|
||||
sfRenderImage_DrawString
|
||||
sfRenderImage_Clear
|
||||
sfRenderImage_SetView
|
||||
sfRenderImage_GetView
|
||||
sfRenderImage_GetDefaultView
|
||||
sfRenderImage_PreserveOpenGLStates
|
||||
sfRenderImage_GetImage
|
||||
sfRenderImage_CanUseRenderImage
|
||||
sfRenderWindow_Create
|
||||
sfRenderWindow_CreateFromHandle
|
||||
sfRenderWindow_Destroy
|
||||
|
@ -229,6 +229,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\Font.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\FontStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\Graphics\Glyph.h"
|
||||
>
|
||||
@ -241,6 +245,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\Image.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\ImageStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\PostFX.cpp"
|
||||
>
|
||||
@ -249,6 +257,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\PostFX.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\PostFXStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\Rect.cpp"
|
||||
>
|
||||
@ -257,6 +269,18 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\Rect.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\RenderImage.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\Graphics\RenderImage.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\RenderImageStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\RenderWindow.cpp"
|
||||
>
|
||||
@ -265,6 +289,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\RenderWindow.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\RenderWindowStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\Shape.cpp"
|
||||
>
|
||||
@ -273,6 +301,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\Shape.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\ShapeStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\Sprite.cpp"
|
||||
>
|
||||
@ -281,6 +313,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\Sprite.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\SpriteStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\String.cpp"
|
||||
>
|
||||
@ -289,6 +325,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\String.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\StringStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\Graphics\Types.h"
|
||||
>
|
||||
@ -301,6 +341,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\View.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\ViewStruct.h"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
|
@ -206,6 +206,10 @@
|
||||
RelativePath="..\..\include\SFML\Network\Ftp.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\FtpStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\Http.cpp"
|
||||
>
|
||||
@ -214,6 +218,10 @@
|
||||
RelativePath="..\..\include\SFML\Network\Http.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\HttpStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\IPAddress.cpp"
|
||||
>
|
||||
@ -230,6 +238,10 @@
|
||||
RelativePath="..\..\include\SFML\Network\Packet.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\PacketStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\Selector.cpp"
|
||||
>
|
||||
@ -238,6 +250,10 @@
|
||||
RelativePath="..\..\include\SFML\Network\Selector.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\SelectorStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\Network\SocketStatus.h"
|
||||
>
|
||||
@ -250,6 +266,10 @@
|
||||
RelativePath="..\..\include\SFML\Network\SocketTCP.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\SocketTCPStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\SocketUDP.cpp"
|
||||
>
|
||||
@ -258,6 +278,10 @@
|
||||
RelativePath="..\..\include\SFML\Network\SocketUDP.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\SocketUDPStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\Network\Types.h"
|
||||
>
|
||||
|
@ -198,6 +198,10 @@
|
||||
RelativePath="..\..\include\SFML\System\Clock.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\System\ClockStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\csfml-system-d.def"
|
||||
>
|
||||
@ -214,6 +218,10 @@
|
||||
RelativePath="..\..\include\SFML\System\Mutex.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\System\MutexStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\sfml\system\Randomizer.cpp"
|
||||
>
|
||||
@ -238,6 +246,10 @@
|
||||
RelativePath="..\..\include\SFML\System\Thread.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\System\ThreadStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\System\Types.h"
|
||||
>
|
||||
|
@ -200,6 +200,10 @@
|
||||
RelativePath="..\..\include\SFML\Window\Context.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Window\ContextStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\csfml-window-d.def"
|
||||
>
|
||||
@ -220,6 +224,10 @@
|
||||
RelativePath="..\..\include\SFML\Window\Input.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Window\InputStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\Window\Types.h"
|
||||
>
|
||||
@ -244,6 +252,10 @@
|
||||
RelativePath="..\..\include\SFML\Window\WindowHandle.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Window\WindowStruct.h"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
|
@ -239,6 +239,14 @@
|
||||
RelativePath="..\..\include\SFML\Audio\SoundBufferRecorder.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Audio\SoundBufferRecorderStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Audio\SoundBufferStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Audio\SoundRecorder.cpp"
|
||||
>
|
||||
@ -247,6 +255,10 @@
|
||||
RelativePath="..\..\include\SFML\Audio\SoundRecorder.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Audio\SoundRecorderStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\Audio\SoundStatus.h"
|
||||
>
|
||||
@ -259,6 +271,14 @@
|
||||
RelativePath="..\..\include\SFML\Audio\SoundStream.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Audio\SoundStreamStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Audio\SoundStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\Audio\Types.h"
|
||||
>
|
||||
|
@ -166,6 +166,22 @@ EXPORTS
|
||||
sfString_GetStyle
|
||||
sfString_GetCharacterPos
|
||||
sfString_GetRect
|
||||
sfRenderImage_Create
|
||||
sfRenderImage_Destroy
|
||||
sfRenderImage_GetWidth
|
||||
sfRenderImage_GetHeight
|
||||
sfRenderImage_SetActive
|
||||
sfRenderImage_DrawPostFX
|
||||
sfRenderImage_DrawSprite
|
||||
sfRenderImage_DrawShape
|
||||
sfRenderImage_DrawString
|
||||
sfRenderImage_Clear
|
||||
sfRenderImage_SetView
|
||||
sfRenderImage_GetView
|
||||
sfRenderImage_GetDefaultView
|
||||
sfRenderImage_PreserveOpenGLStates
|
||||
sfRenderImage_GetImage
|
||||
sfRenderImage_CanUseRenderImage
|
||||
sfRenderWindow_Create
|
||||
sfRenderWindow_CreateFromHandle
|
||||
sfRenderWindow_Destroy
|
||||
|
@ -166,6 +166,22 @@ EXPORTS
|
||||
sfString_GetStyle
|
||||
sfString_GetCharacterPos
|
||||
sfString_GetRect
|
||||
sfRenderImage_Create
|
||||
sfRenderImage_Destroy
|
||||
sfRenderImage_GetWidth
|
||||
sfRenderImage_GetHeight
|
||||
sfRenderImage_SetActive
|
||||
sfRenderImage_DrawPostFX
|
||||
sfRenderImage_DrawSprite
|
||||
sfRenderImage_DrawShape
|
||||
sfRenderImage_DrawString
|
||||
sfRenderImage_Clear
|
||||
sfRenderImage_SetView
|
||||
sfRenderImage_GetView
|
||||
sfRenderImage_GetDefaultView
|
||||
sfRenderImage_PreserveOpenGLStates
|
||||
sfRenderImage_GetImage
|
||||
sfRenderImage_CanUseRenderImage
|
||||
sfRenderWindow_Create
|
||||
sfRenderWindow_CreateFromHandle
|
||||
sfRenderWindow_Destroy
|
||||
|
@ -228,6 +228,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\Font.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\FontStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\Image.cpp"
|
||||
>
|
||||
@ -236,6 +240,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\Image.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\ImageStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\PostFX.cpp"
|
||||
>
|
||||
@ -244,6 +252,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\PostFX.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\PostFXStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\Rect.cpp"
|
||||
>
|
||||
@ -252,6 +264,14 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\Rect.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\RenderImage.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\RenderImageStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\RenderWindow.cpp"
|
||||
>
|
||||
@ -260,6 +280,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\RenderWindow.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\RenderWindowStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\Shape.cpp"
|
||||
>
|
||||
@ -268,6 +292,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\Shape.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\ShapeStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\Sprite.cpp"
|
||||
>
|
||||
@ -276,6 +304,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\Sprite.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\SpriteStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\String.cpp"
|
||||
>
|
||||
@ -284,6 +316,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\String.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\StringStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\Graphics\Types.h"
|
||||
>
|
||||
@ -296,6 +332,10 @@
|
||||
RelativePath="..\..\include\SFML\Graphics\View.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Graphics\ViewStruct.h"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
|
@ -205,6 +205,10 @@
|
||||
RelativePath="..\..\include\SFML\Network\Ftp.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\FtpStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\Http.cpp"
|
||||
>
|
||||
@ -213,6 +217,10 @@
|
||||
RelativePath="..\..\include\SFML\Network\Http.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\HttpStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\IPAddress.cpp"
|
||||
>
|
||||
@ -229,6 +237,10 @@
|
||||
RelativePath="..\..\include\SFML\Network\Packet.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\PacketStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\Selector.cpp"
|
||||
>
|
||||
@ -237,6 +249,10 @@
|
||||
RelativePath="..\..\include\SFML\Network\Selector.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\SelectorStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\Network\SocketStatus.h"
|
||||
>
|
||||
@ -249,6 +265,10 @@
|
||||
RelativePath="..\..\include\SFML\Network\SocketTCP.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\SocketTCPStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\SocketUDP.cpp"
|
||||
>
|
||||
@ -257,6 +277,10 @@
|
||||
RelativePath="..\..\include\SFML\Network\SocketUDP.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Network\SocketUDPStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\Network\Types.h"
|
||||
>
|
||||
|
@ -197,6 +197,10 @@
|
||||
RelativePath="..\..\include\SFML\System\Clock.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\System\ClockStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\csfml-system-d.def"
|
||||
>
|
||||
@ -213,6 +217,10 @@
|
||||
RelativePath="..\..\include\SFML\System\Mutex.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\System\MutexStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\sfml\system\Randomizer.cpp"
|
||||
>
|
||||
@ -237,6 +245,10 @@
|
||||
RelativePath="..\..\include\SFML\System\Thread.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\System\ThreadStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\System\Types.h"
|
||||
>
|
||||
|
@ -199,6 +199,10 @@
|
||||
RelativePath="..\..\include\SFML\Window\Context.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Window\ContextStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\csfml-window-d.def"
|
||||
>
|
||||
@ -219,6 +223,10 @@
|
||||
RelativePath="..\..\include\SFML\Window\Input.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Window\InputStruct.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\SFML\Window\Types.h"
|
||||
>
|
||||
@ -243,6 +251,10 @@
|
||||
RelativePath="..\..\include\SFML\Window\WindowHandle.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\SFML\Window\WindowStruct.h"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
|
@ -64,11 +64,17 @@
|
||||
<Unit filename="..\..\include\SFML\Audio\Types.h" />
|
||||
<Unit filename="..\..\src\SFML\Audio\Listener.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Audio\Music.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Audio\MusicStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Audio\Sound.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Audio\SoundBuffer.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Audio\SoundBufferRecorder.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Audio\SoundBufferRecorderStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Audio\SoundBufferStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Audio\SoundRecorder.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Audio\SoundRecorderStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Audio\SoundStream.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Audio\SoundStreamStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Audio\SoundStruct.h" />
|
||||
<Extensions>
|
||||
<code_completion />
|
||||
<envvars />
|
||||
|
@ -69,14 +69,24 @@
|
||||
<Unit filename="..\..\include\SFML\Graphics\View.h" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\Color.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\Font.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\FontStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\Image.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\ImageStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\PostFX.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\PostFXStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\Rect.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\RenderImage.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\RenderImageStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\RenderWindow.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\RenderWindowStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\Shape.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\ShapeStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\Sprite.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\SpriteStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\String.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\StringStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\View.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Graphics\ViewStruct.h" />
|
||||
<Extensions>
|
||||
<code_completion />
|
||||
<envvars />
|
||||
|
@ -63,12 +63,18 @@
|
||||
<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\FtpStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Network\Http.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Network\HttpStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Network\IPAddress.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Network\Packet.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Network\PacketStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Network\Selector.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Network\SelectorStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Network\SocketTCP.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Network\SocketTCPStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Network\SocketUDP.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Network\SocketUDPStruct.h" />
|
||||
<Extensions>
|
||||
<code_completion />
|
||||
<envvars />
|
||||
|
@ -58,10 +58,13 @@
|
||||
<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\ClockStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\System\Mutex.cpp" />
|
||||
<Unit filename="..\..\src\SFML\System\MutexStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\System\Randomizer.cpp" />
|
||||
<Unit filename="..\..\src\SFML\System\Sleep.cpp" />
|
||||
<Unit filename="..\..\src\SFML\System\Thread.cpp" />
|
||||
<Unit filename="..\..\src\SFML\System\ThreadStruct.h" />
|
||||
<Extensions>
|
||||
<code_completion />
|
||||
<envvars />
|
||||
|
@ -63,9 +63,12 @@
|
||||
<Unit filename="..\..\include\SFML\Window\Window.h" />
|
||||
<Unit filename="..\..\include\SFML\Window\WindowHandle.h" />
|
||||
<Unit filename="..\..\src\SFML\Window\Context.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Window\ContextStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Window\Input.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Window\InputStruct.h" />
|
||||
<Unit filename="..\..\src\SFML\Window\VideoMode.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Window\Window.cpp" />
|
||||
<Unit filename="..\..\src\SFML\Window\WindowStruct.h" />
|
||||
<Extensions>
|
||||
<code_completion />
|
||||
<envvars />
|
||||
|
@ -1,7 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007 Laurent Gomila (laurent.gom@gmail.com)
|
||||
// Copyright (C) 2007-2009 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.
|
||||
|
@ -1,8 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||
//
|
||||
// Copyright (C) 2007-2009 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.
|
||||
//
|
||||
|
@ -1,7 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007 Laurent Gomila (laurent.gom@gmail.com)
|
||||
// Copyright (C) 2007-2009 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.
|
||||
|
@ -1,7 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007 Laurent Gomila (laurent.gom@gmail.com)
|
||||
// Copyright (C) 2007-2009 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.
|
||||
|
169
CSFML/include/SFML/Graphics/RenderImage.h
Normal file
169
CSFML/include/SFML/Graphics/RenderImage.h
Normal file
@ -0,0 +1,169 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_RENDERIMAGE_H
|
||||
#define SFML_RENDERIMAGE_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Config.h>
|
||||
#include <SFML/Graphics/Color.h>
|
||||
#include <SFML/Graphics/Rect.h>
|
||||
#include <SFML/Graphics/Types.h>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new renderimage
|
||||
///
|
||||
/// \param Width : Width of the renderimage
|
||||
/// \param Height : Height of the renderimage
|
||||
/// \param DepthBuffer : Do you want a depth-buffer attached? (useful only if you're doing 3D OpenGL on the renderimage)
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfRenderImage* sfRenderImage_Create(unsigned int Width, unsigned int Height, sfBool DepthBuffer);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing renderimage
|
||||
///
|
||||
/// \param RenderImage : renderimage to destroy
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API void sfRenderImage_Destroy(sfRenderImage* RenderImage);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the width of the rendering region of a renderimage
|
||||
///
|
||||
/// \param RenderImage : Renderimage object
|
||||
///
|
||||
/// \return Width in pixels
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API unsigned int sfRenderImage_GetWidth(sfRenderImage* RenderImage);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the height of the rendering region of a renderimage
|
||||
///
|
||||
/// \param RenderImage : Renderimage object
|
||||
///
|
||||
/// \return Height in pixels
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API unsigned int sfRenderImage_GetHeight(sfRenderImage* RenderImage);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Activate or deactivate a renderimage as the current target for rendering
|
||||
///
|
||||
/// \param RenderImage : Renderimage object
|
||||
/// \param Active : sfTrue to activate, sfFalse to deactivate
|
||||
///
|
||||
/// \return True if operation was successful, false otherwise
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfBool sfRenderImage_SetActive(sfRenderImage* RenderImage, sfBool Active);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Draw something on a renderimage
|
||||
///
|
||||
/// \param RenderImage : Renderimage to draw in
|
||||
/// \param PostFX / Sprite / String / shape : Object to draw
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API void sfRenderImage_DrawPostFX(sfRenderImage* RenderImage, sfPostFX* PostFX);
|
||||
CSFML_API void sfRenderImage_DrawSprite(sfRenderImage* RenderImage, sfSprite* Sprite);
|
||||
CSFML_API void sfRenderImage_DrawShape (sfRenderImage* RenderImage, sfShape* Shape);
|
||||
CSFML_API void sfRenderImage_DrawString(sfRenderImage* RenderImage, sfString* String);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Clear the renderimage with the given color
|
||||
///
|
||||
/// \param RenderImage : Renderimage to modify
|
||||
/// \param Color : Fill color
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API void sfRenderImage_Clear(sfRenderImage* RenderImage, sfColor Color);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Change the current active view of a renderimage
|
||||
///
|
||||
/// \param RenderImage : Renderimage to modify
|
||||
/// \param NewView : Pointer to the new view
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API void sfRenderImage_SetView(sfRenderImage* RenderImage, sfView* View);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the current active view of a renderimage
|
||||
///
|
||||
/// \param RenderImage : Renderimage
|
||||
///
|
||||
/// \return Current active view
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API const sfView* sfRenderImage_GetView(sfRenderImage* RenderImage);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the default view of a renderimage
|
||||
///
|
||||
/// \param RenderImage : Renderimage
|
||||
///
|
||||
/// \return Default view of the renderimage
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfView* sfRenderImage_GetDefaultView(sfRenderImage* RenderImage);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Tell SFML to preserve external OpenGL states, at the expense of
|
||||
/// more CPU charge. Use this function if you don't want SFML
|
||||
/// to mess up your own OpenGL states (if any).
|
||||
/// Don't enable state preservation if not needed, as it will allow
|
||||
/// SFML to do internal optimizations and improve performances.
|
||||
/// This parameter is false by default
|
||||
///
|
||||
/// \param RenderImage : Target renderimage
|
||||
/// \param Preserve : True to preserve OpenGL states, false to let SFML optimize
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API void sfRenderImage_PreserveOpenGLStates(sfRenderImage* RenderImage, sfBool Preserve);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the target image
|
||||
///
|
||||
/// \param RenderImage : Renderimage object
|
||||
///
|
||||
/// \return Pointer to the target image
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfImage* sfRenderImage_GetImage(sfRenderImage* RenderImage);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Check whether the system supports render images or not
|
||||
///
|
||||
/// \return sfTrue if the RenderImage class can be used
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfBool sfRenderImage_CanUseRenderImage();
|
||||
|
||||
|
||||
#endif // SFML_RENDERIMAGE_H
|
@ -29,6 +29,7 @@
|
||||
typedef struct sfFont sfFont;
|
||||
typedef struct sfImage sfImage;
|
||||
typedef struct sfPostFX sfPostFX;
|
||||
typedef struct sfRenderImage sfRenderImage;
|
||||
typedef struct sfRenderWindow sfRenderWindow;
|
||||
typedef struct sfShape sfShape;
|
||||
typedef struct sfSprite sfSprite;
|
||||
|
@ -1,7 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007 Laurent Gomila (laurent.gom@gmail.com)
|
||||
// Copyright (C) 2007-2009 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.
|
||||
|
@ -1,7 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||
// Copyright (C) 2007-2009 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.
|
||||
|
@ -1,7 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007 Laurent Gomila (laurent.gom@gmail.com)
|
||||
// Copyright (C) 2007-2009 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.
|
||||
|
@ -1,8 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||
//
|
||||
// Copyright (C) 2007-2009 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.
|
||||
//
|
||||
|
@ -1,7 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007 Laurent Gomila (laurent.gom@gmail.com)
|
||||
// Copyright (C) 2007-2009 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.
|
||||
@ -33,6 +33,7 @@
|
||||
#include <SFML/Window/Context.h>
|
||||
#include <SFML/Window/Event.h>
|
||||
#include <SFML/Window/Input.h>
|
||||
#include <SFML/Window/OpenGL.h>
|
||||
#include <SFML/Window/VideoMode.h>
|
||||
#include <SFML/Window/Window.h>
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||
//
|
||||
// Copyright (C) 2007-2009 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.
|
||||
//
|
||||
|
@ -1,8 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||
//
|
||||
// Copyright (C) 2007-2009 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.
|
||||
//
|
||||
|
59
CSFML/include/SFML/Window/OpenGL.h
Normal file
59
CSFML/include/SFML/Window/OpenGL.h
Normal file
@ -0,0 +1,59 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_OPENGL_H
|
||||
#define SFML_OPENGL_H
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Config.h>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// This file just includes the OpenGL (GL and GLU) headers,
|
||||
/// which have actually different paths on each system
|
||||
////////////////////////////////////////////////////////////
|
||||
#if defined(CSFML_SYSTEM_WINDOWS)
|
||||
|
||||
#include <windows.h>
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
|
||||
#elif defined(CSFML_SYSTEM_LINUX) || defined(CSFML_SYSTEM_FREEBSD)
|
||||
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
|
||||
#elif defined(CSFML_SYSTEM_MACOS)
|
||||
|
||||
#include <OpenGL/gl.h>
|
||||
#include <OpenGL/glu.h>
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif // SFML_OPENGL_H
|
||||
|
@ -1,7 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||
// Copyright (C) 2007-2009 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.
|
||||
|
@ -1,8 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||
//
|
||||
// Copyright (C) 2007-2009 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.
|
||||
//
|
||||
|
@ -1,7 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||
// Copyright (C) 2007-2009 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.
|
||||
|
@ -1,56 +1,56 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009-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_WINDOWHANDLE_H
|
||||
#define SFML_WINDOWHANDLE_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Config.h>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Define a low-level window handle type, specific to
|
||||
/// each platform
|
||||
////////////////////////////////////////////////////////////
|
||||
#if defined(CSFML_SYSTEM_WINDOWS)
|
||||
|
||||
// Windows defines a void* handle (HWND)
|
||||
typedef void* sfWindowHandle;
|
||||
|
||||
#elif defined(CSFML_SYSTEM_LINUX)
|
||||
|
||||
// Unix - X11 defines an unsigned integer handle (Window)
|
||||
typedef unsigned long sfWindowHandle;
|
||||
|
||||
#elif defined(CSFML_SYSTEM_MACOS)
|
||||
|
||||
// Mac OS X defines a void* handle (NSWindow)
|
||||
typedef void * sfWindowHandle;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif // SFML_WINDOWHANDLE_H
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_WINDOWHANDLE_H
|
||||
#define SFML_WINDOWHANDLE_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Config.h>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Define a low-level window handle type, specific to
|
||||
/// each platform
|
||||
////////////////////////////////////////////////////////////
|
||||
#if defined(CSFML_SYSTEM_WINDOWS)
|
||||
|
||||
// Windows defines a void* handle (HWND)
|
||||
typedef void* sfWindowHandle;
|
||||
|
||||
#elif defined(CSFML_SYSTEM_LINUX)
|
||||
|
||||
// Unix - X11 defines an unsigned integer handle (Window)
|
||||
typedef unsigned long sfWindowHandle;
|
||||
|
||||
#elif defined(CSFML_SYSTEM_MACOS)
|
||||
|
||||
// Mac OS X defines a void* handle (NSWindow)
|
||||
typedef void* sfWindowHandle;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif // SFML_WINDOWHANDLE_H
|
||||
|
@ -26,16 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Audio/Music.h>
|
||||
#include <SFML/Audio/Music.hpp>
|
||||
#include <SFML/Audio/MusicStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
struct sfMusic
|
||||
{
|
||||
sf::Music This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Create a new music and load it from a file
|
||||
////////////////////////////////////////////////////////////
|
||||
|
43
CSFML/src/SFML/Audio/MusicStruct.h
Normal file
43
CSFML/src/SFML/Audio/MusicStruct.h
Normal file
@ -0,0 +1,43 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_MUSICSTRUCT_H
|
||||
#define SFML_MUSICSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Audio/Music.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfMusic
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfMusic
|
||||
{
|
||||
sf::Music This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_MUSICSTRUCT_H
|
@ -26,23 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Audio/Sound.h>
|
||||
#include <SFML/Audio/Sound.hpp>
|
||||
#include <SFML/Audio/SoundBuffer.hpp>
|
||||
#include <SFML/Audio/SoundStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
// WARNING : this structure must always be the SAME as in Audio/SoundBuffer.h
|
||||
struct sfSoundBuffer
|
||||
{
|
||||
sf::SoundBuffer This;
|
||||
};
|
||||
struct sfSound
|
||||
{
|
||||
sf::Sound This;
|
||||
sfSoundBuffer* Buffer;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new sound
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -26,16 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Audio/SoundBuffer.h>
|
||||
#include <SFML/Audio/SoundBuffer.hpp>
|
||||
#include <SFML/Audio/SoundBufferStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
struct sfSoundBuffer
|
||||
{
|
||||
sf::SoundBuffer This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Create a new sound buffer and load it from a file
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -26,24 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Audio/SoundBufferRecorder.h>
|
||||
#include <SFML/Audio/SoundBufferRecorder.hpp>
|
||||
#include <SFML/Audio/SoundBuffer.hpp>
|
||||
#include <SFML/Audio/SoundBufferRecorderStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
// WARNING : this structure must always be the SAME as in Audio/SoundBuffer.h
|
||||
struct sfSoundBuffer
|
||||
{
|
||||
sf::SoundBuffer This;
|
||||
};
|
||||
|
||||
struct sfSoundBufferRecorder
|
||||
{
|
||||
sf::SoundBufferRecorder This;
|
||||
sfSoundBuffer SoundBuffer;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new sound buffer recorder
|
||||
////////////////////////////////////////////////////////////
|
||||
|
45
CSFML/src/SFML/Audio/SoundBufferRecorderStruct.h
Normal file
45
CSFML/src/SFML/Audio/SoundBufferRecorderStruct.h
Normal file
@ -0,0 +1,45 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_SOUNDBUFFERRECORDERSTRUCT_H
|
||||
#define SFML_SOUNDBUFFERRECORDERSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Audio/SoundBufferRecorder.hpp>
|
||||
#include <SFML/Audio/SoundBufferStruct.h>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfSoundBufferRecorder
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfSoundBufferRecorder
|
||||
{
|
||||
sf::SoundBufferRecorder This;
|
||||
sfSoundBuffer SoundBuffer;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_SOUNDBUFFERRECORDERSTRUCT_H
|
43
CSFML/src/SFML/Audio/SoundBufferStruct.h
Normal file
43
CSFML/src/SFML/Audio/SoundBufferStruct.h
Normal file
@ -0,0 +1,43 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_SOUNDBUFFERSTRUCT_H
|
||||
#define SFML_SOUNDBUFFERSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Audio/SoundBuffer.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfSoundBuffer
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfSoundBuffer
|
||||
{
|
||||
sf::SoundBuffer This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_SOUNDBUFFERSTRUCT_H
|
@ -26,70 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Audio/SoundRecorder.h>
|
||||
#include <SFML/Audio/SoundRecorder.hpp>
|
||||
#include <SFML/Audio/SoundRecorderStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
class sfSoundRecorderImpl : public sf::SoundRecorder
|
||||
{
|
||||
public :
|
||||
|
||||
sfSoundRecorderImpl(sfSoundRecorderStartCallback OnStart,
|
||||
sfSoundRecorderProcessCallback OnProcess,
|
||||
sfSoundRecorderStopCallback OnStop,
|
||||
void* UserData) :
|
||||
myStartCallback (OnStart),
|
||||
myProcessCallback(OnProcess),
|
||||
myStopCallback (OnStop),
|
||||
myUserData (UserData)
|
||||
{
|
||||
}
|
||||
|
||||
private :
|
||||
|
||||
virtual bool OnStart()
|
||||
{
|
||||
if (myStartCallback)
|
||||
return myStartCallback(myUserData) == sfTrue;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool OnProcessSamples(const sf::Int16* Samples, std::size_t SamplesCount)
|
||||
{
|
||||
if (myProcessCallback)
|
||||
return myProcessCallback(Samples, SamplesCount, myUserData) == sfTrue;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual void OnStop()
|
||||
{
|
||||
if (myStopCallback)
|
||||
myStopCallback(myUserData);
|
||||
}
|
||||
|
||||
sfSoundRecorderStartCallback myStartCallback;
|
||||
sfSoundRecorderProcessCallback myProcessCallback;
|
||||
sfSoundRecorderStopCallback myStopCallback;
|
||||
void* myUserData;
|
||||
};
|
||||
|
||||
|
||||
struct sfSoundRecorder
|
||||
{
|
||||
sfSoundRecorder(sfSoundRecorderStartCallback OnStart,
|
||||
sfSoundRecorderProcessCallback OnProcess,
|
||||
sfSoundRecorderStopCallback OnStop,
|
||||
void* UserData) :
|
||||
This(OnStart, OnProcess, OnStop, UserData)
|
||||
{
|
||||
}
|
||||
|
||||
sfSoundRecorderImpl This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new sound recorder with callback functions
|
||||
/// for processing captured samples
|
||||
|
102
CSFML/src/SFML/Audio/SoundRecorderStruct.h
Normal file
102
CSFML/src/SFML/Audio/SoundRecorderStruct.h
Normal file
@ -0,0 +1,102 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_SOUNDRECORDERSTRUCT_H
|
||||
#define SFML_SOUNDRECORDERSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Audio/SoundRecorder.hpp>
|
||||
#include <SFML/Audio/SoundRecorder.h>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Helper class implementing the callback forwarding from
|
||||
// C++ to C in sfSoundRecorder
|
||||
////////////////////////////////////////////////////////////
|
||||
class sfSoundRecorderImpl : public sf::SoundRecorder
|
||||
{
|
||||
public :
|
||||
|
||||
sfSoundRecorderImpl(sfSoundRecorderStartCallback OnStart,
|
||||
sfSoundRecorderProcessCallback OnProcess,
|
||||
sfSoundRecorderStopCallback OnStop,
|
||||
void* UserData) :
|
||||
myStartCallback (OnStart),
|
||||
myProcessCallback(OnProcess),
|
||||
myStopCallback (OnStop),
|
||||
myUserData (UserData)
|
||||
{
|
||||
}
|
||||
|
||||
private :
|
||||
|
||||
virtual bool OnStart()
|
||||
{
|
||||
if (myStartCallback)
|
||||
return myStartCallback(myUserData) == sfTrue;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool OnProcessSamples(const sf::Int16* Samples, std::size_t SamplesCount)
|
||||
{
|
||||
if (myProcessCallback)
|
||||
return myProcessCallback(Samples, SamplesCount, myUserData) == sfTrue;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual void OnStop()
|
||||
{
|
||||
if (myStopCallback)
|
||||
myStopCallback(myUserData);
|
||||
}
|
||||
|
||||
sfSoundRecorderStartCallback myStartCallback;
|
||||
sfSoundRecorderProcessCallback myProcessCallback;
|
||||
sfSoundRecorderStopCallback myStopCallback;
|
||||
void* myUserData;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfPacket
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfSoundRecorder
|
||||
{
|
||||
sfSoundRecorder(sfSoundRecorderStartCallback OnStart,
|
||||
sfSoundRecorderProcessCallback OnProcess,
|
||||
sfSoundRecorderStopCallback OnStop,
|
||||
void* UserData) :
|
||||
This(OnStart, OnProcess, OnStop, UserData)
|
||||
{
|
||||
}
|
||||
|
||||
sfSoundRecorderImpl This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_SOUNDRECORDERSTRUCT_H
|
@ -26,66 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Audio/SoundStream.h>
|
||||
#include <SFML/Audio/SoundStream.hpp>
|
||||
#include <SFML/Audio/SoundStreamStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
class sfSoundStreamImpl : public sf::SoundStream
|
||||
{
|
||||
public :
|
||||
|
||||
sfSoundStreamImpl(sfSoundStreamGetDataCallback OnGetData,
|
||||
sfSoundStreamSeekCallback OnSeek,
|
||||
unsigned int ChannelsCount,
|
||||
unsigned int SampleRate,
|
||||
void* UserData) :
|
||||
myGetDataCallback(OnGetData),
|
||||
mySeekCallback (OnSeek),
|
||||
myUserData (UserData)
|
||||
{
|
||||
Initialize(ChannelsCount, SampleRate);
|
||||
}
|
||||
|
||||
private :
|
||||
|
||||
virtual bool OnGetData(Chunk& Data)
|
||||
{
|
||||
sfSoundStreamChunk Chunk = {NULL, 0};
|
||||
bool Continue = (myGetDataCallback(&Chunk, myUserData) == sfTrue);
|
||||
|
||||
Data.Samples = Chunk.Samples;
|
||||
Data.NbSamples = Chunk.NbSamples;
|
||||
|
||||
return Continue;
|
||||
}
|
||||
|
||||
virtual void OnSeek(float TimeOffset)
|
||||
{
|
||||
if (mySeekCallback)
|
||||
mySeekCallback(TimeOffset, myUserData);
|
||||
}
|
||||
|
||||
sfSoundStreamGetDataCallback myGetDataCallback;
|
||||
sfSoundStreamSeekCallback mySeekCallback;
|
||||
void* myUserData;
|
||||
};
|
||||
|
||||
|
||||
struct sfSoundStream
|
||||
{
|
||||
sfSoundStream(sfSoundStreamGetDataCallback OnGetData,
|
||||
sfSoundStreamSeekCallback OnSeek,
|
||||
unsigned int ChannelsCount,
|
||||
unsigned int SampleRate,
|
||||
void* UserData) :
|
||||
This(OnGetData, OnSeek, ChannelsCount, SampleRate, UserData)
|
||||
{
|
||||
}
|
||||
|
||||
sfSoundStreamImpl This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new sound stream
|
||||
////////////////////////////////////////////////////////////
|
||||
|
97
CSFML/src/SFML/Audio/SoundStreamStruct.h
Normal file
97
CSFML/src/SFML/Audio/SoundStreamStruct.h
Normal file
@ -0,0 +1,97 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_SOUNDSTREAMSTRUCT_H
|
||||
#define SFML_SOUNDSTREAMSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Audio/SoundStream.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Helper class implementing the callback forwarding from
|
||||
// C++ to C in sfSoundStream
|
||||
////////////////////////////////////////////////////////////
|
||||
class sfSoundStreamImpl : public sf::SoundStream
|
||||
{
|
||||
public :
|
||||
|
||||
sfSoundStreamImpl(sfSoundStreamGetDataCallback OnGetData,
|
||||
sfSoundStreamSeekCallback OnSeek,
|
||||
unsigned int ChannelsCount,
|
||||
unsigned int SampleRate,
|
||||
void* UserData) :
|
||||
myGetDataCallback(OnGetData),
|
||||
mySeekCallback (OnSeek),
|
||||
myUserData (UserData)
|
||||
{
|
||||
Initialize(ChannelsCount, SampleRate);
|
||||
}
|
||||
|
||||
private :
|
||||
|
||||
virtual bool OnGetData(Chunk& Data)
|
||||
{
|
||||
sfSoundStreamChunk Chunk = {NULL, 0};
|
||||
bool Continue = (myGetDataCallback(&Chunk, myUserData) == sfTrue);
|
||||
|
||||
Data.Samples = Chunk.Samples;
|
||||
Data.NbSamples = Chunk.NbSamples;
|
||||
|
||||
return Continue;
|
||||
}
|
||||
|
||||
virtual void OnSeek(float TimeOffset)
|
||||
{
|
||||
if (mySeekCallback)
|
||||
mySeekCallback(TimeOffset, myUserData);
|
||||
}
|
||||
|
||||
sfSoundStreamGetDataCallback myGetDataCallback;
|
||||
sfSoundStreamSeekCallback mySeekCallback;
|
||||
void* myUserData;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfSoundStream
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfSoundStream
|
||||
{
|
||||
sfSoundStream(sfSoundStreamGetDataCallback OnGetData,
|
||||
sfSoundStreamSeekCallback OnSeek,
|
||||
unsigned int ChannelsCount,
|
||||
unsigned int SampleRate,
|
||||
void* UserData) :
|
||||
This(OnGetData, OnSeek, ChannelsCount, SampleRate, UserData)
|
||||
{
|
||||
}
|
||||
|
||||
sfSoundStreamImpl This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_SOUNDSTREAMSTRUCT_H
|
45
CSFML/src/SFML/Audio/SoundStruct.h
Normal file
45
CSFML/src/SFML/Audio/SoundStruct.h
Normal file
@ -0,0 +1,45 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_SOUNDSTRUCT_H
|
||||
#define SFML_SOUNDSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Audio/Sound.hpp>
|
||||
#include <SFML/Audio/SoundBufferStruct.h>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfSound
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfSound
|
||||
{
|
||||
sf::Sound This;
|
||||
sfSoundBuffer* Buffer;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_SOUNDSTRUCT_H
|
@ -26,16 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/Font.h>
|
||||
#include <SFML/Graphics/Font.hpp>
|
||||
#include <SFML/Graphics/FontStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
struct sfFont
|
||||
{
|
||||
sf::Font This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Create a new empty font
|
||||
////////////////////////////////////////////////////////////
|
||||
|
43
CSFML/src/SFML/Graphics/FontStruct.h
Normal file
43
CSFML/src/SFML/Graphics/FontStruct.h
Normal file
@ -0,0 +1,43 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_FONTSTRUCT_H
|
||||
#define SFML_FONTSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/Font.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfFont
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfFont
|
||||
{
|
||||
sf::Font This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_FONTSTRUCT_H
|
@ -26,37 +26,11 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/Image.h>
|
||||
#include <SFML/Graphics/Image.hpp>
|
||||
#include <SFML/Graphics/RenderWindow.hpp>
|
||||
#include <SFML/Window/Input.hpp>
|
||||
#include <SFML/Graphics/ImageStruct.h>
|
||||
#include <SFML/Graphics/RenderWindowStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
// WARNING : this structure must always be the SAME as in Window/Input.h
|
||||
struct sfInput
|
||||
{
|
||||
const sf::Input* This;
|
||||
};
|
||||
// WARNING : this structure must always be the SAME as in Graphics/View.h
|
||||
struct sfView
|
||||
{
|
||||
sf::View* This;
|
||||
};
|
||||
// WARNING : this structure must always be the SAME as in Graphics/RenderWindow.h
|
||||
struct sfRenderWindow
|
||||
{
|
||||
sf::RenderWindow This;
|
||||
sfInput Input;
|
||||
sfView DefaultView;
|
||||
sfView* CurrentView;
|
||||
};
|
||||
|
||||
struct sfImage
|
||||
{
|
||||
sf::Image This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Create a new empty image
|
||||
////////////////////////////////////////////////////////////
|
||||
@ -73,7 +47,7 @@ sfImage* sfImage_CreateFromColor(unsigned int Width, unsigned int Height, sfColo
|
||||
{
|
||||
sfImage* Image = new sfImage;
|
||||
|
||||
if (!Image->This.Create(Width, Height, sf::Color(Color.r, Color.g, Color.b, Color.a)))
|
||||
if (!Image->This->Create(Width, Height, sf::Color(Color.r, Color.g, Color.b, Color.a)))
|
||||
{
|
||||
delete Image;
|
||||
Image = NULL;
|
||||
@ -90,7 +64,7 @@ sfImage* sfImage_CreateFromPixels(unsigned int Width, unsigned int Height, const
|
||||
{
|
||||
sfImage* Image = new sfImage;
|
||||
|
||||
if (!Image->This.LoadFromPixels(Width, Height, Data))
|
||||
if (!Image->This->LoadFromPixels(Width, Height, Data))
|
||||
{
|
||||
delete Image;
|
||||
Image = NULL;
|
||||
@ -107,7 +81,7 @@ sfImage* sfImage_CreateFromFile(const char* Filename)
|
||||
{
|
||||
sfImage* Image = new sfImage;
|
||||
|
||||
if (!Image->This.LoadFromFile(Filename))
|
||||
if (!Image->This->LoadFromFile(Filename))
|
||||
{
|
||||
delete Image;
|
||||
Image = NULL;
|
||||
@ -124,7 +98,7 @@ sfImage* sfImage_CreateFromMemory(const char* Data, size_t SizeInBytes)
|
||||
{
|
||||
sfImage* Image = new sfImage;
|
||||
|
||||
if (!Image->This.LoadFromMemory(Data, SizeInBytes))
|
||||
if (!Image->This->LoadFromMemory(Data, SizeInBytes))
|
||||
{
|
||||
delete Image;
|
||||
Image = NULL;
|
||||
@ -148,7 +122,7 @@ void sfImage_Destroy(sfImage* Image)
|
||||
////////////////////////////////////////////////////////////
|
||||
sfBool sfImage_SaveToFile(sfImage* Image, const char* Filename)
|
||||
{
|
||||
CSFML_CALL_RETURN(Image, SaveToFile(Filename), sfFalse);
|
||||
CSFML_CALL_PTR_RETURN(Image, SaveToFile(Filename), sfFalse);
|
||||
}
|
||||
|
||||
|
||||
@ -158,7 +132,7 @@ sfBool sfImage_SaveToFile(sfImage* Image, const char* Filename)
|
||||
void sfImage_CreateMaskFromColor(sfImage* Image, sfColor ColorKey, sfUint8 Alpha)
|
||||
{
|
||||
sf::Color SFMLColor(ColorKey.r, ColorKey.g, ColorKey.b, ColorKey.a);
|
||||
CSFML_CALL(Image, CreateMaskFromColor(SFMLColor, Alpha));
|
||||
CSFML_CALL_PTR(Image, CreateMaskFromColor(SFMLColor, Alpha));
|
||||
}
|
||||
|
||||
|
||||
@ -171,7 +145,7 @@ void sfImage_Copy(sfImage* Image, sfImage* Source, unsigned int DestX, unsigned
|
||||
{
|
||||
CSFML_CHECK(Source);
|
||||
sf::IntRect SFMLRect(SourceRect.Left, SourceRect.Top, SourceRect.Right, SourceRect.Bottom);
|
||||
CSFML_CALL(Image, Copy(Source->This, DestX, DestY, SFMLRect));
|
||||
CSFML_CALL_PTR(Image, Copy(*Source->This, DestX, DestY, SFMLRect));
|
||||
}
|
||||
|
||||
|
||||
@ -183,7 +157,7 @@ CSFML_API sfBool sfImage_CopyScreen(sfImage* Image, sfRenderWindow* Window, sfIn
|
||||
{
|
||||
CSFML_CHECK_RETURN(Window, sfFalse);
|
||||
sf::IntRect SFMLRect(SourceRect.Left, SourceRect.Top, SourceRect.Right, SourceRect.Bottom);
|
||||
CSFML_CALL_RETURN(Image, CopyScreen(Window->This, SFMLRect), sfFalse);
|
||||
CSFML_CALL_PTR_RETURN(Image, CopyScreen(Window->This, SFMLRect), sfFalse);
|
||||
}
|
||||
|
||||
|
||||
@ -194,7 +168,7 @@ CSFML_API sfBool sfImage_CopyScreen(sfImage* Image, sfRenderWindow* Window, sfIn
|
||||
void sfImage_SetPixel(sfImage* Image, unsigned int X, unsigned int Y, sfColor Color)
|
||||
{
|
||||
sf::Color SFMLColor(Color.r, Color.g, Color.b, Color.a);
|
||||
CSFML_CALL(Image, SetPixel(X, Y, SFMLColor));
|
||||
CSFML_CALL_PTR(Image, SetPixel(X, Y, SFMLColor));
|
||||
}
|
||||
|
||||
|
||||
@ -206,7 +180,7 @@ sfColor sfImage_GetPixel(sfImage* Image, unsigned int X, unsigned int Y)
|
||||
sfColor Color = {0, 0, 0, 0};
|
||||
CSFML_CHECK_RETURN(Image, Color);
|
||||
|
||||
sf::Color SFMLColor = Image->This.GetPixel(X, Y);
|
||||
sf::Color SFMLColor = Image->This->GetPixel(X, Y);
|
||||
|
||||
return sfColor_FromRGBA(SFMLColor.r, SFMLColor.g, SFMLColor.b, SFMLColor.a);
|
||||
}
|
||||
@ -219,7 +193,7 @@ sfColor sfImage_GetPixel(sfImage* Image, unsigned int X, unsigned int Y)
|
||||
////////////////////////////////////////////////////////////
|
||||
const sfUint8* sfImage_GetPixelsPtr(sfImage* Image)
|
||||
{
|
||||
CSFML_CALL_RETURN(Image, GetPixelsPtr(), NULL);
|
||||
CSFML_CALL_PTR_RETURN(Image, GetPixelsPtr(), NULL);
|
||||
}
|
||||
|
||||
|
||||
@ -228,7 +202,7 @@ const sfUint8* sfImage_GetPixelsPtr(sfImage* Image)
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfImage_Bind(sfImage* Image)
|
||||
{
|
||||
CSFML_CALL(Image, Bind());
|
||||
CSFML_CALL_PTR(Image, Bind());
|
||||
}
|
||||
|
||||
|
||||
@ -237,7 +211,7 @@ void sfImage_Bind(sfImage* Image)
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfImage_SetSmooth(sfImage* Image, sfBool Smooth)
|
||||
{
|
||||
CSFML_CALL(Image, SetSmooth(Smooth == sfTrue));
|
||||
CSFML_CALL_PTR(Image, SetSmooth(Smooth == sfTrue));
|
||||
}
|
||||
|
||||
|
||||
@ -246,7 +220,7 @@ void sfImage_SetSmooth(sfImage* Image, sfBool Smooth)
|
||||
////////////////////////////////////////////////////////////
|
||||
unsigned int sfImage_GetWidth(sfImage* Image)
|
||||
{
|
||||
CSFML_CALL_RETURN(Image, GetWidth(), 0);
|
||||
CSFML_CALL_PTR_RETURN(Image, GetWidth(), 0);
|
||||
}
|
||||
|
||||
|
||||
@ -255,7 +229,7 @@ unsigned int sfImage_GetWidth(sfImage* Image)
|
||||
////////////////////////////////////////////////////////////
|
||||
unsigned int sfImage_GetHeight(sfImage* Image)
|
||||
{
|
||||
CSFML_CALL_RETURN(Image, GetHeight(), 0);
|
||||
CSFML_CALL_PTR_RETURN(Image, GetHeight(), 0);
|
||||
}
|
||||
|
||||
|
||||
@ -264,5 +238,5 @@ unsigned int sfImage_GetHeight(sfImage* Image)
|
||||
////////////////////////////////////////////////////////////
|
||||
sfBool sfImage_IsSmooth(sfImage* Image)
|
||||
{
|
||||
CSFML_CALL_RETURN(Image, IsSmooth(), sfFalse);
|
||||
CSFML_CALL_PTR_RETURN(Image, IsSmooth(), sfFalse);
|
||||
}
|
||||
|
62
CSFML/src/SFML/Graphics/ImageStruct.h
Normal file
62
CSFML/src/SFML/Graphics/ImageStruct.h
Normal file
@ -0,0 +1,62 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_IMAGESTRUCT_H
|
||||
#define SFML_IMAGESTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/Image.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfImage
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfImage
|
||||
{
|
||||
sfImage()
|
||||
{
|
||||
This = new sf::Image;
|
||||
OwnInstance = true;
|
||||
}
|
||||
|
||||
sfImage(sf::Image* Image)
|
||||
{
|
||||
This = Image;
|
||||
OwnInstance = false;
|
||||
}
|
||||
|
||||
~sfImage()
|
||||
{
|
||||
if (OwnInstance)
|
||||
delete This;
|
||||
}
|
||||
|
||||
sf::Image* This;
|
||||
bool OwnInstance;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_IMAGESTRUCT_H
|
@ -26,21 +26,11 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/PostFX.h>
|
||||
#include <SFML/Graphics/PostFX.hpp>
|
||||
#include <SFML/Graphics/PostFXStruct.h>
|
||||
#include <SFML/Graphics/ImageStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
// WARNING : this structure must always be the SAME as in Graphics/Image.h
|
||||
struct sfImage
|
||||
{
|
||||
sf::Image This;
|
||||
};
|
||||
struct sfPostFX
|
||||
{
|
||||
sf::PostFX This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Create a new post-fx from a file
|
||||
////////////////////////////////////////////////////////////
|
||||
@ -125,7 +115,7 @@ void sfPostFX_SetParameter4(sfPostFX* PostFX, const char* Name, float X, float Y
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfPostFX_SetTexture(sfPostFX* PostFX, const char* Name, sfImage* Texture)
|
||||
{
|
||||
CSFML_CALL(PostFX, SetTexture(Name, Texture ? &Texture->This : NULL))
|
||||
CSFML_CALL(PostFX, SetTexture(Name, Texture ? Texture->This : NULL))
|
||||
}
|
||||
|
||||
|
||||
|
43
CSFML/src/SFML/Graphics/PostFXStruct.h
Normal file
43
CSFML/src/SFML/Graphics/PostFXStruct.h
Normal file
@ -0,0 +1,43 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_POSTFXSTRUCT_H
|
||||
#define SFML_POSTFXSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/PostFX.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfPostFX
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfPostFX
|
||||
{
|
||||
sf::PostFX This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_POSTFXSTRUCT_H
|
190
CSFML/src/SFML/Graphics/RenderImage.cpp
Normal file
190
CSFML/src/SFML/Graphics/RenderImage.cpp
Normal file
@ -0,0 +1,190 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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.
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/RenderImage.h>
|
||||
#include <SFML/Graphics/RenderImageStruct.h>
|
||||
#include <SFML/Graphics/ShapeStruct.h>
|
||||
#include <SFML/Graphics/PostFXStruct.h>
|
||||
#include <SFML/Graphics/SpriteStruct.h>
|
||||
#include <SFML/Graphics/StringStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new renderimage
|
||||
////////////////////////////////////////////////////////////
|
||||
sfRenderImage* sfRenderImage_Create(unsigned int Width, unsigned int Height, sfBool DepthBuffer)
|
||||
{
|
||||
sfRenderImage* RenderImage = new sfRenderImage;
|
||||
RenderImage->This.Create(Width, Height, DepthBuffer == sfTrue);
|
||||
RenderImage->Target = new sfImage(const_cast<sf::Image*>(&RenderImage->This.GetImage()));
|
||||
RenderImage->DefaultView = new sfView(const_cast<sf::View*>(&RenderImage->This.GetDefaultView()));
|
||||
RenderImage->CurrentView = RenderImage->DefaultView;
|
||||
|
||||
return RenderImage;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing renderimage
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfRenderImage_Destroy(sfRenderImage* RenderImage)
|
||||
{
|
||||
delete RenderImage->DefaultView;
|
||||
delete RenderImage->Target;
|
||||
delete RenderImage;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the width of the rendering region of a renderimage
|
||||
////////////////////////////////////////////////////////////
|
||||
unsigned int sfRenderImage_GetWidth(sfRenderImage* RenderImage)
|
||||
{
|
||||
CSFML_CALL_RETURN(RenderImage, GetWidth(), 0);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the height of the rendering region of a renderimage
|
||||
////////////////////////////////////////////////////////////
|
||||
unsigned int sfRenderImage_GetHeight(sfRenderImage* RenderImage)
|
||||
{
|
||||
CSFML_CALL_RETURN(RenderImage, GetHeight(), 0);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Set a renderimage as the current target for rendering
|
||||
////////////////////////////////////////////////////////////
|
||||
sfBool sfRenderImage_SetActive(sfRenderImage* RenderImage, sfBool Active)
|
||||
{
|
||||
CSFML_CALL_RETURN(RenderImage, SetActive(Active == sfTrue), sfFalse)
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Draw something on a renderimage
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfRenderImage_DrawPostFX(sfRenderImage* RenderImage, sfPostFX* PostFX)
|
||||
{
|
||||
CSFML_CHECK(PostFX);
|
||||
CSFML_CALL(RenderImage, Draw(PostFX->This));
|
||||
}
|
||||
void sfRenderImage_DrawShape(sfRenderImage* RenderImage, sfShape* Shape)
|
||||
{
|
||||
CSFML_CHECK(Shape);
|
||||
CSFML_CALL(RenderImage, Draw(Shape->This));
|
||||
}
|
||||
void sfRenderImage_DrawSprite(sfRenderImage* RenderImage, sfSprite* Sprite)
|
||||
{
|
||||
CSFML_CHECK(Sprite);
|
||||
CSFML_CALL(RenderImage, Draw(Sprite->This));
|
||||
}
|
||||
void sfRenderImage_DrawString(sfRenderImage* RenderImage, sfString* String)
|
||||
{
|
||||
CSFML_CHECK(String);
|
||||
CSFML_CALL(RenderImage, Draw(String->This));
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Clear the renderimage with the given color
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfRenderImage_Clear(sfRenderImage* RenderImage, sfColor Color)
|
||||
{
|
||||
sf::Color SFMLColor(Color.r, Color.g, Color.b, Color.a);
|
||||
|
||||
CSFML_CALL(RenderImage, Clear(SFMLColor));
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Change the current active view of a renderimage
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfRenderImage_SetView(sfRenderImage* RenderImage, sfView* View)
|
||||
{
|
||||
CSFML_CHECK(View);
|
||||
CSFML_CALL(RenderImage, SetView(*View->This));
|
||||
RenderImage->CurrentView = View;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the current active view of a renderimage
|
||||
////////////////////////////////////////////////////////////
|
||||
const sfView* sfRenderImage_GetView(sfRenderImage* RenderImage)
|
||||
{
|
||||
CSFML_CHECK_RETURN(RenderImage, NULL);
|
||||
|
||||
return RenderImage->CurrentView;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the default view of a renderimage
|
||||
////////////////////////////////////////////////////////////
|
||||
sfView* sfRenderImage_GetDefaultView(sfRenderImage* RenderImage)
|
||||
{
|
||||
CSFML_CHECK_RETURN(RenderImage, NULL);
|
||||
|
||||
return RenderImage->DefaultView;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Tell SFML to preserve external OpenGL states, at the expense of
|
||||
/// more CPU charge. Use this function if you don't want SFML
|
||||
/// to mess up your own OpenGL states (if any).
|
||||
/// Don't enable state preservation if not needed, as it will allow
|
||||
/// SFML to do internal optimizations and improve performances.
|
||||
/// This parameter is false by default
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfRenderImage_PreserveOpenGLStates(sfRenderImage* RenderImage, sfBool Preserve)
|
||||
{
|
||||
CSFML_CALL(RenderImage, PreserveOpenGLStates(Preserve == sfTrue));
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the target image
|
||||
////////////////////////////////////////////////////////////
|
||||
sfImage* sfRenderImage_GetImage(sfRenderImage* RenderImage)
|
||||
{
|
||||
CSFML_CHECK_RETURN(RenderImage, NULL);
|
||||
|
||||
return RenderImage->Target;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Check whether the system supports render images or not
|
||||
////////////////////////////////////////////////////////////
|
||||
sfBool sfRenderImage_CanUseRenderImage()
|
||||
{
|
||||
return sf::RenderImage::CanUseRenderImage();
|
||||
}
|
49
CSFML/src/SFML/Graphics/RenderImageStruct.h
Normal file
49
CSFML/src/SFML/Graphics/RenderImageStruct.h
Normal file
@ -0,0 +1,49 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_RENDERIMAGESTRUCT_H
|
||||
#define SFML_RENDERIMAGESTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/RenderImage.hpp>
|
||||
#include <SFML/Graphics/ImageStruct.h>
|
||||
#include <SFML/Graphics/ViewStruct.h>
|
||||
#include <SFML/Window/InputStruct.h>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfRenderWindow
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfRenderImage
|
||||
{
|
||||
sf::RenderImage This;
|
||||
sfImage* Target;
|
||||
sfView* DefaultView;
|
||||
sfView* CurrentView;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_RENDERIMAGESTRUCT_H
|
@ -26,63 +26,15 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/RenderWindow.h>
|
||||
#include <SFML/Graphics/RenderWindow.hpp>
|
||||
#include <SFML/Graphics/Shape.hpp>
|
||||
#include <SFML/Graphics/PostFX.hpp>
|
||||
#include <SFML/Graphics/Image.hpp>
|
||||
#include <SFML/Graphics/Sprite.hpp>
|
||||
#include <SFML/Graphics/String.hpp>
|
||||
#include <SFML/Graphics/View.hpp>
|
||||
#include <SFML/Graphics/RenderWindowStruct.h>
|
||||
#include <SFML/Graphics/ShapeStruct.h>
|
||||
#include <SFML/Graphics/PostFXStruct.h>
|
||||
#include <SFML/Graphics/ImageStruct.h>
|
||||
#include <SFML/Graphics/SpriteStruct.h>
|
||||
#include <SFML/Graphics/StringStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
// WARNING : this structure must always be the SAME as in Graphics/PostFX.h
|
||||
struct sfPostFX
|
||||
{
|
||||
sf::PostFX This;
|
||||
};
|
||||
// WARNING : this structure must always be the SAME as in Graphics/Shape.h
|
||||
struct sfShape
|
||||
{
|
||||
sf::Shape This;
|
||||
};
|
||||
// WARNING : this structure must always be the SAME as in Graphics/Sprite.h
|
||||
struct sfSprite
|
||||
{
|
||||
sf::Sprite This;
|
||||
sfImage* Image;
|
||||
sfIntRect SubRect;
|
||||
};
|
||||
// WARNING : this structure must always be the SAME as in Graphics/String.h
|
||||
struct sfString
|
||||
{
|
||||
sf::String This;
|
||||
std::string Text;
|
||||
};
|
||||
// WARNING : this structure must always be the SAME as in Graphics/Image.h
|
||||
struct sfImage
|
||||
{
|
||||
sf::Image This;
|
||||
};
|
||||
// WARNING : this structure must always be the SAME as in Window/Input.h
|
||||
struct sfInput
|
||||
{
|
||||
const sf::Input* This;
|
||||
};
|
||||
// WARNING : this structure must always be the SAME as in Graphics/View.h
|
||||
struct sfView
|
||||
{
|
||||
sf::View* This;
|
||||
};
|
||||
struct sfRenderWindow
|
||||
{
|
||||
sf::RenderWindow This;
|
||||
sfInput Input;
|
||||
sfView DefaultView;
|
||||
sfView* CurrentView;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new renderwindow
|
||||
////////////////////////////////////////////////////////////
|
||||
@ -95,9 +47,9 @@ sfRenderWindow* sfRenderWindow_Create(sfVideoMode Mode, const char* Title, unsig
|
||||
sfRenderWindow* RenderWindow = new sfRenderWindow;
|
||||
sf::ContextSettings Settings(Params.DepthBits, Params.StencilBits, Params.AntialiasingLevel);
|
||||
RenderWindow->This.Create(VideoMode, Title, Style, Settings);
|
||||
RenderWindow->Input.This = &RenderWindow->This.GetInput();
|
||||
RenderWindow->DefaultView.This = &RenderWindow->This.GetDefaultView();
|
||||
RenderWindow->CurrentView = &RenderWindow->DefaultView;
|
||||
RenderWindow->Input.This = &RenderWindow->This.GetInput();
|
||||
RenderWindow->DefaultView = new sfView(const_cast<sf::View*>(&RenderWindow->This.GetDefaultView()));
|
||||
RenderWindow->CurrentView = RenderWindow->DefaultView;
|
||||
|
||||
return RenderWindow;
|
||||
}
|
||||
@ -111,9 +63,9 @@ sfRenderWindow* sfRenderWindow_CreateFromHandle(sfWindowHandle Handle, sfContext
|
||||
sfRenderWindow* RenderWindow = new sfRenderWindow;
|
||||
sf::ContextSettings Settings(Params.DepthBits, Params.StencilBits, Params.AntialiasingLevel);
|
||||
RenderWindow->This.Create(Handle, Settings);
|
||||
RenderWindow->Input.This = &RenderWindow->This.GetInput();
|
||||
RenderWindow->DefaultView.This = &RenderWindow->This.GetDefaultView();
|
||||
RenderWindow->CurrentView = &RenderWindow->DefaultView;
|
||||
RenderWindow->Input.This = &RenderWindow->This.GetInput();
|
||||
RenderWindow->DefaultView = new sfView(const_cast<sf::View*>(&RenderWindow->This.GetDefaultView()));
|
||||
RenderWindow->CurrentView = RenderWindow->DefaultView;
|
||||
|
||||
return RenderWindow;
|
||||
}
|
||||
@ -124,6 +76,7 @@ sfRenderWindow* sfRenderWindow_CreateFromHandle(sfWindowHandle Handle, sfContext
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfRenderWindow_Destroy(sfRenderWindow* RenderWindow)
|
||||
{
|
||||
delete RenderWindow->DefaultView;
|
||||
delete RenderWindow;
|
||||
}
|
||||
|
||||
@ -420,7 +373,7 @@ sfImage* sfRenderWindow_Capture(sfRenderWindow* RenderWindow)
|
||||
CSFML_CHECK_RETURN(RenderWindow, NULL);
|
||||
|
||||
sfImage* Image = new sfImage;
|
||||
Image->This = RenderWindow->This.Capture();
|
||||
*Image->This = RenderWindow->This.Capture();
|
||||
|
||||
return Image;
|
||||
}
|
||||
@ -465,7 +418,7 @@ sfView* sfRenderWindow_GetDefaultView(sfRenderWindow* RenderWindow)
|
||||
{
|
||||
CSFML_CHECK_RETURN(RenderWindow, NULL);
|
||||
|
||||
return &RenderWindow->DefaultView;
|
||||
return RenderWindow->DefaultView;
|
||||
}
|
||||
|
||||
|
||||
|
48
CSFML/src/SFML/Graphics/RenderWindowStruct.h
Normal file
48
CSFML/src/SFML/Graphics/RenderWindowStruct.h
Normal file
@ -0,0 +1,48 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_RENDERWINDOWSTRUCT_H
|
||||
#define SFML_RENDERWINDOWSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/RenderWindow.hpp>
|
||||
#include <SFML/Graphics/ViewStruct.h>
|
||||
#include <SFML/Window/InputStruct.h>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfRenderWindow
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfRenderWindow
|
||||
{
|
||||
sf::RenderWindow This;
|
||||
sfInput Input;
|
||||
sfView* DefaultView;
|
||||
sfView* CurrentView;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_RENDERWINDOWSTRUCT_H
|
@ -26,18 +26,11 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/Shape.h>
|
||||
#include <SFML/Graphics/Shape.hpp>
|
||||
#include <SFML/Graphics/ShapeStruct.h>
|
||||
#include <SFML/Graphics/Color.hpp>
|
||||
#include <SFML/Graphics/Image.hpp>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
struct sfShape
|
||||
{
|
||||
sf::Shape This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Create a new shape
|
||||
////////////////////////////////////////////////////////////
|
||||
@ -46,6 +39,7 @@ sfShape* sfShape_Create()
|
||||
return new sfShape;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Create a new shape made of a single line
|
||||
////////////////////////////////////////////////////////////
|
||||
|
43
CSFML/src/SFML/Graphics/ShapeStruct.h
Normal file
43
CSFML/src/SFML/Graphics/ShapeStruct.h
Normal file
@ -0,0 +1,43 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_SHAPESTRUCT_H
|
||||
#define SFML_SHAPESTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/Shape.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfShape
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfShape
|
||||
{
|
||||
sf::Shape This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_SHAPESTRUCT_H
|
@ -26,25 +26,12 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/Sprite.h>
|
||||
#include <SFML/Graphics/Sprite.hpp>
|
||||
#include <SFML/Graphics/SpriteStruct.h>
|
||||
#include <SFML/Graphics/Color.hpp>
|
||||
#include <SFML/Graphics/Image.hpp>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
// WARNING : this structure must always be the SAME as in Graphics/Image.h
|
||||
struct sfImage
|
||||
{
|
||||
sf::Image This;
|
||||
};
|
||||
struct sfSprite
|
||||
{
|
||||
sf::Sprite This;
|
||||
sfImage* Image;
|
||||
sfIntRect SubRect;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Create a new sprite
|
||||
////////////////////////////////////////////////////////////
|
||||
@ -310,7 +297,7 @@ void sfSprite_SetImage(sfSprite* Sprite, sfImage* Image)
|
||||
{
|
||||
if (Image)
|
||||
{
|
||||
CSFML_CALL(Sprite, SetImage(Image->This))
|
||||
CSFML_CALL(Sprite, SetImage(*Image->This))
|
||||
Sprite->Image = Image;
|
||||
}
|
||||
}
|
||||
|
47
CSFML/src/SFML/Graphics/SpriteStruct.h
Normal file
47
CSFML/src/SFML/Graphics/SpriteStruct.h
Normal file
@ -0,0 +1,47 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_SPRITESTRUCT_H
|
||||
#define SFML_SPRITESTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/Sprite.hpp>
|
||||
#include <SFML/Graphics/ImageStruct.h>
|
||||
#include <SFML/Graphics/Rect.h>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfMusic
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfSprite
|
||||
{
|
||||
sf::Sprite This;
|
||||
sfImage* Image;
|
||||
sfIntRect SubRect;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_SPRITESTRUCT_H
|
@ -26,28 +26,12 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/String.h>
|
||||
#include <SFML/Graphics/StringStruct.h>
|
||||
#include <SFML/Graphics/Font.h>
|
||||
#include <SFML/Graphics/String.hpp>
|
||||
#include <SFML/Graphics/Color.hpp>
|
||||
#include <SFML/Graphics/Rect.hpp>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
// WARNING : this structure must always be the SAME as in Graphics/Font.h
|
||||
struct sfFont
|
||||
{
|
||||
sf::Font This;
|
||||
};
|
||||
|
||||
struct sfString
|
||||
{
|
||||
sf::String This;
|
||||
std::string Text;
|
||||
sfFont* Font;
|
||||
sfFloatRect Rect;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Create a new string
|
||||
////////////////////////////////////////////////////////////
|
||||
|
49
CSFML/src/SFML/Graphics/StringStruct.h
Normal file
49
CSFML/src/SFML/Graphics/StringStruct.h
Normal file
@ -0,0 +1,49 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_STRINGSTRUCT_H
|
||||
#define SFML_STRINGSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/String.hpp>
|
||||
#include <SFML/Graphics/FontStruct.h>
|
||||
#include <SFML/Graphics/Rect.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfMusic
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfString
|
||||
{
|
||||
sf::String This;
|
||||
std::string Text;
|
||||
sfFont* Font;
|
||||
sfFloatRect Rect;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_STRINGSTRUCT_H
|
@ -26,21 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/View.h>
|
||||
#include <SFML/Graphics/View.hpp>
|
||||
#include <SFML/Graphics/Rect.h>
|
||||
#include <SFML/Graphics/ViewStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
struct sfView
|
||||
{
|
||||
sfView() : This(new sf::View) {}
|
||||
sfView(sfFloatRect Rect) : This(new sf::View(sf::FloatRect(Rect.Left, Rect.Top, Rect.Right, Rect.Bottom))) {}
|
||||
~sfView() {delete This;}
|
||||
|
||||
sf::View* This; // pointer needed for RenderView
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a default view (1000x1000)
|
||||
////////////////////////////////////////////////////////////
|
||||
|
68
CSFML/src/SFML/Graphics/ViewStruct.h
Normal file
68
CSFML/src/SFML/Graphics/ViewStruct.h
Normal file
@ -0,0 +1,68 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_VIEWSTRUCT_H
|
||||
#define SFML_VIEWSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/View.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfMusic
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfView
|
||||
{
|
||||
sfView() :
|
||||
This(new sf::View),
|
||||
OwnInstance(true)
|
||||
{
|
||||
}
|
||||
|
||||
sfView(sfFloatRect Rect) :
|
||||
This(new sf::View(sf::FloatRect(Rect.Left, Rect.Top, Rect.Right, Rect.Bottom))),
|
||||
OwnInstance(true)
|
||||
{
|
||||
}
|
||||
|
||||
sfView(sf::View* View) :
|
||||
This(View),
|
||||
OwnInstance(false)
|
||||
{
|
||||
}
|
||||
|
||||
~sfView()
|
||||
{
|
||||
if (OwnInstance)
|
||||
delete This;
|
||||
}
|
||||
|
||||
sf::View* This; // pointer needed for RenderWindow
|
||||
bool OwnInstance;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_VIEWSTRUCT_H
|
@ -3,7 +3,8 @@ export CPP = g++
|
||||
export CFLAGS = -W -Wall -pedantic -fPIC -Wno-unused -I../.. -I../../../include -DNDEBUG -DCSFML_EXPORTS -O2
|
||||
export LDFLAGS = -shared
|
||||
export LIBPATH = ../../../lib
|
||||
export VERSION = 2.0export CP = cp
|
||||
export VERSION = 2.0
|
||||
export CP = cp
|
||||
export LN = ln
|
||||
export LNFLAGS = -s -f
|
||||
export DESTDIR = /usr
|
||||
|
@ -26,19 +26,11 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Network/Ftp.h>
|
||||
#include <SFML/Network/Ftp.hpp>
|
||||
#include <SFML/Network/FtpStruct.h>
|
||||
#include <SFML/Network/IPAddress.hpp>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
struct sfFtpListingResponse
|
||||
{
|
||||
sfFtpListingResponse(const sf::Ftp::ListingResponse& Response) : This(Response) {}
|
||||
|
||||
sf::Ftp::ListingResponse This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing Ftp directory response
|
||||
////////////////////////////////////////////////////////////
|
||||
@ -95,14 +87,6 @@ const char* sfFtpListingResponse_GetFilename(sfFtpListingResponse* FtpListingRes
|
||||
}
|
||||
|
||||
|
||||
struct sfFtpDirectoryResponse
|
||||
{
|
||||
sfFtpDirectoryResponse(const sf::Ftp::DirectoryResponse& Response) : This(Response) {}
|
||||
|
||||
sf::Ftp::DirectoryResponse This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing Ftp directory response
|
||||
////////////////////////////////////////////////////////////
|
||||
@ -151,14 +135,6 @@ const char* sfFtpDirectoryResponse_GetDirectory(sfFtpDirectoryResponse* FtpDirec
|
||||
}
|
||||
|
||||
|
||||
struct sfFtpResponse
|
||||
{
|
||||
sfFtpResponse(const sf::Ftp::Response& Response) : This(Response) {}
|
||||
|
||||
sf::Ftp::Response This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing Ftp response
|
||||
////////////////////////////////////////////////////////////
|
||||
@ -200,12 +176,6 @@ const char* sfFtpResponse_GetMessage(sfFtpResponse* FtpResponse)
|
||||
}
|
||||
|
||||
|
||||
struct sfFtp
|
||||
{
|
||||
sf::Ftp This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new Ftp
|
||||
////////////////////////////////////////////////////////////
|
||||
|
85
CSFML/src/SFML/Network/FtpStruct.h
Normal file
85
CSFML/src/SFML/Network/FtpStruct.h
Normal file
@ -0,0 +1,85 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_FTPSTRUCT_H
|
||||
#define SFML_FTPSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Network/Ftp.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfFtp
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfFtp
|
||||
{
|
||||
sf::Ftp This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfFtpResponse
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfFtpResponse
|
||||
{
|
||||
sfFtpResponse(const sf::Ftp::Response& Response)
|
||||
: This(Response)
|
||||
{
|
||||
}
|
||||
|
||||
sf::Ftp::Response This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfFtpDirectoryResponse
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfFtpDirectoryResponse
|
||||
{
|
||||
sfFtpDirectoryResponse(const sf::Ftp::DirectoryResponse& Response)
|
||||
: This(Response)
|
||||
{
|
||||
}
|
||||
|
||||
sf::Ftp::DirectoryResponse This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfFtpListingResponse
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfFtpListingResponse
|
||||
{
|
||||
sfFtpListingResponse(const sf::Ftp::ListingResponse& Response)
|
||||
: This(Response)
|
||||
{
|
||||
}
|
||||
|
||||
sf::Ftp::ListingResponse This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_FTPSTRUCT_H
|
@ -26,16 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Network/Http.h>
|
||||
#include <SFML/Network/Http.hpp>
|
||||
#include <SFML/Network/HttpStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
struct sfHttpRequest
|
||||
{
|
||||
sf::Http::Request This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new Http request
|
||||
////////////////////////////////////////////////////////////
|
||||
@ -106,12 +100,6 @@ void sfHttpRequest_SetBody(sfHttpRequest* HttpRequest, const char* Body)
|
||||
}
|
||||
|
||||
|
||||
struct sfHttpResponse
|
||||
{
|
||||
sf::Http::Response This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing Http response
|
||||
////////////////////////////////////////////////////////////
|
||||
@ -178,12 +166,6 @@ const char* sfHttpResponse_GetBody(sfHttpResponse* HttpResponse)
|
||||
}
|
||||
|
||||
|
||||
struct sfHttp
|
||||
{
|
||||
sf::Http This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new Http object
|
||||
////////////////////////////////////////////////////////////
|
||||
|
61
CSFML/src/SFML/Network/HttpStruct.h
Normal file
61
CSFML/src/SFML/Network/HttpStruct.h
Normal file
@ -0,0 +1,61 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_HTTPSTRUCT_H
|
||||
#define SFML_HTTPSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Network/Http.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfHttp
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfHttp
|
||||
{
|
||||
sf::Http This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfHttpRequest
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfHttpRequest
|
||||
{
|
||||
sf::Http::Request This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfHttpResponse
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfHttpResponse
|
||||
{
|
||||
sf::Http::Response This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_HTTPSTRUCT_H
|
@ -26,16 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Network/Packet.h>
|
||||
#include <SFML/Network/Packet.hpp>
|
||||
#include <SFML/Network/PacketStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
struct sfPacket
|
||||
{
|
||||
sf::Packet This;
|
||||
};
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
////////////////////////////////////////////////////////////
|
||||
|
43
CSFML/src/SFML/Network/PacketStruct.h
Normal file
43
CSFML/src/SFML/Network/PacketStruct.h
Normal file
@ -0,0 +1,43 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_PACKETSTRUCT_H
|
||||
#define SFML_PACKETSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Network/Packet.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfPacket
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfPacket
|
||||
{
|
||||
sf::Packet This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_PACKETSTRUCT_H
|
@ -26,32 +26,8 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Network/Selector.h>
|
||||
#include <SFML/Network/Selector.hpp>
|
||||
#include <SFML/Network/SelectorStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
#include <map>
|
||||
|
||||
|
||||
// WARNING : this structure must always be the SAME as in Network/SocketTCP.h
|
||||
struct sfSocketTCP
|
||||
{
|
||||
sf::SocketTCP This;
|
||||
};
|
||||
// WARNING : this structure must always be the SAME as in Network/SocketUDP.h
|
||||
struct sfSocketUDP
|
||||
{
|
||||
sf::SocketUDP This;
|
||||
};
|
||||
struct sfSelectorTCP
|
||||
{
|
||||
sf::SelectorTCP This;
|
||||
std::map<sf::SocketTCP, sfSocketTCP*> Sockets;
|
||||
};
|
||||
struct sfSelectorUDP
|
||||
{
|
||||
sf::SelectorUDP This;
|
||||
std::map<sf::SocketUDP, sfSocketUDP*> Sockets;
|
||||
};
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
57
CSFML/src/SFML/Network/SelectorStruct.h
Normal file
57
CSFML/src/SFML/Network/SelectorStruct.h
Normal file
@ -0,0 +1,57 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_SELECTORSTRUCT_H
|
||||
#define SFML_SELECTORSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Network/Selector.hpp>
|
||||
#include <SFML/Network/SocketTCPStruct.h>
|
||||
#include <SFML/Network/SocketUDPStruct.h>
|
||||
#include <map>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of SelectorTCP
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfSelectorTCP
|
||||
{
|
||||
sf::SelectorTCP This;
|
||||
std::map<sf::SocketTCP, sfSocketTCP*> Sockets;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfSelectorUDP
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfSelectorUDP
|
||||
{
|
||||
sf::SelectorUDP This;
|
||||
std::map<sf::SocketUDP, sfSocketUDP*> Sockets;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_SELECTORSTRUCT_H
|
@ -26,25 +26,13 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Network/SocketTCP.h>
|
||||
#include <SFML/Network/SocketTCP.hpp>
|
||||
#include <SFML/Network/SocketTCPStruct.h>
|
||||
#include <SFML/Network/PacketStruct.h>
|
||||
#include <SFML/Network/IPAddress.hpp>
|
||||
#include <SFML/Network/Packet.hpp>
|
||||
#include <SFML/Internal.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
// WARNING : this structure must always be the SAME as in Network/Packet.h
|
||||
struct sfPacket
|
||||
{
|
||||
sf::Packet This;
|
||||
};
|
||||
|
||||
struct sfSocketTCP
|
||||
{
|
||||
sf::SocketTCP This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new TCP socket
|
||||
////////////////////////////////////////////////////////////
|
||||
|
43
CSFML/src/SFML/Network/SocketTCPStruct.h
Normal file
43
CSFML/src/SFML/Network/SocketTCPStruct.h
Normal file
@ -0,0 +1,43 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_SOCKETTCPSTRUCT_H
|
||||
#define SFML_SOCKETTCPSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Network/SocketTCP.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfSocketTCP
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfSocketTCP
|
||||
{
|
||||
sf::SocketTCP This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_SOCKETTCPSTRUCT_H
|
@ -26,25 +26,13 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Network/SocketUDP.h>
|
||||
#include <SFML/Network/SocketUDP.hpp>
|
||||
#include <SFML/Network/SocketUDPStruct.h>
|
||||
#include <SFML/Network/PacketStruct.h>
|
||||
#include <SFML/Network/IPAddress.hpp>
|
||||
#include <SFML/Network/Packet.hpp>
|
||||
#include <SFML/Internal.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
// WARNING : this structure must always be the SAME as in Network/Packet.h
|
||||
struct sfPacket
|
||||
{
|
||||
sf::Packet This;
|
||||
};
|
||||
|
||||
struct sfSocketUDP
|
||||
{
|
||||
sf::SocketUDP This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new UDP socket
|
||||
////////////////////////////////////////////////////////////
|
||||
|
43
CSFML/src/SFML/Network/SocketUDPStruct.h
Normal file
43
CSFML/src/SFML/Network/SocketUDPStruct.h
Normal file
@ -0,0 +1,43 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_SOCKETUDPSTRUCT_H
|
||||
#define SFML_SOCKETUDPSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Network/SocketUDP.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfSocketUDP
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfSocketUDP
|
||||
{
|
||||
sf::SocketUDP This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_SOCKETUDPSTRUCT_H
|
@ -26,16 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/System/Clock.h>
|
||||
#include <SFML/System/Clock.hpp>
|
||||
#include <SFML/System/ClockStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
struct sfClock
|
||||
{
|
||||
sf::Clock This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Create a new clock and start it
|
||||
////////////////////////////////////////////////////////////
|
||||
|
43
CSFML/src/SFML/System/ClockStruct.h
Normal file
43
CSFML/src/SFML/System/ClockStruct.h
Normal file
@ -0,0 +1,43 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_CLOCKSTRUCT_H
|
||||
#define SFML_CLOCKSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/System/Clock.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfClock
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfClock
|
||||
{
|
||||
sf::Clock This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_CLOCKSTRUCT_H
|
@ -26,16 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/System/Mutex.h>
|
||||
#include <SFML/System/Mutex.hpp>
|
||||
#include <SFML/System/MutexStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
struct sfMutex
|
||||
{
|
||||
sf::Mutex This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Create a new mutex
|
||||
////////////////////////////////////////////////////////////
|
||||
|
43
CSFML/src/SFML/System/MutexStruct.h
Normal file
43
CSFML/src/SFML/System/MutexStruct.h
Normal file
@ -0,0 +1,43 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_MUTEXSTRUCT_H
|
||||
#define SFML_MUTEXSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/System/Mutex.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfMutex
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfMutex
|
||||
{
|
||||
sf::Mutex This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_MUTEXSTRUCT_H
|
@ -26,18 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/System/Thread.h>
|
||||
#include <SFML/System/Thread.hpp>
|
||||
#include <SFML/System/ThreadStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
struct sfThread
|
||||
{
|
||||
sfThread(void (*Function)(void*), void* UserData) : This(Function, UserData) {}
|
||||
|
||||
sf::Thread This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new thread from a function pointer
|
||||
////////////////////////////////////////////////////////////
|
||||
|
48
CSFML/src/SFML/System/ThreadStruct.h
Normal file
48
CSFML/src/SFML/System/ThreadStruct.h
Normal file
@ -0,0 +1,48 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_THREADSTRUCT_H
|
||||
#define SFML_THREADSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/System/Thread.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfThread
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfThread
|
||||
{
|
||||
sfThread(void (*Function)(void*), void* UserData) :
|
||||
This(Function, UserData)
|
||||
{
|
||||
}
|
||||
|
||||
sf::Thread This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_THREADSTRUCT_H
|
@ -26,16 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Window/Context.h>
|
||||
#include <SFML/Window/Context.hpp>
|
||||
#include <SFML/Window/ContextStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
struct sfContext
|
||||
{
|
||||
sf::Context This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new context
|
||||
////////////////////////////////////////////////////////////
|
||||
|
43
CSFML/src/SFML/Window/ContextStruct.h
Normal file
43
CSFML/src/SFML/Window/ContextStruct.h
Normal file
@ -0,0 +1,43 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_CONTEXTSTRUCT_H
|
||||
#define SFML_CONTEXTSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Window/Context.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfContext
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfContext
|
||||
{
|
||||
sf::Context This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_CONTEXTSTRUCT_H
|
@ -1,7 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||
// Copyright (C) 2007-2009 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.
|
||||
@ -26,16 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Window/Input.h>
|
||||
#include <SFML/Window/Input.hpp>
|
||||
#include <SFML/Window/InputStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
struct sfInput
|
||||
{
|
||||
const sf::Input* This;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the state of a key
|
||||
////////////////////////////////////////////////////////////
|
||||
|
43
CSFML/src/SFML/Window/InputStruct.h
Normal file
43
CSFML/src/SFML/Window/InputStruct.h
Normal file
@ -0,0 +1,43 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_INPUTSTRUCT_H
|
||||
#define SFML_INPUTSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Window/Input.hpp>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfInput
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfInput
|
||||
{
|
||||
const sf::Input* This;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_INPUTSTRUCT_H
|
@ -1,7 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||
// Copyright (C) 2007-2009 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.
|
||||
|
@ -1,7 +1,7 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009-2008 Laurent Gomila (laurent.gom@gmail.com)
|
||||
// Copyright (C) 2007-2009 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.
|
||||
@ -26,23 +26,10 @@
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Window/Window.h>
|
||||
#include <SFML/Window/Window.hpp>
|
||||
#include <SFML/Window/Input.h>
|
||||
#include <SFML/Window/WindowStruct.h>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
// WARNING : this structure must always be the SAME as in Window/Input.h
|
||||
struct sfInput
|
||||
{
|
||||
const sf::Input* This;
|
||||
};
|
||||
struct sfWindow
|
||||
{
|
||||
sf::Window This;
|
||||
sfInput Input;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a new window
|
||||
////////////////////////////////////////////////////////////
|
||||
|
45
CSFML/src/SFML/Window/WindowStruct.h
Normal file
45
CSFML/src/SFML/Window/WindowStruct.h
Normal file
@ -0,0 +1,45 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2009 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_WINDOWSTRUCT_H
|
||||
#define SFML_WINDOWSTRUCT_H
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Window/Window.hpp>
|
||||
#include <SFML/Window/InputStruct.h>
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Internal structure of sfWindow
|
||||
////////////////////////////////////////////////////////////
|
||||
struct sfWindow
|
||||
{
|
||||
sf::Window This;
|
||||
sfInput Input;
|
||||
};
|
||||
|
||||
|
||||
#endif // SFML_WINDOWSTRUCT_H
|
@ -245,11 +245,10 @@
|
||||
A011E5E70F65786600FAE48D /* zlib.h in Headers */ = {isa = PBXBuildFile; fileRef = A011E5660F65786600FAE48D /* zlib.h */; };
|
||||
A011E5E80F65786600FAE48D /* zutil.c in Sources */ = {isa = PBXBuildFile; fileRef = A011E5670F65786600FAE48D /* zutil.c */; };
|
||||
A011E5E90F65786600FAE48D /* zutil.h in Headers */ = {isa = PBXBuildFile; fileRef = A011E5680F65786600FAE48D /* zutil.h */; };
|
||||
A011E5FB0F65791B00FAE48D /* libcsfml-system-d.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A011E3720F65749300FAE48D /* libcsfml-system-d.dylib */; };
|
||||
A011E6060F65797100FAE48D /* libcsfml-system-d.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A011E3720F65749300FAE48D /* libcsfml-system-d.dylib */; };
|
||||
A011E6140F6579CA00FAE48D /* libcsfml-window-d.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A011E38F0F6574B500FAE48D /* libcsfml-window-d.dylib */; };
|
||||
A011E6170F6579D100FAE48D /* libcsfml-system-d.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A011E3720F65749300FAE48D /* libcsfml-system-d.dylib */; };
|
||||
A01BEF370F6BF2490095262C /* sndfile.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A01BEF360F6BF2490095262C /* sndfile.framework */; };
|
||||
A011E5FB0F65791B00FAE48D /* libcsfml-system.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A011E3720F65749300FAE48D /* libcsfml-system.dylib */; };
|
||||
A011E6060F65797100FAE48D /* libcsfml-system.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A011E3720F65749300FAE48D /* libcsfml-system.dylib */; };
|
||||
A011E6140F6579CA00FAE48D /* libcsfml-window.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A011E38F0F6574B500FAE48D /* libcsfml-window.dylib */; };
|
||||
A011E6170F6579D100FAE48D /* libcsfml-system.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A011E3720F65749300FAE48D /* libcsfml-system.dylib */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
@ -291,11 +290,11 @@
|
||||
/* End PBXContainerItemProxy section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
A011E3720F65749300FAE48D /* libcsfml-system-d.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "libcsfml-system-d.dylib"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A011E37D0F65749F00FAE48D /* libcsfml-network-d.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "libcsfml-network-d.dylib"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A011E3860F6574AC00FAE48D /* libcsfml-audio-d.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "libcsfml-audio-d.dylib"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A011E38F0F6574B500FAE48D /* libcsfml-window-d.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "libcsfml-window-d.dylib"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A011E3980F6574BE00FAE48D /* libcsfml-graphics-d.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "libcsfml-graphics-d.dylib"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A011E3720F65749300FAE48D /* libcsfml-system.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "libcsfml-system.dylib"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A011E37D0F65749F00FAE48D /* libcsfml-network.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "libcsfml-network.dylib"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A011E3860F6574AC00FAE48D /* libcsfml-audio.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "libcsfml-audio.dylib"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A011E38F0F6574B500FAE48D /* libcsfml-window.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "libcsfml-window.dylib"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A011E3980F6574BE00FAE48D /* libcsfml-graphics.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "libcsfml-graphics.dylib"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
A011E3A40F6574E400FAE48D /* SFML-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SFML-Info.plist"; sourceTree = "<group>"; };
|
||||
A011E3DE0F65776B00FAE48D /* Sleep.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = Sleep.cpp; path = ../src/SFML/System/Sleep.cpp; sourceTree = SOURCE_ROOT; };
|
||||
A011E3DF0F65776B00FAE48D /* Thread.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = Thread.cpp; path = ../src/SFML/System/Thread.cpp; sourceTree = SOURCE_ROOT; };
|
||||
@ -517,7 +516,6 @@
|
||||
A011E5660F65786600FAE48D /* zlib.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = zlib.h; sourceTree = "<group>"; };
|
||||
A011E5670F65786600FAE48D /* zutil.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = zutil.c; sourceTree = "<group>"; };
|
||||
A011E5680F65786600FAE48D /* zutil.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = zutil.h; sourceTree = "<group>"; };
|
||||
A01BEF360F6BF2490095262C /* sndfile.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = sndfile.framework; path = "../../extlibs/libs-xcode/sndfile.framework"; sourceTree = SOURCE_ROOT; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
@ -539,8 +537,7 @@
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
A011E5FB0F65791B00FAE48D /* libcsfml-system-d.dylib in Frameworks */,
|
||||
A01BEF370F6BF2490095262C /* sndfile.framework in Frameworks */,
|
||||
A011E5FB0F65791B00FAE48D /* libcsfml-system.dylib in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@ -548,7 +545,7 @@
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
A011E6060F65797100FAE48D /* libcsfml-system-d.dylib in Frameworks */,
|
||||
A011E6060F65797100FAE48D /* libcsfml-system.dylib in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@ -556,8 +553,8 @@
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
A011E6140F6579CA00FAE48D /* libcsfml-window-d.dylib in Frameworks */,
|
||||
A011E6170F6579D100FAE48D /* libcsfml-system-d.dylib in Frameworks */,
|
||||
A011E6140F6579CA00FAE48D /* libcsfml-window.dylib in Frameworks */,
|
||||
A011E6170F6579D100FAE48D /* libcsfml-system.dylib in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@ -567,7 +564,6 @@
|
||||
A011E3550F65738800FAE48D = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A011E3C10F6575B300FAE48D /* SFML */,
|
||||
A011E3C80F6575D800FAE48D /* csfml-system */,
|
||||
A011E3C70F6575D000FAE48D /* csfml-network */,
|
||||
A011E3C40F6575C100FAE48D /* csfml-audio */,
|
||||
@ -581,22 +577,15 @@
|
||||
A011E3730F65749300FAE48D /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A011E3720F65749300FAE48D /* libcsfml-system-d.dylib */,
|
||||
A011E37D0F65749F00FAE48D /* libcsfml-network-d.dylib */,
|
||||
A011E3860F6574AC00FAE48D /* libcsfml-audio-d.dylib */,
|
||||
A011E38F0F6574B500FAE48D /* libcsfml-window-d.dylib */,
|
||||
A011E3980F6574BE00FAE48D /* libcsfml-graphics-d.dylib */,
|
||||
A011E3720F65749300FAE48D /* libcsfml-system.dylib */,
|
||||
A011E37D0F65749F00FAE48D /* libcsfml-network.dylib */,
|
||||
A011E3860F6574AC00FAE48D /* libcsfml-audio.dylib */,
|
||||
A011E38F0F6574B500FAE48D /* libcsfml-window.dylib */,
|
||||
A011E3980F6574BE00FAE48D /* libcsfml-graphics.dylib */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A011E3C10F6575B300FAE48D /* SFML */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
name = SFML;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A011E3C20F6575B700FAE48D /* csfml-graphics */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
@ -630,7 +619,6 @@
|
||||
A011E3C40F6575C100FAE48D /* csfml-audio */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A01BEF360F6BF2490095262C /* sndfile.framework */,
|
||||
A011E45E0F65783900FAE48D /* Audio */,
|
||||
A011E3F80F65778600FAE48D /* Listener.cpp */,
|
||||
A011E3F90F65778600FAE48D /* Music.cpp */,
|
||||
@ -1088,7 +1076,7 @@
|
||||
);
|
||||
name = "csfml-system";
|
||||
productName = "csfml-system";
|
||||
productReference = A011E3720F65749300FAE48D /* libcsfml-system-d.dylib */;
|
||||
productReference = A011E3720F65749300FAE48D /* libcsfml-system.dylib */;
|
||||
productType = "com.apple.product-type.library.dynamic";
|
||||
};
|
||||
A011E37C0F65749F00FAE48D /* csfml-network */ = {
|
||||
@ -1105,7 +1093,7 @@
|
||||
);
|
||||
name = "csfml-network";
|
||||
productName = "csfml-network";
|
||||
productReference = A011E37D0F65749F00FAE48D /* libcsfml-network-d.dylib */;
|
||||
productReference = A011E37D0F65749F00FAE48D /* libcsfml-network.dylib */;
|
||||
productType = "com.apple.product-type.library.dynamic";
|
||||
};
|
||||
A011E3850F6574AC00FAE48D /* csfml-audio */ = {
|
||||
@ -1122,7 +1110,7 @@
|
||||
);
|
||||
name = "csfml-audio";
|
||||
productName = "csfml-audio";
|
||||
productReference = A011E3860F6574AC00FAE48D /* libcsfml-audio-d.dylib */;
|
||||
productReference = A011E3860F6574AC00FAE48D /* libcsfml-audio.dylib */;
|
||||
productType = "com.apple.product-type.library.dynamic";
|
||||
};
|
||||
A011E38E0F6574B500FAE48D /* csfml-window */ = {
|
||||
@ -1139,7 +1127,7 @@
|
||||
);
|
||||
name = "csfml-window";
|
||||
productName = "csfml-window";
|
||||
productReference = A011E38F0F6574B500FAE48D /* libcsfml-window-d.dylib */;
|
||||
productReference = A011E38F0F6574B500FAE48D /* libcsfml-window.dylib */;
|
||||
productType = "com.apple.product-type.library.dynamic";
|
||||
};
|
||||
A011E3970F6574BE00FAE48D /* csfml-graphics */ = {
|
||||
@ -1156,7 +1144,7 @@
|
||||
);
|
||||
name = "csfml-graphics";
|
||||
productName = "csfml-graphics";
|
||||
productReference = A011E3980F6574BE00FAE48D /* libcsfml-graphics-d.dylib */;
|
||||
productReference = A011E3980F6574BE00FAE48D /* libcsfml-graphics.dylib */;
|
||||
productType = "com.apple.product-type.library.dynamic";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
@ -1417,11 +1405,18 @@
|
||||
A011E3580F65738800FAE48D /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
ARCHS = "$(ARCHS_STANDARD_32_BIT_PRE_XCODE_3_1)";
|
||||
ARCHS_STANDARD_32_BIT_PRE_XCODE_3_1 = "ppc i386";
|
||||
CONFIGURATION_BUILD_DIR = "$(SRCROOT)/../../lib";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(SRCROOT)/../../lib",
|
||||
"$(SRCROOT)/../lib",
|
||||
"$(SRCROOT)/../../extlibs/bin",
|
||||
);
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = CSFML_EXPORTS;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_CHECK_SWITCH_STATEMENTS = YES;
|
||||
@ -1441,8 +1436,14 @@
|
||||
"$(SRCROOT)/../include",
|
||||
"$(SRCROOT)/../../include",
|
||||
"$(SRCROOT)/../../src",
|
||||
"$(SRCROOT)/../../extlibs/headers",
|
||||
);
|
||||
INSTALL_PATH = "@executable_path";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(SRCROOT)/../../lib",
|
||||
"$(SRCROOT)/../lib",
|
||||
"$(SRCROOT)/../../extlibs/libs-xcode",
|
||||
);
|
||||
OBJROOT = "$(SRCROOT)/build";
|
||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
||||
SYMROOT = "$(SRCROOT)/../../lib";
|
||||
@ -1452,18 +1453,31 @@
|
||||
A011E3590F65738800FAE48D /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
ARCHS = "$(ARCHS_STANDARD_32_BIT_PRE_XCODE_3_1)";
|
||||
ARCHS_STANDARD_32_BIT_PRE_XCODE_3_1 = "ppc i386";
|
||||
CONFIGURATION_BUILD_DIR = "$(SRCROOT)/../../lib";
|
||||
COPY_PHASE_STRIP = YES;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(SRCROOT)/../../lib",
|
||||
"$(SRCROOT)/../lib",
|
||||
"$(SRCROOT)/../../extlibs/bin",
|
||||
);
|
||||
GCC_OPTIMIZATION_LEVEL = 2;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = CSFML_EXPORTS;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"$(SRCROOT)/../src",
|
||||
"$(SRCROOT)/../include",
|
||||
"$(SRCROOT)/../../include",
|
||||
"$(SRCROOT)/../../src",
|
||||
"$(SRCROOT)/../../extlibs/headers",
|
||||
);
|
||||
INSTALL_PATH = "@executable_path";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(SRCROOT)/../../lib",
|
||||
"$(SRCROOT)/../lib",
|
||||
"$(SRCROOT)/../../extlibs/libs-xcode",
|
||||
);
|
||||
OBJROOT = "$(SRCROOT)/build";
|
||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
||||
SYMROOT = "$(SRCROOT)/../../lib";
|
||||
@ -1473,7 +1487,6 @@
|
||||
A011E3740F65749400FAE48D /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
EXECUTABLE_PREFIX = lib;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
@ -1492,7 +1505,6 @@
|
||||
A011E3750F65749400FAE48D /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
COPY_PHASE_STRIP = YES;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
EXECUTABLE_PREFIX = lib;
|
||||
@ -1511,7 +1523,6 @@
|
||||
A011E37E0F65749F00FAE48D /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
EXECUTABLE_PREFIX = lib;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
@ -1526,7 +1537,6 @@
|
||||
A011E37F0F65749F00FAE48D /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
COPY_PHASE_STRIP = YES;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
EXECUTABLE_PREFIX = lib;
|
||||
@ -1541,24 +1551,17 @@
|
||||
A011E3870F6574AC00FAE48D /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
EXECUTABLE_PREFIX = lib;
|
||||
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../../extlibs/libs-xcode";
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||
GCC_MODEL_TUNING = G5;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"$(SRCROOT)/../src",
|
||||
"$(SRCROOT)/../include",
|
||||
"$(SRCROOT)/../../include",
|
||||
"$(SRCROOT)/../../src",
|
||||
"$(SRCROOT)/../../extlibs/headers",
|
||||
);
|
||||
OTHER_LDFLAGS = (
|
||||
"-framework",
|
||||
OpenAL,
|
||||
"-framework",
|
||||
sndfile,
|
||||
);
|
||||
PREBINDING = NO;
|
||||
PRODUCT_NAME = "csfml-audio-d";
|
||||
@ -1568,23 +1571,16 @@
|
||||
A011E3880F6574AC00FAE48D /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
COPY_PHASE_STRIP = YES;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
EXECUTABLE_PREFIX = lib;
|
||||
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../../extlibs/libs-xcode";
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
||||
GCC_MODEL_TUNING = G5;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"$(SRCROOT)/../src",
|
||||
"$(SRCROOT)/../include",
|
||||
"$(SRCROOT)/../../include",
|
||||
"$(SRCROOT)/../../src",
|
||||
"$(SRCROOT)/../../extlibs/headers",
|
||||
);
|
||||
OTHER_LDFLAGS = (
|
||||
"-framework",
|
||||
OpenAL,
|
||||
"-framework",
|
||||
sndfile,
|
||||
);
|
||||
PREBINDING = NO;
|
||||
PRODUCT_NAME = "csfml-audio";
|
||||
@ -1594,7 +1590,6 @@
|
||||
A011E3900F6574B500FAE48D /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
EXECUTABLE_PREFIX = lib;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
@ -1613,7 +1608,6 @@
|
||||
A011E3910F6574B500FAE48D /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
COPY_PHASE_STRIP = YES;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
EXECUTABLE_PREFIX = lib;
|
||||
@ -1632,20 +1626,12 @@
|
||||
A011E3990F6574BE00FAE48D /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
EXECUTABLE_PREFIX = lib;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||
GCC_MODEL_TUNING = G5;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"$(SRCROOT)/../src",
|
||||
"$(SRCROOT)/../include",
|
||||
"$(SRCROOT)/../../include",
|
||||
"$(SRCROOT)/../../src",
|
||||
"$(SRCROOT)/../../extlibs/headers",
|
||||
);
|
||||
OTHER_LDFLAGS = (
|
||||
"-framework",
|
||||
OpenGL,
|
||||
@ -1659,19 +1645,11 @@
|
||||
A011E39A0F6574BE00FAE48D /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
COPY_PHASE_STRIP = YES;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
EXECUTABLE_PREFIX = lib;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
||||
GCC_MODEL_TUNING = G5;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"$(SRCROOT)/../src",
|
||||
"$(SRCROOT)/../include",
|
||||
"$(SRCROOT)/../../include",
|
||||
"$(SRCROOT)/../../src",
|
||||
"$(SRCROOT)/../../extlibs/headers",
|
||||
);
|
||||
OTHER_LDFLAGS = (
|
||||
"-framework",
|
||||
OpenGL,
|
||||
@ -1710,8 +1688,8 @@
|
||||
A011E35A0F65738800FAE48D /* Build configuration list for PBXProject "SFML-bare" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
A011E3580F65738800FAE48D /* Debug */,
|
||||
A011E3590F65738800FAE48D /* Release */,
|
||||
A011E3580F65738800FAE48D /* Debug */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
@ -1719,8 +1697,8 @@
|
||||
A011E3760F65749400FAE48D /* Build configuration list for PBXNativeTarget "csfml-system" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
A011E3740F65749400FAE48D /* Debug */,
|
||||
A011E3750F65749400FAE48D /* Release */,
|
||||
A011E3740F65749400FAE48D /* Debug */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
@ -1728,8 +1706,8 @@
|
||||
A011E3A70F6574E400FAE48D /* Build configuration list for PBXNativeTarget "csfml-network" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
A011E37E0F65749F00FAE48D /* Debug */,
|
||||
A011E37F0F65749F00FAE48D /* Release */,
|
||||
A011E37E0F65749F00FAE48D /* Debug */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
@ -1737,8 +1715,8 @@
|
||||
A011E3A80F6574E400FAE48D /* Build configuration list for PBXNativeTarget "csfml-audio" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
A011E3870F6574AC00FAE48D /* Debug */,
|
||||
A011E3880F6574AC00FAE48D /* Release */,
|
||||
A011E3870F6574AC00FAE48D /* Debug */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
@ -1746,8 +1724,8 @@
|
||||
A011E3A90F6574E400FAE48D /* Build configuration list for PBXNativeTarget "csfml-window" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
A011E3900F6574B500FAE48D /* Debug */,
|
||||
A011E3910F6574B500FAE48D /* Release */,
|
||||
A011E3900F6574B500FAE48D /* Debug */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
@ -1755,8 +1733,8 @@
|
||||
A011E3AA0F6574E400FAE48D /* Build configuration list for PBXNativeTarget "csfml-graphics" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
A011E3990F6574BE00FAE48D /* Debug */,
|
||||
A011E39A0F6574BE00FAE48D /* Release */,
|
||||
A011E3990F6574BE00FAE48D /* Debug */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
@ -1764,8 +1742,8 @@
|
||||
A011E3AB0F6574E400FAE48D /* Build configuration list for PBXAggregateTarget "All" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
A011E39C0F6574D600FAE48D /* Debug */,
|
||||
A011E39D0F6574D600FAE48D /* Release */,
|
||||
A011E39C0F6574D600FAE48D /* Debug */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
|
2018
CSFML/xcode/SFML.xcodeproj/project.pbxproj
Normal file
2018
CSFML/xcode/SFML.xcodeproj/project.pbxproj
Normal file
File diff suppressed because it is too large
Load Diff
20
CSFML/xcode/csfml-audio-Info.plist
Normal file
20
CSFML/xcode/csfml-audio-Info.plist
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.sfml.${PRODUCT_NAME:identifier}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
20
CSFML/xcode/csfml-graphics-Info.plist
Normal file
20
CSFML/xcode/csfml-graphics-Info.plist
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.sfml.${PRODUCT_NAME:identifier}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
20
CSFML/xcode/csfml-network-Info.plist
Normal file
20
CSFML/xcode/csfml-network-Info.plist
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.sfml.${PRODUCT_NAME:identifier}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
20
CSFML/xcode/csfml-system-Info.plist
Normal file
20
CSFML/xcode/csfml-system-Info.plist
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.sfml.${PRODUCT_NAME:identifier}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
20
CSFML/xcode/csfml-window-Info.plist
Normal file
20
CSFML/xcode/csfml-window-Info.plist
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.sfml.${PRODUCT_NAME:identifier}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user