├── CPlusPlusProject ├── Main.cpp ├── Entity.h ├── Time.h ├── Rendering.h ├── Time.cpp ├── Entity.cpp ├── Game.h ├── Rendering.cpp ├── CPlusPlusProject.vcxproj.filters ├── Physics2D.h └── Game.cpp ├── Dependencies └── SFML-2.5.1 │ ├── doc │ └── html │ │ ├── bc_s.png │ │ ├── bdwn.png │ │ ├── doc.png │ │ ├── open.png │ │ ├── closed.png │ │ ├── doxygen.png │ │ ├── nav_f.png │ │ ├── nav_g.png │ │ ├── nav_h.png │ │ ├── sync_on.png │ │ ├── tab_a.png │ │ ├── tab_b.png │ │ ├── tab_h.png │ │ ├── tab_s.png │ │ ├── splitbar.png │ │ ├── sync_off.png │ │ ├── folderclosed.png │ │ ├── folderopen.png │ │ ├── classsf_1_1Ftp.png │ │ ├── classsf_1_1Cursor.png │ │ ├── classsf_1_1Http.png │ │ ├── classsf_1_1Lock.png │ │ ├── classsf_1_1Music.png │ │ ├── classsf_1_1Mutex.png │ │ ├── classsf_1_1Shader.png │ │ ├── classsf_1_1Shape.png │ │ ├── classsf_1_1Socket.png │ │ ├── classsf_1_1Sound.png │ │ ├── classsf_1_1Sprite.png │ │ ├── classsf_1_1Text.png │ │ ├── classsf_1_1Thread.png │ │ ├── classsf_1_1Window.png │ │ ├── classsf_1_1Context.png │ │ ├── classsf_1_1Drawable.png │ │ ├── classsf_1_1Texture.png │ │ ├── classsf_1_1AlResource.png │ │ ├── classsf_1_1CircleShape.png │ │ ├── classsf_1_1ConvexShape.png │ │ ├── classsf_1_1GlResource.png │ │ ├── classsf_1_1InputStream.png │ │ ├── classsf_1_1NonCopyable.png │ │ ├── classsf_1_1SoundBuffer.png │ │ ├── classsf_1_1SoundSource.png │ │ ├── classsf_1_1SoundStream.png │ │ ├── classsf_1_1TcpListener.png │ │ ├── classsf_1_1TcpSocket.png │ │ ├── classsf_1_1ThreadLocal.png │ │ ├── classsf_1_1UdpSocket.png │ │ ├── classsf_1_1VertexArray.png │ │ ├── classsf_1_1RenderTarget.png │ │ ├── classsf_1_1RenderTexture.png │ │ ├── classsf_1_1RenderWindow.png │ │ ├── classsf_1_1SoundRecorder.png │ │ ├── classsf_1_1Transformable.png │ │ ├── classsf_1_1VertexBuffer.png │ │ ├── classsf_1_1FileInputStream.png │ │ ├── classsf_1_1Ftp_1_1Response.png │ │ ├── classsf_1_1InputSoundFile.png │ │ ├── classsf_1_1OutputSoundFile.png │ │ ├── classsf_1_1RectangleShape.png │ │ ├── classsf_1_1ThreadLocalPtr.png │ │ ├── classsf_1_1MemoryInputStream.png │ │ ├── classsf_1_1SoundBufferRecorder.png │ │ ├── classsf_1_1Ftp_1_1ListingResponse.png │ │ ├── classsf_1_1Ftp_1_1DirectoryResponse.png │ │ ├── classsf_1_1GlResource_1_1TransientContextLock.png │ │ ├── tabs.css │ │ ├── pages.html │ │ ├── dir_e68e8157741866f444e17edd764ebbae.html │ │ ├── mainpage_8hpp_source.html │ │ ├── globals_defs.html │ │ ├── dir_d44c64559bbebec7f509842c48db8b23.html │ │ ├── dir_dd49ddb3ba8035e4a328f8c5f31cda7e.html │ │ ├── globals.html │ │ ├── dir_5cf786e58cbf7297a26339ae6e44357c.html │ │ ├── dir_83d50c0b1f1eceb6f182949162e90861.html │ │ ├── dir_89e9fb32471ae291b179a889144513db.html │ │ ├── dir_e71ec51a9abd604c65f6abb639f6ea75.html │ │ ├── functions_rela.html │ │ ├── structsf_1_1Font_1_1Info-members.html │ │ ├── namespaces.html │ │ ├── structsf_1_1Event_1_1TextEvent-members.html │ │ ├── functions_type.html │ │ ├── structsf_1_1Event_1_1JoystickConnectEvent-members.html │ │ ├── dir_c0a853e81d6f1c1f0a3eb7a27dc24256.html │ │ ├── classsf_1_1AlResource-members.html │ │ ├── classsf_1_1Clipboard-members.html │ │ ├── structsf_1_1Event_1_1SizeEvent-members.html │ │ └── classsf_1_1NonCopyable-members.html │ ├── examples │ ├── pong │ │ └── resources │ │ │ ├── ball.wav │ │ │ └── sansation.ttf │ ├── shader │ │ ├── resources │ │ │ ├── logo.png │ │ │ ├── sfml.png │ │ │ ├── devices.png │ │ │ ├── background.jpg │ │ │ ├── billboard.vert │ │ │ ├── sansation.ttf │ │ │ ├── text-background.png │ │ │ ├── blink.frag │ │ │ ├── billboard.frag │ │ │ ├── pixelate.frag │ │ │ ├── wave.vert │ │ │ ├── storm.vert │ │ │ ├── blur.frag │ │ │ ├── edge.frag │ │ │ └── billboard.geom │ │ └── Effect.hpp │ ├── sound │ │ ├── resources │ │ │ ├── canary.wav │ │ │ ├── ding.flac │ │ │ └── orchestral.ogg │ │ └── Sound.cpp │ ├── opengl │ │ └── resources │ │ │ ├── texture.jpg │ │ │ ├── background.jpg │ │ │ └── sansation.ttf │ ├── island │ │ └── resources │ │ │ ├── sansation.ttf │ │ │ ├── terrain.vert │ │ │ └── terrain.frag │ ├── joystick │ │ └── resources │ │ │ └── sansation.ttf │ ├── voip │ │ └── VoIP.cpp │ ├── sockets │ │ ├── Sockets.cpp │ │ ├── UDP.cpp │ │ └── TCP.cpp │ └── sound-capture │ │ └── SoundCapture.cpp │ ├── license.md │ ├── include │ └── SFML │ │ ├── Main.hpp │ │ ├── Audio │ │ ├── Export.hpp │ │ ├── AlResource.hpp │ │ └── SoundFileFactory.inl │ │ ├── System │ │ ├── Export.hpp │ │ ├── String.inl │ │ ├── Sleep.hpp │ │ ├── NativeActivity.hpp │ │ ├── ThreadLocalPtr.inl │ │ ├── Err.hpp │ │ └── Thread.inl │ │ ├── Window │ │ ├── Export.hpp │ │ └── WindowStyle.hpp │ │ ├── Network │ │ ├── Export.hpp │ │ └── SocketHandle.hpp │ │ ├── Graphics │ │ ├── Export.hpp │ │ ├── PrimitiveType.hpp │ │ └── Glyph.hpp │ │ ├── Network.hpp │ │ ├── Audio.hpp │ │ ├── Window.hpp │ │ ├── System.hpp │ │ ├── OpenGL.hpp │ │ ├── Graphics.hpp │ │ └── GpuPreference.hpp │ ├── lib │ └── cmake │ │ └── SFML │ │ ├── SFMLConfigVersion.cmake │ │ ├── SFMLStaticTargets-debug.cmake │ │ ├── SFMLStaticTargets-release.cmake │ │ ├── SFMLSharedTargets-debug.cmake │ │ └── SFMLSharedTargets-release.cmake │ └── readme.md ├── LICENSE └── PhysicEngine.sln /CPlusPlusProject/Main.cpp: -------------------------------------------------------------------------------- 1 | #include "Game.h" 2 | 3 | int main() { 4 | Game().run(); 5 | } -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/bc_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/bc_s.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/bdwn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/bdwn.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/doc.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/open.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/closed.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/doxygen.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/nav_f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/nav_f.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/nav_g.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/nav_g.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/nav_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/nav_h.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/sync_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/sync_on.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/tab_a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/tab_a.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/tab_b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/tab_b.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/tab_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/tab_h.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/tab_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/tab_s.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/splitbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/splitbar.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/sync_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/sync_off.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/folderclosed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/folderclosed.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/folderopen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/folderopen.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Ftp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Ftp.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Cursor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Cursor.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Http.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Http.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Lock.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Music.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Mutex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Mutex.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Shader.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Shader.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Shape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Shape.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Socket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Socket.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Sound.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Sound.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Sprite.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Text.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Thread.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Thread.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Window.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Window.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Context.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Context.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Drawable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Drawable.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Texture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Texture.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/pong/resources/ball.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/pong/resources/ball.wav -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1AlResource.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1AlResource.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1CircleShape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1CircleShape.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1ConvexShape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1ConvexShape.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1GlResource.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1GlResource.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1InputStream.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1InputStream.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1NonCopyable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1NonCopyable.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1SoundBuffer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1SoundBuffer.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1SoundSource.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1SoundSource.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1SoundStream.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1SoundStream.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1TcpListener.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1TcpListener.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1TcpSocket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1TcpSocket.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1ThreadLocal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1ThreadLocal.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1UdpSocket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1UdpSocket.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1VertexArray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1VertexArray.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/shader/resources/logo.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/sfml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/shader/resources/sfml.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/sound/resources/canary.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/sound/resources/canary.wav -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/sound/resources/ding.flac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/sound/resources/ding.flac -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1RenderTarget.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1RenderTarget.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1RenderTexture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1RenderTexture.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1RenderWindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1RenderWindow.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1SoundRecorder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1SoundRecorder.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Transformable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Transformable.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1VertexBuffer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1VertexBuffer.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/opengl/resources/texture.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/opengl/resources/texture.jpg -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/pong/resources/sansation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/pong/resources/sansation.ttf -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/devices.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/shader/resources/devices.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1FileInputStream.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1FileInputStream.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Ftp_1_1Response.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Ftp_1_1Response.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1InputSoundFile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1InputSoundFile.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1OutputSoundFile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1OutputSoundFile.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1RectangleShape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1RectangleShape.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1ThreadLocalPtr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1ThreadLocalPtr.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/island/resources/sansation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/island/resources/sansation.ttf -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/opengl/resources/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/opengl/resources/background.jpg -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/opengl/resources/sansation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/opengl/resources/sansation.ttf -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/shader/resources/background.jpg -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/billboard.vert: -------------------------------------------------------------------------------- 1 | void main() 2 | { 3 | // Transform the vertex position 4 | gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; 5 | } 6 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/sansation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/shader/resources/sansation.ttf -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/sound/resources/orchestral.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/sound/resources/orchestral.ogg -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1MemoryInputStream.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1MemoryInputStream.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/joystick/resources/sansation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/joystick/resources/sansation.ttf -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1SoundBufferRecorder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1SoundBufferRecorder.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/text-background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/examples/shader/resources/text-background.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Ftp_1_1ListingResponse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Ftp_1_1ListingResponse.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Ftp_1_1DirectoryResponse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1Ftp_1_1DirectoryResponse.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1GlResource_1_1TransientContextLock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingthunder/JC-Physics-Engine-2D/HEAD/Dependencies/SFML-2.5.1/doc/html/classsf_1_1GlResource_1_1TransientContextLock.png -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/blink.frag: -------------------------------------------------------------------------------- 1 | uniform sampler2D texture; 2 | uniform float blink_alpha; 3 | 4 | void main() 5 | { 6 | vec4 pixel = gl_Color; 7 | pixel.a = blink_alpha; 8 | gl_FragColor = pixel; 9 | } 10 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/island/resources/terrain.vert: -------------------------------------------------------------------------------- 1 | varying vec3 normal; 2 | 3 | void main() 4 | { 5 | gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; 6 | gl_FrontColor = gl_Color; 7 | normal = vec3(gl_MultiTexCoord0.xy, 1.0); 8 | } 9 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/billboard.frag: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | uniform sampler2D texture; 4 | 5 | in vec2 tex_coord; 6 | 7 | void main() 8 | { 9 | // Read and apply a color from the texture 10 | gl_FragColor = texture2D(texture, tex_coord); 11 | } 12 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/pixelate.frag: -------------------------------------------------------------------------------- 1 | uniform sampler2D texture; 2 | uniform float pixel_threshold; 3 | 4 | void main() 5 | { 6 | float factor = 1.0 / (pixel_threshold + 0.001); 7 | vec2 pos = floor(gl_TexCoord[0].xy * factor + 0.5) / factor; 8 | gl_FragColor = texture2D(texture, pos) * gl_Color; 9 | } 10 | -------------------------------------------------------------------------------- /CPlusPlusProject/Entity.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | class Entity { 5 | private: 6 | static int eIDCounter; 7 | 8 | std::string eID; 9 | public: 10 | Entity(); 11 | std::string getEID(); 12 | bool operator ==(Entity& other); 13 | bool operator !=(Entity& other); 14 | bool operator <(Entity& other); 15 | bool operator >(Entity& other); 16 | }; -------------------------------------------------------------------------------- /CPlusPlusProject/Time.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | using namespace std::chrono; 6 | 7 | class Time { 8 | private: 9 | static steady_clock::time_point lastFixedUpdate; 10 | static steady_clock::time_point lastUpdate; 11 | 12 | static double timeSincePoint(steady_clock::time_point t1); 13 | 14 | public: 15 | static double fixedDeltaTime(); 16 | static double deltaTime(); 17 | 18 | static void tickFixedUpdate(); 19 | static void tickUpdate(); 20 | 21 | }; -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/island/resources/terrain.frag: -------------------------------------------------------------------------------- 1 | varying vec3 normal; 2 | uniform float lightFactor; 3 | 4 | void main() 5 | { 6 | vec3 lightPosition = vec3(-1.0, 1.0, 1.0); 7 | vec3 eyePosition = vec3(0.0, 0.0, 1.0); 8 | vec3 halfVector = normalize(lightPosition + eyePosition); 9 | float intensity = lightFactor + (1.0 - lightFactor) * dot(normalize(normal), normalize(halfVector)); 10 | gl_FragColor = gl_Color * vec4(intensity, intensity, intensity, 1.0); 11 | } 12 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/wave.vert: -------------------------------------------------------------------------------- 1 | uniform float wave_phase; 2 | uniform vec2 wave_amplitude; 3 | 4 | void main() 5 | { 6 | vec4 vertex = gl_Vertex; 7 | vertex.x += cos(gl_Vertex.y * 0.02 + wave_phase * 3.8) * wave_amplitude.x 8 | + sin(gl_Vertex.y * 0.02 + wave_phase * 6.3) * wave_amplitude.x * 0.3; 9 | vertex.y += sin(gl_Vertex.x * 0.02 + wave_phase * 2.4) * wave_amplitude.y 10 | + cos(gl_Vertex.x * 0.02 + wave_phase * 5.2) * wave_amplitude.y * 0.3; 11 | 12 | gl_Position = gl_ModelViewProjectionMatrix * vertex; 13 | gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0; 14 | gl_FrontColor = gl_Color; 15 | } 16 | -------------------------------------------------------------------------------- /CPlusPlusProject/Rendering.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include "Physics2d.h" 4 | #include 5 | class Rendering { 6 | private: 7 | std::vector entities; 8 | std::vector renderCircles; 9 | sf::RenderWindow* window; 10 | sf::Vector2f convertToScreenCoordinates(float x, float y); 11 | 12 | 13 | int pixelsPerUnit = 50; 14 | 15 | const int SCREEN_W = 1000; 16 | const int SCREEN_H = 750; 17 | 18 | public: 19 | Rendering(sf::RenderWindow * window); 20 | void render(); 21 | 22 | void trackEntity(CircleCollider* entity); 23 | void untrackEntity(CircleCollider* entity); 24 | Vector2 convertToWorldCoordinates(sf::Vector2i screenCoord); 25 | 26 | }; -------------------------------------------------------------------------------- /CPlusPlusProject/Time.cpp: -------------------------------------------------------------------------------- 1 | #include "Time.h" 2 | 3 | steady_clock::time_point Time::lastFixedUpdate = steady_clock::now(); 4 | steady_clock::time_point Time::lastUpdate = steady_clock::now(); 5 | 6 | double Time::fixedDeltaTime() { 7 | return timeSincePoint(lastFixedUpdate); 8 | } 9 | 10 | double Time::deltaTime() { 11 | return timeSincePoint(lastUpdate); 12 | } 13 | 14 | double Time::timeSincePoint(steady_clock::time_point t1) { 15 | duration time_span = duration_cast>(steady_clock::now() - t1); 16 | return time_span.count(); 17 | } 18 | 19 | void Time::tickFixedUpdate() { 20 | lastFixedUpdate = steady_clock::now(); 21 | } 22 | 23 | void Time::tickUpdate() { 24 | lastUpdate = steady_clock::now(); 25 | } -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/storm.vert: -------------------------------------------------------------------------------- 1 | uniform vec2 storm_position; 2 | uniform float storm_total_radius; 3 | uniform float storm_inner_radius; 4 | 5 | void main() 6 | { 7 | vec4 vertex = gl_ModelViewMatrix * gl_Vertex; 8 | vec2 offset = vertex.xy - storm_position; 9 | float len = length(offset); 10 | if (len < storm_total_radius) 11 | { 12 | float push_distance = storm_inner_radius + len / storm_total_radius * (storm_total_radius - storm_inner_radius); 13 | vertex.xy = storm_position + normalize(offset) * push_distance; 14 | } 15 | 16 | gl_Position = gl_ProjectionMatrix * vertex; 17 | gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0; 18 | gl_FrontColor = gl_Color; 19 | } 20 | -------------------------------------------------------------------------------- /CPlusPlusProject/Entity.cpp: -------------------------------------------------------------------------------- 1 | #include "Entity.h" 2 | 3 | int Entity::eIDCounter = 0; 4 | 5 | Entity::Entity() { 6 | eID = std::to_string(eIDCounter++); 7 | } 8 | 9 | std::string Entity::getEID() { 10 | return eID; 11 | } 12 | 13 | bool Entity::operator==(Entity& other) { 14 | int compValue = eID.compare(other.getEID()); 15 | if (compValue == 0) { 16 | return true; 17 | } 18 | return false; 19 | } 20 | 21 | bool Entity::operator!=(Entity& other) { 22 | return !(*this == other); 23 | } 24 | 25 | bool Entity::operator<(Entity& other) { 26 | int compValue = eID.compare(other.getEID()); 27 | if (compValue < 0) { 28 | return true; 29 | } 30 | return false; 31 | } 32 | 33 | bool Entity::operator>(Entity& other) { 34 | int compValue = eID.compare(other.getEID()); 35 | if (compValue > 0) { 36 | return true; 37 | } 38 | return false; 39 | } -------------------------------------------------------------------------------- /CPlusPlusProject/Game.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "Physics2D.h" 3 | #include "Rendering.h" 4 | #include 5 | 6 | class Game { 7 | private: 8 | 9 | 10 | //For now, FixedUpdate, Update, and Render will all take place on the same thread. I intend to fix that later. 11 | //Ideally, I want to make these functions be delegates. Then, each entity can have its own Update, etc. that gets added to the delegates. 12 | 13 | void initialize(); 14 | void events(); 15 | void fixedUpdate(); 16 | void update(); 17 | void render(); 18 | void onExit(); 19 | 20 | bool exitGame = false; 21 | 22 | sf::RenderWindow * window; 23 | sf::Event event; 24 | 25 | std::vector colliderPtrs; 26 | std::vector rbPtrs; 27 | 28 | Physics2D physics2D; 29 | Rendering * rendering; 30 | 31 | public: 32 | //Game(); 33 | void run(); 34 | }; -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/blur.frag: -------------------------------------------------------------------------------- 1 | uniform sampler2D texture; 2 | uniform float blur_radius; 3 | 4 | void main() 5 | { 6 | vec2 offx = vec2(blur_radius, 0.0); 7 | vec2 offy = vec2(0.0, blur_radius); 8 | 9 | vec4 pixel = texture2D(texture, gl_TexCoord[0].xy) * 4.0 + 10 | texture2D(texture, gl_TexCoord[0].xy - offx) * 2.0 + 11 | texture2D(texture, gl_TexCoord[0].xy + offx) * 2.0 + 12 | texture2D(texture, gl_TexCoord[0].xy - offy) * 2.0 + 13 | texture2D(texture, gl_TexCoord[0].xy + offy) * 2.0 + 14 | texture2D(texture, gl_TexCoord[0].xy - offx - offy) * 1.0 + 15 | texture2D(texture, gl_TexCoord[0].xy - offx + offy) * 1.0 + 16 | texture2D(texture, gl_TexCoord[0].xy + offx - offy) * 1.0 + 17 | texture2D(texture, gl_TexCoord[0].xy + offx + offy) * 1.0; 18 | 19 | gl_FragColor = gl_Color * (pixel / 16.0); 20 | } 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 J.C. Chambers III 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/license.md: -------------------------------------------------------------------------------- 1 | # SFML 2 | 3 | SFML - Copyright (C) 2007-2018 Laurent Gomila - laurent@sfml-dev.org 4 | 5 | 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. 6 | 7 | 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: 8 | 9 | 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. 10 | 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 11 | 3. This notice may not be removed or altered from any source distribution. 12 | 13 | ## External libraries used by SFML 14 | 15 | * _OpenAL-Soft_ is under the LGPL license 16 | * _stb_image_ and _stb_image_write_ are public domain 17 | * _freetype_ is under the FreeType license or the GPL license 18 | * _libogg_ is under the BSD license 19 | * _libvorbis_ is under the BSD license 20 | * _libflac_ is under the BSD license 21 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/tabs.css: -------------------------------------------------------------------------------- 1 | .tabs, .tabs2, .tabs3 { 2 | background-image: url('tab_b.png'); 3 | width: 100%; 4 | z-index: 101; 5 | font-size: 13px; 6 | font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; 7 | } 8 | 9 | .tabs2 { 10 | font-size: 10px; 11 | } 12 | .tabs3 { 13 | font-size: 9px; 14 | } 15 | 16 | .tablist { 17 | margin: 0; 18 | padding: 0; 19 | display: table; 20 | } 21 | 22 | .tablist li { 23 | float: left; 24 | display: table-cell; 25 | background-image: url('tab_b.png'); 26 | line-height: 36px; 27 | list-style: none; 28 | } 29 | 30 | .tablist a { 31 | display: block; 32 | padding: 0 20px; 33 | font-weight: bold; 34 | background-image:url('tab_s.png'); 35 | background-repeat:no-repeat; 36 | background-position:right; 37 | color: #283A5D; 38 | text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); 39 | text-decoration: none; 40 | outline: none; 41 | } 42 | 43 | .tabs3 .tablist a { 44 | padding: 0 10px; 45 | } 46 | 47 | .tablist a:hover { 48 | background-image: url('tab_h.png'); 49 | background-repeat:repeat-x; 50 | color: #fff; 51 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 52 | text-decoration: none; 53 | } 54 | 55 | .tablist li.current a { 56 | background-image: url('tab_a.png'); 57 | background-repeat:repeat-x; 58 | color: #fff; 59 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 60 | } 61 | 62 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/voip/VoIP.cpp: -------------------------------------------------------------------------------- 1 | 2 | //////////////////////////////////////////////////////////// 3 | // Headers 4 | //////////////////////////////////////////////////////////// 5 | #include 6 | #include 7 | #include 8 | 9 | 10 | //////////////////////////////////////////////////////////// 11 | // Function prototypes 12 | // (I'm too lazy to put them into separate headers...) 13 | //////////////////////////////////////////////////////////// 14 | void doClient(unsigned short port); 15 | void doServer(unsigned short port); 16 | 17 | 18 | //////////////////////////////////////////////////////////// 19 | /// Entry point of application 20 | /// 21 | /// \return Application exit code 22 | /// 23 | //////////////////////////////////////////////////////////// 24 | int main() 25 | { 26 | // Choose a random port for opening sockets (ports < 1024 are reserved) 27 | const unsigned short port = 2435; 28 | 29 | // Client or server ? 30 | char who; 31 | std::cout << "Do you want to be a server ('s') or a client ('c')? "; 32 | std::cin >> who; 33 | 34 | if (who == 's') 35 | { 36 | // Run as a server 37 | doServer(port); 38 | } 39 | else 40 | { 41 | // Run as a client 42 | doClient(port); 43 | } 44 | 45 | // Wait until the user presses 'enter' key 46 | std::cout << "Press enter to exit..." << std::endl; 47 | std::cin.ignore(10000, '\n'); 48 | 49 | return EXIT_SUCCESS; 50 | } 51 | -------------------------------------------------------------------------------- /PhysicEngine.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.2.32630.192 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Engine", "CPlusPlusProject\CPlusPlusProject.vcxproj", "{13AA4C0B-D0CC-42CE-A0C2-EAF7FC62CC58}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {13AA4C0B-D0CC-42CE-A0C2-EAF7FC62CC58}.Debug|x64.ActiveCfg = Debug|x64 17 | {13AA4C0B-D0CC-42CE-A0C2-EAF7FC62CC58}.Debug|x64.Build.0 = Debug|x64 18 | {13AA4C0B-D0CC-42CE-A0C2-EAF7FC62CC58}.Debug|x86.ActiveCfg = Debug|Win32 19 | {13AA4C0B-D0CC-42CE-A0C2-EAF7FC62CC58}.Debug|x86.Build.0 = Debug|Win32 20 | {13AA4C0B-D0CC-42CE-A0C2-EAF7FC62CC58}.Release|x64.ActiveCfg = Release|x64 21 | {13AA4C0B-D0CC-42CE-A0C2-EAF7FC62CC58}.Release|x64.Build.0 = Release|x64 22 | {13AA4C0B-D0CC-42CE-A0C2-EAF7FC62CC58}.Release|x86.ActiveCfg = Release|Win32 23 | {13AA4C0B-D0CC-42CE-A0C2-EAF7FC62CC58}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {1C58B012-9740-42DB-A4D2-9B6E671BDE04} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/edge.frag: -------------------------------------------------------------------------------- 1 | uniform sampler2D texture; 2 | uniform float edge_threshold; 3 | 4 | void main() 5 | { 6 | const float offset = 1.0 / 512.0; 7 | vec2 offx = vec2(offset, 0.0); 8 | vec2 offy = vec2(0.0, offset); 9 | 10 | vec4 hEdge = texture2D(texture, gl_TexCoord[0].xy - offy) * -2.0 + 11 | texture2D(texture, gl_TexCoord[0].xy + offy) * 2.0 + 12 | texture2D(texture, gl_TexCoord[0].xy - offx - offy) * -1.0 + 13 | texture2D(texture, gl_TexCoord[0].xy - offx + offy) * 1.0 + 14 | texture2D(texture, gl_TexCoord[0].xy + offx - offy) * -1.0 + 15 | texture2D(texture, gl_TexCoord[0].xy + offx + offy) * 1.0; 16 | 17 | vec4 vEdge = texture2D(texture, gl_TexCoord[0].xy - offx) * 2.0 + 18 | texture2D(texture, gl_TexCoord[0].xy + offx) * -2.0 + 19 | texture2D(texture, gl_TexCoord[0].xy - offx - offy) * 1.0 + 20 | texture2D(texture, gl_TexCoord[0].xy - offx + offy) * -1.0 + 21 | texture2D(texture, gl_TexCoord[0].xy + offx - offy) * 1.0 + 22 | texture2D(texture, gl_TexCoord[0].xy + offx + offy) * -1.0; 23 | 24 | vec3 result = sqrt(hEdge.rgb * hEdge.rgb + vEdge.rgb * vEdge.rgb); 25 | float edge = length(result); 26 | vec4 pixel = gl_Color * texture2D(texture, gl_TexCoord[0].xy); 27 | if (edge > (edge_threshold * 8.0)) 28 | pixel.rgb = vec3(0.0, 0.0, 0.0); 29 | else 30 | pixel.a = edge_threshold; 31 | gl_FragColor = pixel; 32 | } 33 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Main.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_MAIN_HPP 26 | #define SFML_MAIN_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | #include 32 | 33 | 34 | #if defined(SFML_SYSTEM_IOS) 35 | 36 | // On iOS, we have no choice but to have our own main, 37 | // so we need to rename the user one and call it later 38 | #define main sfmlMain 39 | 40 | #endif 41 | 42 | 43 | #endif // SFML_MAIN_HPP 44 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/sockets/Sockets.cpp: -------------------------------------------------------------------------------- 1 | 2 | //////////////////////////////////////////////////////////// 3 | // Headers 4 | //////////////////////////////////////////////////////////// 5 | #include 6 | #include 7 | 8 | 9 | void runTcpServer(unsigned short port); 10 | void runTcpClient(unsigned short port); 11 | void runUdpServer(unsigned short port); 12 | void runUdpClient(unsigned short port); 13 | 14 | 15 | //////////////////////////////////////////////////////////// 16 | /// Entry point of application 17 | /// 18 | /// \return Application exit code 19 | /// 20 | //////////////////////////////////////////////////////////// 21 | int main() 22 | { 23 | // Choose an arbitrary port for opening sockets 24 | const unsigned short port = 50001; 25 | 26 | // TCP, UDP or connected UDP ? 27 | char protocol; 28 | std::cout << "Do you want to use TCP (t) or UDP (u)? "; 29 | std::cin >> protocol; 30 | 31 | // Client or server ? 32 | char who; 33 | std::cout << "Do you want to be a server (s) or a client (c)? "; 34 | std::cin >> who; 35 | 36 | if (protocol == 't') 37 | { 38 | // Test the TCP protocol 39 | if (who == 's') 40 | runTcpServer(port); 41 | else 42 | runTcpClient(port); 43 | } 44 | else 45 | { 46 | // Test the unconnected UDP protocol 47 | if (who == 's') 48 | runUdpServer(port); 49 | else 50 | runUdpClient(port); 51 | } 52 | 53 | // Wait until the user presses 'enter' key 54 | std::cout << "Press enter to exit..." << std::endl; 55 | std::cin.ignore(10000, '\n'); 56 | std::cin.ignore(10000, '\n'); 57 | 58 | return EXIT_SUCCESS; 59 | } 60 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/resources/billboard.geom: -------------------------------------------------------------------------------- 1 | #version 150 2 | 3 | // The render target's resolution (used for scaling) 4 | uniform vec2 resolution; 5 | 6 | // The billboards' size 7 | uniform vec2 size; 8 | 9 | // Input is the passed point cloud 10 | layout (points) in; 11 | 12 | // The output will consist of triangle strips with four vertices each 13 | layout (triangle_strip, max_vertices = 4) out; 14 | 15 | // Output texture coordinates 16 | out vec2 tex_coord; 17 | 18 | // Main entry point 19 | void main() 20 | { 21 | // Caculate the half width/height of the billboards 22 | vec2 half_size = size / 2.f; 23 | 24 | // Scale the size based on resolution (1 would be full width/height) 25 | half_size /= resolution; 26 | 27 | // Iterate over all vertices 28 | for (int i = 0; i < gl_in.length(); i++) 29 | { 30 | // Retrieve the passed vertex position 31 | vec2 pos = gl_in[i].gl_Position.xy; 32 | 33 | // Bottom left vertex 34 | gl_Position = vec4(pos - half_size, 0.f, 1.f); 35 | tex_coord = vec2(1.f, 1.f); 36 | EmitVertex(); 37 | 38 | // Bottom right vertex 39 | gl_Position = vec4(pos.x + half_size.x, pos.y - half_size.y, 0.f, 1.f); 40 | tex_coord = vec2(0.f, 1.f); 41 | EmitVertex(); 42 | 43 | // Top left vertex 44 | gl_Position = vec4(pos.x - half_size.x, pos.y + half_size.y, 0.f, 1.f); 45 | tex_coord = vec2(1.f, 0.f); 46 | EmitVertex(); 47 | 48 | // Top right vertex 49 | gl_Position = vec4(pos + half_size, 0.f, 1.f); 50 | tex_coord = vec2(0.f, 0.f); 51 | EmitVertex(); 52 | 53 | // And finalize the primitive 54 | EndPrimitive(); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/lib/cmake/SFML/SFMLConfigVersion.cmake: -------------------------------------------------------------------------------- 1 | # This is a basic version file for the Config-mode of find_package(). 2 | # It is used by write_basic_package_version_file() as input file for configure_file() 3 | # to create a version-file which can be installed along a config.cmake file. 4 | # 5 | # The created file sets PACKAGE_VERSION_EXACT if the current version string and 6 | # the requested version string are exactly the same and it sets 7 | # PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version, 8 | # but only if the requested major version is the same as the current one. 9 | # The variable CVF_VERSION must be set before calling configure_file(). 10 | 11 | 12 | set(PACKAGE_VERSION "2.5.1") 13 | 14 | if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) 15 | set(PACKAGE_VERSION_COMPATIBLE FALSE) 16 | else() 17 | 18 | if("2.5.1" MATCHES "^([0-9]+)\\.") 19 | set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}") 20 | else() 21 | set(CVF_VERSION_MAJOR "2.5.1") 22 | endif() 23 | 24 | if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR) 25 | set(PACKAGE_VERSION_COMPATIBLE TRUE) 26 | else() 27 | set(PACKAGE_VERSION_COMPATIBLE FALSE) 28 | endif() 29 | 30 | if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) 31 | set(PACKAGE_VERSION_EXACT TRUE) 32 | endif() 33 | endif() 34 | 35 | 36 | # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: 37 | if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "") 38 | return() 39 | endif() 40 | 41 | # check that the installed version has the same 32/64bit-ness as the one which is currently searching: 42 | if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8") 43 | math(EXPR installedBits "8 * 8") 44 | set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") 45 | set(PACKAGE_VERSION_UNSUITABLE TRUE) 46 | endif() 47 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Audio/Export.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_AUDIO_EXPORT_HPP 26 | #define SFML_AUDIO_EXPORT_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | #include 32 | 33 | 34 | //////////////////////////////////////////////////////////// 35 | // Define portable import / export macros 36 | //////////////////////////////////////////////////////////// 37 | #if defined(SFML_AUDIO_EXPORTS) 38 | 39 | #define SFML_AUDIO_API SFML_API_EXPORT 40 | 41 | #else 42 | 43 | #define SFML_AUDIO_API SFML_API_IMPORT 44 | 45 | #endif 46 | 47 | 48 | #endif // SFML_AUDIO_EXPORT_HPP 49 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/System/Export.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_SYSTEM_EXPORT_HPP 26 | #define SFML_SYSTEM_EXPORT_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | #include 32 | 33 | 34 | //////////////////////////////////////////////////////////// 35 | // Define portable import / export macros 36 | //////////////////////////////////////////////////////////// 37 | #if defined(SFML_SYSTEM_EXPORTS) 38 | 39 | #define SFML_SYSTEM_API SFML_API_EXPORT 40 | 41 | #else 42 | 43 | #define SFML_SYSTEM_API SFML_API_IMPORT 44 | 45 | #endif 46 | 47 | 48 | #endif // SFML_SYSTEM_EXPORT_HPP 49 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Window/Export.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_WINDOW_EXPORT_HPP 26 | #define SFML_WINDOW_EXPORT_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | #include 32 | 33 | 34 | //////////////////////////////////////////////////////////// 35 | // Define portable import / export macros 36 | //////////////////////////////////////////////////////////// 37 | #if defined(SFML_WINDOW_EXPORTS) 38 | 39 | #define SFML_WINDOW_API SFML_API_EXPORT 40 | 41 | #else 42 | 43 | #define SFML_WINDOW_API SFML_API_IMPORT 44 | 45 | #endif 46 | 47 | 48 | #endif // SFML_WINDOW_EXPORT_HPP 49 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Network/Export.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_NETWORK_EXPORT_HPP 26 | #define SFML_NETWORK_EXPORT_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | #include 32 | 33 | 34 | //////////////////////////////////////////////////////////// 35 | // Define portable import / export macros 36 | //////////////////////////////////////////////////////////// 37 | #if defined(SFML_NETWORK_EXPORTS) 38 | 39 | #define SFML_NETWORK_API SFML_API_EXPORT 40 | 41 | #else 42 | 43 | #define SFML_NETWORK_API SFML_API_IMPORT 44 | 45 | #endif 46 | 47 | 48 | #endif // SFML_NETWORK_EXPORT_HPP 49 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Graphics/Export.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_GRAPHICS_EXPORT_HPP 26 | #define SFML_GRAPHICS_EXPORT_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | #include 32 | 33 | 34 | //////////////////////////////////////////////////////////// 35 | // Define portable import / export macros 36 | //////////////////////////////////////////////////////////// 37 | #if defined(SFML_GRAPHICS_EXPORTS) 38 | 39 | #define SFML_GRAPHICS_API SFML_API_EXPORT 40 | 41 | #else 42 | 43 | #define SFML_GRAPHICS_API SFML_API_IMPORT 44 | 45 | #endif 46 | 47 | 48 | #endif // SFML_GRAPHICS_EXPORT_HPP 49 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/System/String.inl: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | 26 | //////////////////////////////////////////////////////////// 27 | template 28 | String String::fromUtf8(T begin, T end) 29 | { 30 | String string; 31 | Utf8::toUtf32(begin, end, std::back_inserter(string.m_string)); 32 | return string; 33 | } 34 | 35 | 36 | //////////////////////////////////////////////////////////// 37 | template 38 | String String::fromUtf16(T begin, T end) 39 | { 40 | String string; 41 | Utf16::toUtf32(begin, end, std::back_inserter(string.m_string)); 42 | return string; 43 | } 44 | 45 | 46 | //////////////////////////////////////////////////////////// 47 | template 48 | String String::fromUtf32(T begin, T end) 49 | { 50 | String string; 51 | string.m_string.assign(begin, end); 52 | return string; 53 | } 54 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Network/SocketHandle.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_SOCKETHANDLE_HPP 26 | #define SFML_SOCKETHANDLE_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | #include 32 | 33 | #if defined(SFML_SYSTEM_WINDOWS) 34 | #include 35 | #endif 36 | 37 | 38 | namespace sf 39 | { 40 | //////////////////////////////////////////////////////////// 41 | // Define the low-level socket handle type, specific to 42 | // each platform 43 | //////////////////////////////////////////////////////////// 44 | #if defined(SFML_SYSTEM_WINDOWS) 45 | 46 | typedef UINT_PTR SocketHandle; 47 | 48 | #else 49 | 50 | typedef int SocketHandle; 51 | 52 | #endif 53 | 54 | } // namespace sf 55 | 56 | 57 | #endif // SFML_SOCKETHANDLE_HPP 58 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/readme.md: -------------------------------------------------------------------------------- 1 | [![SFML logo](https://www.sfml-dev.org/images/logo.png)](https://www.sfml-dev.org) 2 | 3 | # SFML — Simple and Fast Multimedia Library 4 | 5 | SFML is a simple, fast, cross-platform and object-oriented multimedia API. It provides access to windowing, graphics, audio and network. It is written in C++, and has bindings for various languages such as C, .Net, Ruby, Python. 6 | 7 | ## Authors 8 | 9 | - Laurent Gomila — main developer (laurent@sfml-dev.org) 10 | - Marco Antognini — OS X developer (hiura@sfml-dev.org) 11 | - Jonathan De Wachter — Android developer (dewachter.jonathan@gmail.com) 12 | - Jan Haller (bromeon@sfml-dev.org) 13 | - Stefan Schindler (tank@sfml-dev.org) 14 | - Lukas Dürrenberger (eXpl0it3r@sfml-dev.org) 15 | - binary1248 (binary1248@hotmail.com) 16 | - Artur Moreira (artturmoreira@gmail.com) 17 | - Mario Liebisch (mario@sfml-dev.org) 18 | - And many other members of the SFML community 19 | 20 | ## Download 21 | 22 | You can get the latest official release on [SFML's website](https://www.sfml-dev.org/download.php). You can also get the current development version from the [Git repository](https://github.com/SFML/SFML). 23 | 24 | ## Install 25 | 26 | Follow the instructions of the [tutorials](https://www.sfml-dev.org/tutorials/), there is one for each platform/compiler that SFML supports. 27 | 28 | ## Learn 29 | 30 | There are several places to learn SFML: 31 | 32 | * The [official tutorials](https://www.sfml-dev.org/tutorials/) 33 | * The [online API documentation](https://www.sfml-dev.org/documentation/) 34 | * The [community wiki](https://github.com/SFML/SFML/wiki/) 35 | * The [community forum](https://en.sfml-dev.org/forums/) ([French](https://fr.sfml-dev.org/forums/)) 36 | 37 | ## Contribute 38 | 39 | SFML is an open-source project, and it needs your help to go on growing and improving. If you want to get involved and suggest some additional features, file a bug report or submit a patch, please have a look at the [contribution guidelines](https://www.sfml-dev.org/contribute.php). 40 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/System/Sleep.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_SLEEP_HPP 26 | #define SFML_SLEEP_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | #include 32 | #include 33 | 34 | 35 | namespace sf 36 | { 37 | //////////////////////////////////////////////////////////// 38 | /// \ingroup system 39 | /// \brief Make the current thread sleep for a given duration 40 | /// 41 | /// sf::sleep is the best way to block a program or one of its 42 | /// threads, as it doesn't consume any CPU power. 43 | /// 44 | /// \param duration Time to sleep 45 | /// 46 | //////////////////////////////////////////////////////////// 47 | void SFML_SYSTEM_API sleep(Time duration); 48 | 49 | } // namespace sf 50 | 51 | 52 | #endif // SFML_SLEEP_HPP 53 | -------------------------------------------------------------------------------- /CPlusPlusProject/Rendering.cpp: -------------------------------------------------------------------------------- 1 | #include "Rendering.h" 2 | 3 | Rendering::Rendering(sf::RenderWindow* window) { 4 | this->window = window; 5 | entities = std::vector(); 6 | renderCircles = std::vector(); 7 | } 8 | 9 | void Rendering::render() { 10 | 11 | window->clear(); 12 | 13 | for (int i = 0; i < entities.size(); ++i) { 14 | //Convert position - radius to screen coordinates. 15 | Vector2 entPos = entities[i]->getPosition(); 16 | float radius = entities[i]->getRadius(); 17 | sf::CircleShape & renderCircle = renderCircles[i]; 18 | 19 | sf::Vector2f pixelPosition = convertToScreenCoordinates(entPos.x, entPos.y); 20 | float pixelRadius = radius * pixelsPerUnit; 21 | 22 | renderCircle.setPosition(pixelPosition.x - pixelRadius,pixelPosition.y - pixelRadius); 23 | renderCircle.setRadius(pixelRadius); 24 | 25 | window->draw(renderCircle); 26 | } 27 | 28 | window->display(); 29 | 30 | } 31 | 32 | sf::Vector2f Rendering::convertToScreenCoordinates(float x, float y) { 33 | 34 | float newX = x * pixelsPerUnit + SCREEN_W / 2.f; 35 | 36 | //DOUBLE-CHECK MATH HERE 37 | float newY = -y * pixelsPerUnit + SCREEN_H / 2.f; 38 | 39 | return sf::Vector2f(newX, newY); 40 | } 41 | 42 | Vector2 Rendering::convertToWorldCoordinates(sf::Vector2i screenCoord) { 43 | float newX = (screenCoord.x - (SCREEN_W / 2.f)) / pixelsPerUnit; 44 | 45 | float newY = -(screenCoord.y - (SCREEN_H / 2.f)) / pixelsPerUnit; 46 | 47 | return Vector2(newX, newY); 48 | } 49 | 50 | void Rendering::trackEntity(CircleCollider* entity) { 51 | for (CircleCollider* col : entities) { 52 | if (entity->getEID() == col->getEID()) { 53 | return; 54 | } 55 | } 56 | 57 | entities.push_back(entity); 58 | sf::CircleShape newShape(entity->getRadius()); 59 | renderCircles.push_back(newShape); 60 | } 61 | 62 | void Rendering::untrackEntity(CircleCollider* entity) { 63 | for (int i = 0; i < entities.size(); ++i) { 64 | if (entity->getEID() == entities[i]->getEID()) { 65 | entities.erase(entities.begin() + i); 66 | renderCircles.erase(renderCircles.begin() + i); 67 | return; 68 | } 69 | } 70 | } -------------------------------------------------------------------------------- /CPlusPlusProject/CPlusPlusProject.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | Source Files 26 | 27 | 28 | Source Files 29 | 30 | 31 | Source Files 32 | 33 | 34 | Source Files 35 | 36 | 37 | 38 | 39 | Header Files 40 | 41 | 42 | Header Files 43 | 44 | 45 | Header Files 46 | 47 | 48 | Header Files 49 | 50 | 51 | Header Files 52 | 53 | 54 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/shader/Effect.hpp: -------------------------------------------------------------------------------- 1 | #ifndef EFFECT_HPP 2 | #define EFFECT_HPP 3 | 4 | //////////////////////////////////////////////////////////// 5 | // Headers 6 | //////////////////////////////////////////////////////////// 7 | #include 8 | #include 9 | #include 10 | 11 | 12 | //////////////////////////////////////////////////////////// 13 | // Base class for effects 14 | //////////////////////////////////////////////////////////// 15 | class Effect : public sf::Drawable 16 | { 17 | public: 18 | 19 | virtual ~Effect() 20 | { 21 | } 22 | 23 | static void setFont(const sf::Font& font) 24 | { 25 | s_font = &font; 26 | } 27 | 28 | const std::string& getName() const 29 | { 30 | return m_name; 31 | } 32 | 33 | void load() 34 | { 35 | m_isLoaded = sf::Shader::isAvailable() && onLoad(); 36 | } 37 | 38 | void update(float time, float x, float y) 39 | { 40 | if (m_isLoaded) 41 | onUpdate(time, x, y); 42 | } 43 | 44 | void draw(sf::RenderTarget& target, sf::RenderStates states) const 45 | { 46 | if (m_isLoaded) 47 | { 48 | onDraw(target, states); 49 | } 50 | else 51 | { 52 | sf::Text error("Shader not\nsupported", getFont()); 53 | error.setPosition(320.f, 200.f); 54 | error.setCharacterSize(36); 55 | target.draw(error, states); 56 | } 57 | } 58 | 59 | protected: 60 | 61 | Effect(const std::string& name) : 62 | m_name(name), 63 | m_isLoaded(false) 64 | { 65 | } 66 | 67 | static const sf::Font& getFont() 68 | { 69 | assert(s_font != NULL); 70 | return *s_font; 71 | } 72 | 73 | private: 74 | 75 | // Virtual functions to be implemented in derived effects 76 | virtual bool onLoad() = 0; 77 | virtual void onUpdate(float time, float x, float y) = 0; 78 | virtual void onDraw(sf::RenderTarget& target, sf::RenderStates states) const = 0; 79 | 80 | private: 81 | 82 | std::string m_name; 83 | bool m_isLoaded; 84 | 85 | static const sf::Font* s_font; 86 | }; 87 | 88 | #endif // EFFECT_HPP 89 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Window/WindowStyle.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_WINDOWSTYLE_HPP 26 | #define SFML_WINDOWSTYLE_HPP 27 | 28 | 29 | namespace sf 30 | { 31 | namespace Style 32 | { 33 | //////////////////////////////////////////////////////////// 34 | /// \ingroup window 35 | /// \brief Enumeration of the window styles 36 | /// 37 | //////////////////////////////////////////////////////////// 38 | enum 39 | { 40 | None = 0, ///< No border / title bar (this flag and all others are mutually exclusive) 41 | Titlebar = 1 << 0, ///< Title bar + fixed border 42 | Resize = 1 << 1, ///< Title bar + resizable border + maximize button 43 | Close = 1 << 2, ///< Title bar + close button 44 | Fullscreen = 1 << 3, ///< Fullscreen mode (this flag and all others are mutually exclusive) 45 | 46 | Default = Titlebar | Resize | Close ///< Default window style 47 | }; 48 | } 49 | 50 | } // namespace sf 51 | 52 | 53 | #endif // SFML_WINDOWSTYLE_HPP 54 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Network.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_NETWORK_HPP 26 | #define SFML_NETWORK_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | 44 | 45 | #endif // SFML_NETWORK_HPP 46 | 47 | //////////////////////////////////////////////////////////// 48 | /// \defgroup network Network module 49 | /// 50 | /// Socket-based communication, utilities and higher-level 51 | /// network protocols (HTTP, FTP). 52 | /// 53 | //////////////////////////////////////////////////////////// 54 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Audio.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_AUDIO_HPP 26 | #define SFML_AUDIO_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | #include 44 | #include 45 | #include 46 | 47 | 48 | #endif // SFML_AUDIO_HPP 49 | 50 | //////////////////////////////////////////////////////////// 51 | /// \defgroup audio Audio module 52 | /// 53 | /// Sounds, streaming (musics or custom sources), recording, 54 | /// spatialization. 55 | /// 56 | //////////////////////////////////////////////////////////// 57 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Window.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_SFML_WINDOW_HPP 26 | #define SFML_SFML_WINDOW_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | #include 44 | #include 45 | #include 46 | #include 47 | 48 | 49 | 50 | #endif // SFML_SFML_WINDOW_HPP 51 | 52 | //////////////////////////////////////////////////////////// 53 | /// \defgroup window Window module 54 | /// 55 | /// Provides OpenGL-based windows, and abstractions for 56 | /// events and input handling. 57 | /// 58 | //////////////////////////////////////////////////////////// 59 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/System/NativeActivity.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_NATIVEACTIVITY_HPP 26 | #define SFML_NATIVEACTIVITY_HPP 27 | 28 | 29 | //////////////////////////////////////////////////////////// 30 | // Headers 31 | //////////////////////////////////////////////////////////// 32 | #include 33 | 34 | 35 | #if !defined(SFML_SYSTEM_ANDROID) 36 | #error NativeActivity.hpp: This header is Android only. 37 | #endif 38 | 39 | 40 | struct ANativeActivity; 41 | 42 | namespace sf 43 | { 44 | //////////////////////////////////////////////////////////// 45 | /// \ingroup system 46 | /// \brief Return a pointer to the Android native activity 47 | /// 48 | /// You shouldn't have to use this function, unless you want 49 | /// to implement very specific details, that SFML doesn't 50 | /// support, or to use a workaround for a known issue. 51 | /// 52 | /// \return Pointer to Android native activity structure 53 | /// 54 | /// \sfplatform{Android,SFML/System/NativeActivity.hpp} 55 | /// 56 | //////////////////////////////////////////////////////////// 57 | SFML_SYSTEM_API ANativeActivity* getNativeActivity(); 58 | 59 | } // namespace sf 60 | 61 | 62 | #endif // SFML_NATIVEACTIVITY_HPP 63 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/System.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_SYSTEM_HPP 26 | #define SFML_SYSTEM_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | #include 44 | #include 45 | #include 46 | #include 47 | #include 48 | #include 49 | #include 50 | 51 | #endif // SFML_SYSTEM_HPP 52 | 53 | //////////////////////////////////////////////////////////// 54 | /// \defgroup system System module 55 | /// 56 | /// Base module of SFML, defining various utilities. It provides 57 | /// vector classes, Unicode strings and conversion functions, 58 | /// threads and mutexes, timing classes. 59 | /// 60 | //////////////////////////////////////////////////////////// 61 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/System/ThreadLocalPtr.inl: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | 26 | namespace sf 27 | { 28 | //////////////////////////////////////////////////////////// 29 | template 30 | ThreadLocalPtr::ThreadLocalPtr(T* value) : 31 | ThreadLocal(value) 32 | { 33 | } 34 | 35 | 36 | //////////////////////////////////////////////////////////// 37 | template 38 | T& ThreadLocalPtr::operator *() const 39 | { 40 | return *static_cast(getValue()); 41 | } 42 | 43 | 44 | //////////////////////////////////////////////////////////// 45 | template 46 | T* ThreadLocalPtr::operator ->() const 47 | { 48 | return static_cast(getValue()); 49 | } 50 | 51 | 52 | //////////////////////////////////////////////////////////// 53 | template 54 | ThreadLocalPtr::operator T*() const 55 | { 56 | return static_cast(getValue()); 57 | } 58 | 59 | 60 | //////////////////////////////////////////////////////////// 61 | template 62 | ThreadLocalPtr& ThreadLocalPtr::operator =(T* value) 63 | { 64 | setValue(value); 65 | return *this; 66 | } 67 | 68 | 69 | //////////////////////////////////////////////////////////// 70 | template 71 | ThreadLocalPtr& ThreadLocalPtr::operator =(const ThreadLocalPtr& right) 72 | { 73 | setValue(right.getValue()); 74 | return *this; 75 | } 76 | 77 | } // namespace sf 78 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Audio/AlResource.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_ALRESOURCE_HPP 26 | #define SFML_ALRESOURCE_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | #include 32 | 33 | 34 | namespace sf 35 | { 36 | //////////////////////////////////////////////////////////// 37 | /// \brief Base class for classes that require an OpenAL context 38 | /// 39 | //////////////////////////////////////////////////////////// 40 | class SFML_AUDIO_API AlResource 41 | { 42 | protected: 43 | 44 | //////////////////////////////////////////////////////////// 45 | /// \brief Default constructor 46 | /// 47 | //////////////////////////////////////////////////////////// 48 | AlResource(); 49 | 50 | //////////////////////////////////////////////////////////// 51 | /// \brief Destructor 52 | /// 53 | //////////////////////////////////////////////////////////// 54 | ~AlResource(); 55 | }; 56 | 57 | } // namespace sf 58 | 59 | 60 | #endif // SFML_ALRESOURCE_HPP 61 | 62 | //////////////////////////////////////////////////////////// 63 | /// \class sf::AlResource 64 | /// \ingroup audio 65 | /// 66 | /// This class is for internal use only, it must be the base 67 | /// of every class that requires a valid OpenAL context in 68 | /// order to work. 69 | /// 70 | //////////////////////////////////////////////////////////// 71 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/pages.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 |
31 |
32 |
33 |
Related Pages
34 |
35 |
36 |
Here is a list of all related documentation pages:
37 | 38 | 39 |
 Deprecated List
40 |
41 |
42 | 43 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Graphics/PrimitiveType.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_PRIMITIVETYPE_HPP 26 | #define SFML_PRIMITIVETYPE_HPP 27 | 28 | namespace sf 29 | { 30 | //////////////////////////////////////////////////////////// 31 | /// \ingroup graphics 32 | /// \brief Types of primitives that a sf::VertexArray can render 33 | /// 34 | /// Points and lines have no area, therefore their thickness 35 | /// will always be 1 pixel, regardless the current transform 36 | /// and view. 37 | /// 38 | //////////////////////////////////////////////////////////// 39 | enum PrimitiveType 40 | { 41 | Points, ///< List of individual points 42 | Lines, ///< List of individual lines 43 | LineStrip, ///< List of connected lines, a point uses the previous point to form a line 44 | Triangles, ///< List of individual triangles 45 | TriangleStrip, ///< List of connected triangles, a point uses the two previous points to form a triangle 46 | TriangleFan, ///< List of connected triangles, a point uses the common center and the previous point to form a triangle 47 | Quads, ///< List of individual quads (deprecated, don't work with OpenGL ES) 48 | 49 | // Deprecated names 50 | LinesStrip = LineStrip, ///< \deprecated Use LineStrip instead 51 | TrianglesStrip = TriangleStrip, ///< \deprecated Use TriangleStrip instead 52 | TrianglesFan = TriangleFan ///< \deprecated Use TriangleFan instead 53 | }; 54 | 55 | } // namespace sf 56 | 57 | 58 | #endif // SFML_PRIMITIVETYPE_HPP 59 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/dir_e68e8157741866f444e17edd764ebbae.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 36 | 40 |
41 |
42 |
43 |
doc Directory Reference
44 |
45 |
46 |
47 | 48 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/sockets/UDP.cpp: -------------------------------------------------------------------------------- 1 | 2 | //////////////////////////////////////////////////////////// 3 | // Headers 4 | //////////////////////////////////////////////////////////// 5 | #include 6 | #include 7 | 8 | 9 | //////////////////////////////////////////////////////////// 10 | /// Launch a server, wait for a message, send an answer. 11 | /// 12 | //////////////////////////////////////////////////////////// 13 | void runUdpServer(unsigned short port) 14 | { 15 | // Create a socket to receive a message from anyone 16 | sf::UdpSocket socket; 17 | 18 | // Listen to messages on the specified port 19 | if (socket.bind(port) != sf::Socket::Done) 20 | return; 21 | std::cout << "Server is listening to port " << port << ", waiting for a message... " << std::endl; 22 | 23 | // Wait for a message 24 | char in[128]; 25 | std::size_t received; 26 | sf::IpAddress sender; 27 | unsigned short senderPort; 28 | if (socket.receive(in, sizeof(in), received, sender, senderPort) != sf::Socket::Done) 29 | return; 30 | std::cout << "Message received from client " << sender << ": \"" << in << "\"" << std::endl; 31 | 32 | // Send an answer to the client 33 | const char out[] = "Hi, I'm the server"; 34 | if (socket.send(out, sizeof(out), sender, senderPort) != sf::Socket::Done) 35 | return; 36 | std::cout << "Message sent to the client: \"" << out << "\"" << std::endl; 37 | } 38 | 39 | 40 | //////////////////////////////////////////////////////////// 41 | /// Send a message to the server, wait for the answer 42 | /// 43 | //////////////////////////////////////////////////////////// 44 | void runUdpClient(unsigned short port) 45 | { 46 | // Ask for the server address 47 | sf::IpAddress server; 48 | do 49 | { 50 | std::cout << "Type the address or name of the server to connect to: "; 51 | std::cin >> server; 52 | } 53 | while (server == sf::IpAddress::None); 54 | 55 | // Create a socket for communicating with the server 56 | sf::UdpSocket socket; 57 | 58 | // Send a message to the server 59 | const char out[] = "Hi, I'm a client"; 60 | if (socket.send(out, sizeof(out), server, port) != sf::Socket::Done) 61 | return; 62 | std::cout << "Message sent to the server: \"" << out << "\"" << std::endl; 63 | 64 | // Receive an answer from anyone (but most likely from the server) 65 | char in[128]; 66 | std::size_t received; 67 | sf::IpAddress sender; 68 | unsigned short senderPort; 69 | if (socket.receive(in, sizeof(in), received, sender, senderPort) != sf::Socket::Done) 70 | return; 71 | std::cout << "Message received from " << sender << ": \"" << in << "\"" << std::endl; 72 | } 73 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/OpenGL.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_OPENGL_HPP 26 | #define SFML_OPENGL_HPP 27 | 28 | 29 | //////////////////////////////////////////////////////////// 30 | /// Headers 31 | //////////////////////////////////////////////////////////// 32 | #include 33 | 34 | 35 | //////////////////////////////////////////////////////////// 36 | /// This file just includes the OpenGL headers, 37 | /// which have actually different paths on each system 38 | //////////////////////////////////////////////////////////// 39 | #if defined(SFML_SYSTEM_WINDOWS) 40 | 41 | // The Visual C++ version of gl.h uses WINGDIAPI and APIENTRY but doesn't define them 42 | #ifdef _MSC_VER 43 | #include 44 | #endif 45 | 46 | #include 47 | 48 | #elif defined(SFML_SYSTEM_LINUX) || defined(SFML_SYSTEM_FREEBSD) || defined(SFML_SYSTEM_OPENBSD) 49 | 50 | #if defined(SFML_OPENGL_ES) 51 | #include 52 | #include 53 | #else 54 | #include 55 | #endif 56 | 57 | #elif defined(SFML_SYSTEM_MACOS) 58 | 59 | #include 60 | 61 | #elif defined (SFML_SYSTEM_IOS) 62 | 63 | #include 64 | #include 65 | 66 | #elif defined (SFML_SYSTEM_ANDROID) 67 | 68 | #include 69 | #include 70 | 71 | // We're not using OpenGL ES 2+ yet, but we can use the sRGB extension 72 | #include 73 | #include 74 | 75 | #endif 76 | 77 | 78 | #endif // SFML_OPENGL_HPP 79 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/mainpage_8hpp_source.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 36 | 40 |
41 |
42 |
43 |
mainpage.hpp
44 |
45 |
46 |
1 
47 |
48 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/globals_defs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 36 | 42 |
43 |
44 |   49 |
50 | 51 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Graphics.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_GRAPHICS_HPP 26 | #define SFML_GRAPHICS_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | #include 44 | #include 45 | #include 46 | #include 47 | #include 48 | #include 49 | #include 50 | #include 51 | #include 52 | #include 53 | #include 54 | #include 55 | #include 56 | #include 57 | #include 58 | #include 59 | 60 | 61 | #endif // SFML_GRAPHICS_HPP 62 | 63 | //////////////////////////////////////////////////////////// 64 | /// \defgroup graphics Graphics module 65 | /// 66 | /// 2D graphics module: sprites, text, shapes, ... 67 | /// 68 | //////////////////////////////////////////////////////////// 69 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/dir_d44c64559bbebec7f509842c48db8b23.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 36 | 40 |
41 |
42 |
43 |
include Directory Reference
44 |
45 |
46 | 47 | 49 |

48 | Directories

50 |
51 | 52 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/dir_dd49ddb3ba8035e4a328f8c5f31cda7e.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 36 | 40 |
41 |
42 |
43 |
Audio Directory Reference
44 |
45 |
46 |
47 | 48 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/globals.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 36 | 42 |
43 |
44 |
Here is a list of all documented file members with links to the documentation:
49 |
50 | 51 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/dir_5cf786e58cbf7297a26339ae6e44357c.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 36 | 40 |
41 |
42 |
43 |
Window Directory Reference
44 |
45 |
46 |
47 | 48 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/dir_83d50c0b1f1eceb6f182949162e90861.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 36 | 40 |
41 |
42 |
43 |
System Directory Reference
44 |
45 |
46 |
47 | 48 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/dir_89e9fb32471ae291b179a889144513db.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 36 | 40 |
41 |
42 |
43 |
Network Directory Reference
44 |
45 |
46 |
47 | 48 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/dir_e71ec51a9abd604c65f6abb639f6ea75.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 36 | 40 |
41 |
42 |
43 |
Graphics Directory Reference
44 |
45 |
46 |
47 | 48 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/GpuPreference.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_GPUPREFERENCE_HPP 26 | #define SFML_GPUPREFERENCE_HPP 27 | 28 | 29 | //////////////////////////////////////////////////////////// 30 | /// Headers 31 | //////////////////////////////////////////////////////////// 32 | #include 33 | 34 | 35 | //////////////////////////////////////////////////////////// 36 | /// \file 37 | /// 38 | /// \brief File containing SFML_DEFINE_DISCRETE_GPU_PREFERENCE 39 | /// 40 | //////////////////////////////////////////////////////////// 41 | 42 | 43 | //////////////////////////////////////////////////////////// 44 | /// \def SFML_DEFINE_DISCRETE_GPU_PREFERENCE 45 | /// 46 | /// \brief A macro to encourage usage of the discrete GPU 47 | /// 48 | /// In order to inform the Nvidia/AMD driver that an SFML 49 | /// application could benefit from using the more powerful 50 | /// discrete GPU, special symbols have to be publicly 51 | /// exported from the final executable. 52 | /// 53 | /// SFML defines a helper macro to easily do this. 54 | /// 55 | /// Place SFML_DEFINE_DISCRETE_GPU_PREFERENCE in the 56 | /// global scope of a source file that will be linked into 57 | /// the final executable. Typically it is best to place it 58 | /// where the main function is also defined. 59 | /// 60 | //////////////////////////////////////////////////////////// 61 | #if defined(SFML_SYSTEM_WINDOWS) 62 | 63 | #define SFML_DEFINE_DISCRETE_GPU_PREFERENCE \ 64 | extern "C" __declspec(dllexport) unsigned long NvOptimusEnablement = 1; \ 65 | extern "C" __declspec(dllexport) unsigned long AmdPowerXpressRequestHighPerformance = 1; 66 | 67 | #else 68 | 69 | #define SFML_DEFINE_DISCRETE_GPU_PREFERENCE 70 | 71 | #endif 72 | 73 | 74 | #endif // SFML_GPUPREFERENCE_HPP 75 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/System/Err.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_ERR_HPP 26 | #define SFML_ERR_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | #include 32 | #include 33 | 34 | 35 | namespace sf 36 | { 37 | //////////////////////////////////////////////////////////// 38 | /// \brief Standard stream used by SFML to output warnings and errors 39 | /// 40 | //////////////////////////////////////////////////////////// 41 | SFML_SYSTEM_API std::ostream& err(); 42 | 43 | } // namespace sf 44 | 45 | 46 | #endif // SFML_ERR_HPP 47 | 48 | 49 | //////////////////////////////////////////////////////////// 50 | /// \fn sf::err 51 | /// \ingroup system 52 | /// 53 | /// By default, sf::err() outputs to the same location as std::cerr, 54 | /// (-> the stderr descriptor) which is the console if there's 55 | /// one available. 56 | /// 57 | /// It is a standard std::ostream instance, so it supports all the 58 | /// insertion operations defined by the STL 59 | /// (operator <<, manipulators, etc.). 60 | /// 61 | /// sf::err() can be redirected to write to another output, independently 62 | /// of std::cerr, by using the rdbuf() function provided by the 63 | /// std::ostream class. 64 | /// 65 | /// Example: 66 | /// \code 67 | /// // Redirect to a file 68 | /// std::ofstream file("sfml-log.txt"); 69 | /// std::streambuf* previous = sf::err().rdbuf(file.rdbuf()); 70 | /// 71 | /// // Redirect to nothing 72 | /// sf::err().rdbuf(NULL); 73 | /// 74 | /// // Restore the original output 75 | /// sf::err().rdbuf(previous); 76 | /// \endcode 77 | /// 78 | /// \return Reference to std::ostream representing the SFML error stream 79 | /// 80 | //////////////////////////////////////////////////////////// 81 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/sockets/TCP.cpp: -------------------------------------------------------------------------------- 1 | 2 | //////////////////////////////////////////////////////////// 3 | // Headers 4 | //////////////////////////////////////////////////////////// 5 | #include 6 | #include 7 | 8 | 9 | //////////////////////////////////////////////////////////// 10 | /// Launch a server, wait for an incoming connection, 11 | /// send a message and wait for the answer. 12 | /// 13 | //////////////////////////////////////////////////////////// 14 | void runTcpServer(unsigned short port) 15 | { 16 | // Create a server socket to accept new connections 17 | sf::TcpListener listener; 18 | 19 | // Listen to the given port for incoming connections 20 | if (listener.listen(port) != sf::Socket::Done) 21 | return; 22 | std::cout << "Server is listening to port " << port << ", waiting for connections... " << std::endl; 23 | 24 | // Wait for a connection 25 | sf::TcpSocket socket; 26 | if (listener.accept(socket) != sf::Socket::Done) 27 | return; 28 | std::cout << "Client connected: " << socket.getRemoteAddress() << std::endl; 29 | 30 | // Send a message to the connected client 31 | const char out[] = "Hi, I'm the server"; 32 | if (socket.send(out, sizeof(out)) != sf::Socket::Done) 33 | return; 34 | std::cout << "Message sent to the client: \"" << out << "\"" << std::endl; 35 | 36 | // Receive a message back from the client 37 | char in[128]; 38 | std::size_t received; 39 | if (socket.receive(in, sizeof(in), received) != sf::Socket::Done) 40 | return; 41 | std::cout << "Answer received from the client: \"" << in << "\"" << std::endl; 42 | } 43 | 44 | 45 | //////////////////////////////////////////////////////////// 46 | /// Create a client, connect it to a server, display the 47 | /// welcome message and send an answer. 48 | /// 49 | //////////////////////////////////////////////////////////// 50 | void runTcpClient(unsigned short port) 51 | { 52 | // Ask for the server address 53 | sf::IpAddress server; 54 | do 55 | { 56 | std::cout << "Type the address or name of the server to connect to: "; 57 | std::cin >> server; 58 | } 59 | while (server == sf::IpAddress::None); 60 | 61 | // Create a socket for communicating with the server 62 | sf::TcpSocket socket; 63 | 64 | // Connect to the server 65 | if (socket.connect(server, port) != sf::Socket::Done) 66 | return; 67 | std::cout << "Connected to server " << server << std::endl; 68 | 69 | // Receive a message from the server 70 | char in[128]; 71 | std::size_t received; 72 | if (socket.receive(in, sizeof(in), received) != sf::Socket::Done) 73 | return; 74 | std::cout << "Message received from the server: \"" << in << "\"" << std::endl; 75 | 76 | // Send an answer to the server 77 | const char out[] = "Hi, I'm a client"; 78 | if (socket.send(out, sizeof(out)) != sf::Socket::Done) 79 | return; 80 | std::cout << "Message sent to the server: \"" << out << "\"" << std::endl; 81 | } 82 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Graphics/Glyph.hpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | #ifndef SFML_GLYPH_HPP 26 | #define SFML_GLYPH_HPP 27 | 28 | //////////////////////////////////////////////////////////// 29 | // Headers 30 | //////////////////////////////////////////////////////////// 31 | #include 32 | #include 33 | 34 | 35 | namespace sf 36 | { 37 | //////////////////////////////////////////////////////////// 38 | /// \brief Structure describing a glyph 39 | /// 40 | //////////////////////////////////////////////////////////// 41 | class SFML_GRAPHICS_API Glyph 42 | { 43 | public: 44 | 45 | //////////////////////////////////////////////////////////// 46 | /// \brief Default constructor 47 | /// 48 | //////////////////////////////////////////////////////////// 49 | Glyph() : advance(0) {} 50 | 51 | //////////////////////////////////////////////////////////// 52 | // Member data 53 | //////////////////////////////////////////////////////////// 54 | float advance; ///< Offset to move horizontally to the next character 55 | FloatRect bounds; ///< Bounding rectangle of the glyph, in coordinates relative to the baseline 56 | IntRect textureRect; ///< Texture coordinates of the glyph inside the font's texture 57 | }; 58 | 59 | } // namespace sf 60 | 61 | 62 | #endif // SFML_GLYPH_HPP 63 | 64 | 65 | //////////////////////////////////////////////////////////// 66 | /// \class sf::Glyph 67 | /// \ingroup graphics 68 | /// 69 | /// A glyph is the visual representation of a character. 70 | /// 71 | /// The sf::Glyph structure provides the information needed 72 | /// to handle the glyph: 73 | /// \li its coordinates in the font's texture 74 | /// \li its bounding rectangle 75 | /// \li the offset to apply to get the starting position of the next glyph 76 | /// 77 | /// \see sf::Font 78 | /// 79 | //////////////////////////////////////////////////////////// 80 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/System/Thread.inl: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | namespace priv 26 | { 27 | // Base class for abstract thread functions 28 | struct ThreadFunc 29 | { 30 | virtual ~ThreadFunc() {} 31 | virtual void run() = 0; 32 | }; 33 | 34 | // Specialization using a functor (including free functions) with no argument 35 | template 36 | struct ThreadFunctor : ThreadFunc 37 | { 38 | ThreadFunctor(T functor) : m_functor(functor) {} 39 | virtual void run() {m_functor();} 40 | T m_functor; 41 | }; 42 | 43 | // Specialization using a functor (including free functions) with one argument 44 | template 45 | struct ThreadFunctorWithArg : ThreadFunc 46 | { 47 | ThreadFunctorWithArg(F function, A arg) : m_function(function), m_arg(arg) {} 48 | virtual void run() {m_function(m_arg);} 49 | F m_function; 50 | A m_arg; 51 | }; 52 | 53 | // Specialization using a member function 54 | template 55 | struct ThreadMemberFunc : ThreadFunc 56 | { 57 | ThreadMemberFunc(void(C::*function)(), C* object) : m_function(function), m_object(object) {} 58 | virtual void run() {(m_object->*m_function)();} 59 | void(C::*m_function)(); 60 | C* m_object; 61 | }; 62 | 63 | } // namespace priv 64 | 65 | 66 | //////////////////////////////////////////////////////////// 67 | template 68 | Thread::Thread(F functor) : 69 | m_impl (NULL), 70 | m_entryPoint(new priv::ThreadFunctor(functor)) 71 | { 72 | } 73 | 74 | 75 | //////////////////////////////////////////////////////////// 76 | template 77 | Thread::Thread(F function, A argument) : 78 | m_impl (NULL), 79 | m_entryPoint(new priv::ThreadFunctorWithArg(function, argument)) 80 | { 81 | } 82 | 83 | 84 | //////////////////////////////////////////////////////////// 85 | template 86 | Thread::Thread(void(C::*function)(), C* object) : 87 | m_impl (NULL), 88 | m_entryPoint(new priv::ThreadMemberFunc(function, object)) 89 | { 90 | } 91 | -------------------------------------------------------------------------------- /CPlusPlusProject/Physics2D.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "Entity.h" 3 | #include 4 | #include 5 | 6 | 7 | //Consider using Spatial Hashing or Quad Trees 8 | //Consider using OpenGL, GLM, and DirectXMath 9 | 10 | struct Vector2 { 11 | 12 | Vector2(float x, float y); 13 | Vector2() = default; 14 | 15 | float x; 16 | float y; 17 | 18 | //I should just make a length field that is updated whenever x and y are updated. 19 | 20 | float magnitude(); 21 | Vector2 normalized(); 22 | 23 | static float distance(Vector2 pos1, Vector2 pos2); 24 | //The proportion argument is clamped between 0 and 1, inclusive. 25 | static Vector2 lerp(Vector2 pos1, Vector2 pos2, float proportion); 26 | Vector2 operator+(Vector2 otherVec); 27 | Vector2 operator-(Vector2 otherVec); 28 | Vector2 operator/(float otherVal); 29 | Vector2 operator*(float otherVal); 30 | 31 | friend std::ostream& operator<<(std::ostream& os, const Vector2& vec); 32 | 33 | private: 34 | 35 | float _savedX; 36 | float _magnitude = 0; 37 | float _xNormalized = 0; 38 | float _yNormalized = 0; 39 | }; 40 | 41 | class CircleCollider : public Entity { 42 | 43 | private: 44 | float radius; 45 | Vector2 position; 46 | std::vector overlappedColliders = std::vector(); 47 | 48 | public: 49 | CircleCollider() = default; 50 | CircleCollider(Vector2 position, float radius); 51 | 52 | Vector2 getPosition(); 53 | float getRadius(); 54 | float getArea(); 55 | 56 | void move(Vector2 offset); 57 | 58 | 59 | static bool isCollided(CircleCollider* colA, CircleCollider* colB); 60 | 61 | }; 62 | 63 | class Rigidbody2D : public Entity { 64 | private: 65 | CircleCollider * collider; 66 | Vector2 acceleration;//Units per second per second. How much I'm increasing/decreasing velocity each second. 67 | Vector2 velocity;//Units per second. 68 | float mass; 69 | float resistanceModifier = 1.f; 70 | 71 | 72 | public: 73 | Rigidbody2D(CircleCollider * collider, Vector2 velocity = Vector2(0,0), float mass = 1); 74 | CircleCollider* getCollider(); 75 | Vector2 getAcceleration(); 76 | Vector2 getVelocity(); 77 | float getMass(); 78 | void setMass(float newMass); 79 | float getResistanceModifier(); 80 | 81 | void applyMomentum(Vector2 momentum); 82 | void applyForce(Vector2 force); 83 | 84 | }; 85 | 86 | class Physics2D { 87 | private: 88 | //I should probably make this into a Binary tree. Red-Black, maybe? 89 | std::vector entities; 90 | //std::vector projectedPositions; 91 | 92 | void calculatePositions(); 93 | //My initial implementation for this will be super inefficient. I intend to optimize it once I've got the basics working. 94 | void calculateCollisions(); 95 | static void negateOverlap(Rigidbody2D * rb1, Rigidbody2D * rb2); 96 | static void collide(Rigidbody2D* rb1, Rigidbody2D* rb2); 97 | static Vector2 calculateMomentumTransfer(Rigidbody2D* primaryRb, Rigidbody2D* otherRb); 98 | 99 | static Vector2 resistanceToMovement(Vector2 velocity, float resistanceModifier); 100 | static float baseResistance; 101 | 102 | public: 103 | 104 | Physics2D(); 105 | void updatePhysics(); 106 | void trackEntity(Rigidbody2D* entity); 107 | void untrackEntity(Rigidbody2D* entity); 108 | }; -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/lib/cmake/SFML/SFMLStaticTargets-debug.cmake: -------------------------------------------------------------------------------- 1 | #---------------------------------------------------------------- 2 | # Generated CMake target import file for configuration "Debug". 3 | #---------------------------------------------------------------- 4 | 5 | # Commands may need to know the format version. 6 | set(CMAKE_IMPORT_FILE_VERSION 1) 7 | 8 | # Import target "sfml-system" for configuration "Debug" 9 | set_property(TARGET sfml-system APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) 10 | set_target_properties(sfml-system PROPERTIES 11 | IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX" 12 | IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/sfml-system-s-d.lib" 13 | ) 14 | 15 | list(APPEND _IMPORT_CHECK_TARGETS sfml-system ) 16 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-system "${_IMPORT_PREFIX}/lib/sfml-system-s-d.lib" ) 17 | 18 | # Import target "sfml-main" for configuration "Debug" 19 | set_property(TARGET sfml-main APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) 20 | set_target_properties(sfml-main PROPERTIES 21 | IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX" 22 | IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/sfml-main-d.lib" 23 | ) 24 | 25 | list(APPEND _IMPORT_CHECK_TARGETS sfml-main ) 26 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-main "${_IMPORT_PREFIX}/lib/sfml-main-d.lib" ) 27 | 28 | # Import target "sfml-window" for configuration "Debug" 29 | set_property(TARGET sfml-window APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) 30 | set_target_properties(sfml-window PROPERTIES 31 | IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX" 32 | IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/sfml-window-s-d.lib" 33 | ) 34 | 35 | list(APPEND _IMPORT_CHECK_TARGETS sfml-window ) 36 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-window "${_IMPORT_PREFIX}/lib/sfml-window-s-d.lib" ) 37 | 38 | # Import target "sfml-network" for configuration "Debug" 39 | set_property(TARGET sfml-network APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) 40 | set_target_properties(sfml-network PROPERTIES 41 | IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX" 42 | IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/sfml-network-s-d.lib" 43 | ) 44 | 45 | list(APPEND _IMPORT_CHECK_TARGETS sfml-network ) 46 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-network "${_IMPORT_PREFIX}/lib/sfml-network-s-d.lib" ) 47 | 48 | # Import target "sfml-graphics" for configuration "Debug" 49 | set_property(TARGET sfml-graphics APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) 50 | set_target_properties(sfml-graphics PROPERTIES 51 | IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX" 52 | IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/sfml-graphics-s-d.lib" 53 | ) 54 | 55 | list(APPEND _IMPORT_CHECK_TARGETS sfml-graphics ) 56 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-graphics "${_IMPORT_PREFIX}/lib/sfml-graphics-s-d.lib" ) 57 | 58 | # Import target "sfml-audio" for configuration "Debug" 59 | set_property(TARGET sfml-audio APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) 60 | set_target_properties(sfml-audio PROPERTIES 61 | IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX" 62 | IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/sfml-audio-s-d.lib" 63 | ) 64 | 65 | list(APPEND _IMPORT_CHECK_TARGETS sfml-audio ) 66 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-audio "${_IMPORT_PREFIX}/lib/sfml-audio-s-d.lib" ) 67 | 68 | # Commands beyond this point should not need to know the version. 69 | set(CMAKE_IMPORT_FILE_VERSION) 70 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/functions_rela.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 38 | 49 |
50 |
51 |   56 |
57 | 58 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/lib/cmake/SFML/SFMLStaticTargets-release.cmake: -------------------------------------------------------------------------------- 1 | #---------------------------------------------------------------- 2 | # Generated CMake target import file for configuration "Release". 3 | #---------------------------------------------------------------- 4 | 5 | # Commands may need to know the format version. 6 | set(CMAKE_IMPORT_FILE_VERSION 1) 7 | 8 | # Import target "sfml-system" for configuration "Release" 9 | set_property(TARGET sfml-system APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) 10 | set_target_properties(sfml-system PROPERTIES 11 | IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX" 12 | IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/sfml-system-s.lib" 13 | ) 14 | 15 | list(APPEND _IMPORT_CHECK_TARGETS sfml-system ) 16 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-system "${_IMPORT_PREFIX}/lib/sfml-system-s.lib" ) 17 | 18 | # Import target "sfml-main" for configuration "Release" 19 | set_property(TARGET sfml-main APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) 20 | set_target_properties(sfml-main PROPERTIES 21 | IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX" 22 | IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/sfml-main.lib" 23 | ) 24 | 25 | list(APPEND _IMPORT_CHECK_TARGETS sfml-main ) 26 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-main "${_IMPORT_PREFIX}/lib/sfml-main.lib" ) 27 | 28 | # Import target "sfml-window" for configuration "Release" 29 | set_property(TARGET sfml-window APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) 30 | set_target_properties(sfml-window PROPERTIES 31 | IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX" 32 | IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/sfml-window-s.lib" 33 | ) 34 | 35 | list(APPEND _IMPORT_CHECK_TARGETS sfml-window ) 36 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-window "${_IMPORT_PREFIX}/lib/sfml-window-s.lib" ) 37 | 38 | # Import target "sfml-network" for configuration "Release" 39 | set_property(TARGET sfml-network APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) 40 | set_target_properties(sfml-network PROPERTIES 41 | IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX" 42 | IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/sfml-network-s.lib" 43 | ) 44 | 45 | list(APPEND _IMPORT_CHECK_TARGETS sfml-network ) 46 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-network "${_IMPORT_PREFIX}/lib/sfml-network-s.lib" ) 47 | 48 | # Import target "sfml-graphics" for configuration "Release" 49 | set_property(TARGET sfml-graphics APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) 50 | set_target_properties(sfml-graphics PROPERTIES 51 | IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX" 52 | IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/sfml-graphics-s.lib" 53 | ) 54 | 55 | list(APPEND _IMPORT_CHECK_TARGETS sfml-graphics ) 56 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-graphics "${_IMPORT_PREFIX}/lib/sfml-graphics-s.lib" ) 57 | 58 | # Import target "sfml-audio" for configuration "Release" 59 | set_property(TARGET sfml-audio APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) 60 | set_target_properties(sfml-audio PROPERTIES 61 | IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX" 62 | IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/sfml-audio-s.lib" 63 | ) 64 | 65 | list(APPEND _IMPORT_CHECK_TARGETS sfml-audio ) 66 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-audio "${_IMPORT_PREFIX}/lib/sfml-audio-s.lib" ) 67 | 68 | # Commands beyond this point should not need to know the version. 69 | set(CMAKE_IMPORT_FILE_VERSION) 70 | -------------------------------------------------------------------------------- /CPlusPlusProject/Game.cpp: -------------------------------------------------------------------------------- 1 | #include "Game.h" 2 | #include "Time.h" 3 | //Right now, the implementation is pretty simplistic and not amazing. Will make better over time. 4 | 5 | void Game::run() { 6 | initialize(); 7 | 8 | //Eventually, make these into separate threads--events and rendering will probably need to be on the first thread, unless I can decouple them. 9 | while (!exitGame) { 10 | events(); 11 | fixedUpdate(); 12 | update(); 13 | render(); 14 | } 15 | 16 | onExit(); 17 | } 18 | 19 | 20 | void Game::initialize() { 21 | physics2D = Physics2D(); 22 | 23 | window = new sf::RenderWindow(sf::VideoMode(1000, 750), "JC's Game"); 24 | rendering = new Rendering(window); 25 | 26 | colliderPtrs = std::vector(); 27 | rbPtrs = std::vector(); 28 | 29 | //for (int i = 0; i < 10; i++) { 30 | 31 | // colliderPtrs.push_back(new CircleCollider(Vector2(i - 5, i - 5), 0.5)); 32 | // rbPtrs.push_back(new Rigidbody2D(colliderPtrs[i])); 33 | 34 | // physics2D.trackEntity(rbPtrs[i]); 35 | // rendering->trackEntity(rbPtrs[i]->getCollider()); 36 | 37 | // rbPtrs[i]->applyMomentum(Vector2(0, -1)); 38 | 39 | //} 40 | int modifier = 1; 41 | for (int i = 0; i < 50; ++i) { 42 | modifier *= -1; 43 | colliderPtrs.push_back(new CircleCollider(Vector2(i, i * modifier), 0.25)); 44 | colliderPtrs.push_back(new CircleCollider(Vector2(-i, i * modifier), 0.25)); 45 | rbPtrs.push_back(new Rigidbody2D(colliderPtrs[i])); 46 | 47 | rbPtrs[i]->setMass(1); 48 | 49 | physics2D.trackEntity(rbPtrs[i]); 50 | rendering->trackEntity(rbPtrs[i]->getCollider()); 51 | 52 | } 53 | 54 | //colliderPtrs.push_back(new CircleCollider(Vector2(-5, 0), 1)); 55 | //colliderPtrs.push_back(new CircleCollider(Vector2(5, 0), 0.5)); 56 | //colliderPtrs.push_back(new CircleCollider(Vector2(0, 5), 2)); 57 | 58 | //rbPtrs.push_back(new Rigidbody2D(colliderPtrs[0])); 59 | //rbPtrs.push_back(new Rigidbody2D(colliderPtrs[1])); 60 | 61 | 62 | //physics2D.trackEntity(rbPtrs[0]); 63 | //rendering->trackEntity(rbPtrs[0]->getCollider()); 64 | 65 | //physics2D.trackEntity(rbPtrs[1]); 66 | //rendering->trackEntity(rbPtrs[1]->getCollider()); 67 | 68 | //rbPtrs[0]->applyMomentum(Vector2(1, 0)); 69 | //rbPtrs[1]->applyMomentum(Vector2(-1, 0)); 70 | 71 | //rbPtrs[0]->setMass(2); 72 | //rbPtrs[1]->setMass(1); 73 | 74 | } 75 | 76 | void Game::events() { 77 | while (window->pollEvent(event)) { 78 | if (event.type == sf::Event::Closed) { 79 | exitGame = true; 80 | } 81 | } 82 | } 83 | 84 | void Game::fixedUpdate() { 85 | physics2D.updatePhysics(); 86 | 87 | Time::tickFixedUpdate(); 88 | } 89 | 90 | void Game::update() { 91 | 92 | 93 | sf::Vector2i mousePos = sf::Mouse::getPosition(*window); 94 | Vector2 mouseToWorldPos = rendering->convertToWorldCoordinates(mousePos); 95 | 96 | for (Rigidbody2D* rb : rbPtrs) { 97 | Vector2 diff = mouseToWorldPos - rb->getCollider()->getPosition(); 98 | rb->applyForce(diff.normalized() * 100); 99 | } 100 | 101 | Time::tickUpdate(); 102 | } 103 | 104 | void Game::render() { 105 | rendering->render(); 106 | } 107 | 108 | void Game::onExit() { 109 | 110 | delete rendering; 111 | 112 | window->close(); 113 | delete window; 114 | 115 | for (Rigidbody2D* rb : rbPtrs) { 116 | delete rb; 117 | } 118 | for (CircleCollider* col : colliderPtrs) { 119 | delete col; 120 | } 121 | } -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/structsf_1_1Font_1_1Info-members.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 38 | 42 |
43 |
44 |
45 |
sf::Font::Info Member List
46 |
47 |
48 | 49 |

This is the complete list of members for sf::Font::Info, including all inherited members.

50 | 51 | 52 |
familysf::Font::Info
53 | 54 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/namespaces.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 36 |
37 |
38 |
39 |
Namespace List
40 |
41 |
42 |
Here is a list of all documented namespaces with brief descriptions:
43 |
[detail level 12]
44 | 45 | 46 |
 Nsf
 NGlslNamespace with GLSL types
47 |
48 |
49 | 50 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/sound-capture/SoundCapture.cpp: -------------------------------------------------------------------------------- 1 | 2 | //////////////////////////////////////////////////////////// 3 | // Headers 4 | //////////////////////////////////////////////////////////// 5 | #include 6 | #include 7 | 8 | 9 | //////////////////////////////////////////////////////////// 10 | /// Entry point of application 11 | /// 12 | /// \return Application exit code 13 | /// 14 | //////////////////////////////////////////////////////////// 15 | int main() 16 | { 17 | // Check that the device can capture audio 18 | if (sf::SoundRecorder::isAvailable() == false) 19 | { 20 | std::cout << "Sorry, audio capture is not supported by your system" << std::endl; 21 | return EXIT_SUCCESS; 22 | } 23 | 24 | // Choose the sample rate 25 | unsigned int sampleRate; 26 | std::cout << "Please choose the sample rate for sound capture (44100 is CD quality): "; 27 | std::cin >> sampleRate; 28 | std::cin.ignore(10000, '\n'); 29 | 30 | // Wait for user input... 31 | std::cout << "Press enter to start recording audio"; 32 | std::cin.ignore(10000, '\n'); 33 | 34 | // Here we'll use an integrated custom recorder, which saves the captured data into a SoundBuffer 35 | sf::SoundBufferRecorder recorder; 36 | 37 | // Audio capture is done in a separate thread, so we can block the main thread while it is capturing 38 | recorder.start(sampleRate); 39 | std::cout << "Recording... press enter to stop"; 40 | std::cin.ignore(10000, '\n'); 41 | recorder.stop(); 42 | 43 | // Get the buffer containing the captured data 44 | const sf::SoundBuffer& buffer = recorder.getBuffer(); 45 | 46 | // Display captured sound informations 47 | std::cout << "Sound information:" << std::endl; 48 | std::cout << " " << buffer.getDuration().asSeconds() << " seconds" << std::endl; 49 | std::cout << " " << buffer.getSampleRate() << " samples / seconds" << std::endl; 50 | std::cout << " " << buffer.getChannelCount() << " channels" << std::endl; 51 | 52 | // Choose what to do with the recorded sound data 53 | char choice; 54 | std::cout << "What do you want to do with captured sound (p = play, s = save) ? "; 55 | std::cin >> choice; 56 | std::cin.ignore(10000, '\n'); 57 | 58 | if (choice == 's') 59 | { 60 | // Choose the filename 61 | std::string filename; 62 | std::cout << "Choose the file to create: "; 63 | std::getline(std::cin, filename); 64 | 65 | // Save the buffer 66 | buffer.saveToFile(filename); 67 | } 68 | else 69 | { 70 | // Create a sound instance and play it 71 | sf::Sound sound(buffer); 72 | sound.play(); 73 | 74 | // Wait until finished 75 | while (sound.getStatus() == sf::Sound::Playing) 76 | { 77 | // Display the playing position 78 | std::cout << "\rPlaying... " << sound.getPlayingOffset().asSeconds() << " sec "; 79 | std::cout << std::flush; 80 | 81 | // Leave some CPU time for other threads 82 | sf::sleep(sf::milliseconds(100)); 83 | } 84 | } 85 | 86 | // Finished! 87 | std::cout << std::endl << "Done!" << std::endl; 88 | 89 | // Wait until the user presses 'enter' key 90 | std::cout << "Press enter to exit..." << std::endl; 91 | std::cin.ignore(10000, '\n'); 92 | 93 | return EXIT_SUCCESS; 94 | } 95 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/structsf_1_1Event_1_1TextEvent-members.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 38 | 42 |
43 |
44 |
45 |
sf::Event::TextEvent Member List
46 |
47 |
48 | 49 |

This is the complete list of members for sf::Event::TextEvent, including all inherited members.

50 | 51 | 52 |
unicodesf::Event::TextEvent
53 | 54 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/functions_type.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 38 | 49 |
50 |
51 |   59 |
60 | 61 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/examples/sound/Sound.cpp: -------------------------------------------------------------------------------- 1 | 2 | //////////////////////////////////////////////////////////// 3 | // Headers 4 | //////////////////////////////////////////////////////////// 5 | #include 6 | #include 7 | #include 8 | 9 | 10 | //////////////////////////////////////////////////////////// 11 | /// Play a sound 12 | /// 13 | //////////////////////////////////////////////////////////// 14 | void playSound() 15 | { 16 | // Load a sound buffer from a wav file 17 | sf::SoundBuffer buffer; 18 | if (!buffer.loadFromFile("resources/canary.wav")) 19 | return; 20 | 21 | // Display sound informations 22 | std::cout << "canary.wav:" << std::endl; 23 | std::cout << " " << buffer.getDuration().asSeconds() << " seconds" << std::endl; 24 | std::cout << " " << buffer.getSampleRate() << " samples / sec" << std::endl; 25 | std::cout << " " << buffer.getChannelCount() << " channels" << std::endl; 26 | 27 | // Create a sound instance and play it 28 | sf::Sound sound(buffer); 29 | sound.play(); 30 | 31 | // Loop while the sound is playing 32 | while (sound.getStatus() == sf::Sound::Playing) 33 | { 34 | // Leave some CPU time for other processes 35 | sf::sleep(sf::milliseconds(100)); 36 | 37 | // Display the playing position 38 | std::cout << "\rPlaying... " << sound.getPlayingOffset().asSeconds() << " sec "; 39 | std::cout << std::flush; 40 | } 41 | std::cout << std::endl << std::endl; 42 | } 43 | 44 | 45 | //////////////////////////////////////////////////////////// 46 | /// Play a music 47 | /// 48 | //////////////////////////////////////////////////////////// 49 | void playMusic(const std::string& filename) 50 | { 51 | // Load an ogg music file 52 | sf::Music music; 53 | if (!music.openFromFile("resources/" + filename)) 54 | return; 55 | 56 | // Display music informations 57 | std::cout << filename << ":" << std::endl; 58 | std::cout << " " << music.getDuration().asSeconds() << " seconds" << std::endl; 59 | std::cout << " " << music.getSampleRate() << " samples / sec" << std::endl; 60 | std::cout << " " << music.getChannelCount() << " channels" << std::endl; 61 | 62 | // Play it 63 | music.play(); 64 | 65 | // Loop while the music is playing 66 | while (music.getStatus() == sf::Music::Playing) 67 | { 68 | // Leave some CPU time for other processes 69 | sf::sleep(sf::milliseconds(100)); 70 | 71 | // Display the playing position 72 | std::cout << "\rPlaying... " << music.getPlayingOffset().asSeconds() << " sec "; 73 | std::cout << std::flush; 74 | } 75 | std::cout << std::endl << std::endl; 76 | } 77 | 78 | 79 | //////////////////////////////////////////////////////////// 80 | /// Entry point of application 81 | /// 82 | /// \return Application exit code 83 | /// 84 | //////////////////////////////////////////////////////////// 85 | int main() 86 | { 87 | // Play a sound 88 | playSound(); 89 | 90 | // Play music from an ogg file 91 | playMusic("orchestral.ogg"); 92 | 93 | // Play music from a flac file 94 | playMusic("ding.flac"); 95 | 96 | // Wait until the user presses 'enter' key 97 | std::cout << "Press enter to exit..." << std::endl; 98 | std::cin.ignore(10000, '\n'); 99 | 100 | return EXIT_SUCCESS; 101 | } 102 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/structsf_1_1Event_1_1JoystickConnectEvent-members.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 38 | 42 |
43 |
44 |
45 |
sf::Event::JoystickConnectEvent Member List
46 |
47 |
48 | 49 |

This is the complete list of members for sf::Event::JoystickConnectEvent, including all inherited members.

50 | 51 | 52 |
joystickIdsf::Event::JoystickConnectEvent
53 | 54 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/dir_c0a853e81d6f1c1f0a3eb7a27dc24256.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 36 | 40 |
41 |
42 |
43 |
SFML Directory Reference
44 |
45 |
46 | 47 | 49 |

48 | Directories

50 | 52 | 53 | 54 | 55 |

51 | Files

file  GpuPreference.hpp [code]
 Headers.
 
56 |
57 | 58 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/lib/cmake/SFML/SFMLSharedTargets-debug.cmake: -------------------------------------------------------------------------------- 1 | #---------------------------------------------------------------- 2 | # Generated CMake target import file for configuration "Debug". 3 | #---------------------------------------------------------------- 4 | 5 | # Commands may need to know the format version. 6 | set(CMAKE_IMPORT_FILE_VERSION 1) 7 | 8 | # Import target "sfml-system" for configuration "Debug" 9 | set_property(TARGET sfml-system APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) 10 | set_target_properties(sfml-system PROPERTIES 11 | IMPORTED_IMPLIB_DEBUG "${_IMPORT_PREFIX}/lib/sfml-system-d.lib" 12 | IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/bin/sfml-system-d-2.dll" 13 | ) 14 | 15 | list(APPEND _IMPORT_CHECK_TARGETS sfml-system ) 16 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-system "${_IMPORT_PREFIX}/lib/sfml-system-d.lib" "${_IMPORT_PREFIX}/bin/sfml-system-d-2.dll" ) 17 | 18 | # Import target "sfml-main" for configuration "Debug" 19 | set_property(TARGET sfml-main APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) 20 | set_target_properties(sfml-main PROPERTIES 21 | IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX" 22 | IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/sfml-main-d.lib" 23 | ) 24 | 25 | list(APPEND _IMPORT_CHECK_TARGETS sfml-main ) 26 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-main "${_IMPORT_PREFIX}/lib/sfml-main-d.lib" ) 27 | 28 | # Import target "sfml-window" for configuration "Debug" 29 | set_property(TARGET sfml-window APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) 30 | set_target_properties(sfml-window PROPERTIES 31 | IMPORTED_IMPLIB_DEBUG "${_IMPORT_PREFIX}/lib/sfml-window-d.lib" 32 | IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/bin/sfml-window-d-2.dll" 33 | ) 34 | 35 | list(APPEND _IMPORT_CHECK_TARGETS sfml-window ) 36 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-window "${_IMPORT_PREFIX}/lib/sfml-window-d.lib" "${_IMPORT_PREFIX}/bin/sfml-window-d-2.dll" ) 37 | 38 | # Import target "sfml-network" for configuration "Debug" 39 | set_property(TARGET sfml-network APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) 40 | set_target_properties(sfml-network PROPERTIES 41 | IMPORTED_IMPLIB_DEBUG "${_IMPORT_PREFIX}/lib/sfml-network-d.lib" 42 | IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/bin/sfml-network-d-2.dll" 43 | ) 44 | 45 | list(APPEND _IMPORT_CHECK_TARGETS sfml-network ) 46 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-network "${_IMPORT_PREFIX}/lib/sfml-network-d.lib" "${_IMPORT_PREFIX}/bin/sfml-network-d-2.dll" ) 47 | 48 | # Import target "sfml-graphics" for configuration "Debug" 49 | set_property(TARGET sfml-graphics APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) 50 | set_target_properties(sfml-graphics PROPERTIES 51 | IMPORTED_IMPLIB_DEBUG "${_IMPORT_PREFIX}/lib/sfml-graphics-d.lib" 52 | IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/bin/sfml-graphics-d-2.dll" 53 | ) 54 | 55 | list(APPEND _IMPORT_CHECK_TARGETS sfml-graphics ) 56 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-graphics "${_IMPORT_PREFIX}/lib/sfml-graphics-d.lib" "${_IMPORT_PREFIX}/bin/sfml-graphics-d-2.dll" ) 57 | 58 | # Import target "sfml-audio" for configuration "Debug" 59 | set_property(TARGET sfml-audio APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) 60 | set_target_properties(sfml-audio PROPERTIES 61 | IMPORTED_IMPLIB_DEBUG "${_IMPORT_PREFIX}/lib/sfml-audio-d.lib" 62 | IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/bin/sfml-audio-d-2.dll" 63 | ) 64 | 65 | list(APPEND _IMPORT_CHECK_TARGETS sfml-audio ) 66 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-audio "${_IMPORT_PREFIX}/lib/sfml-audio-d.lib" "${_IMPORT_PREFIX}/bin/sfml-audio-d-2.dll" ) 67 | 68 | # Commands beyond this point should not need to know the version. 69 | set(CMAKE_IMPORT_FILE_VERSION) 70 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/lib/cmake/SFML/SFMLSharedTargets-release.cmake: -------------------------------------------------------------------------------- 1 | #---------------------------------------------------------------- 2 | # Generated CMake target import file for configuration "Release". 3 | #---------------------------------------------------------------- 4 | 5 | # Commands may need to know the format version. 6 | set(CMAKE_IMPORT_FILE_VERSION 1) 7 | 8 | # Import target "sfml-system" for configuration "Release" 9 | set_property(TARGET sfml-system APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) 10 | set_target_properties(sfml-system PROPERTIES 11 | IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/sfml-system.lib" 12 | IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/sfml-system-2.dll" 13 | ) 14 | 15 | list(APPEND _IMPORT_CHECK_TARGETS sfml-system ) 16 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-system "${_IMPORT_PREFIX}/lib/sfml-system.lib" "${_IMPORT_PREFIX}/bin/sfml-system-2.dll" ) 17 | 18 | # Import target "sfml-main" for configuration "Release" 19 | set_property(TARGET sfml-main APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) 20 | set_target_properties(sfml-main PROPERTIES 21 | IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX" 22 | IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/sfml-main.lib" 23 | ) 24 | 25 | list(APPEND _IMPORT_CHECK_TARGETS sfml-main ) 26 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-main "${_IMPORT_PREFIX}/lib/sfml-main.lib" ) 27 | 28 | # Import target "sfml-window" for configuration "Release" 29 | set_property(TARGET sfml-window APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) 30 | set_target_properties(sfml-window PROPERTIES 31 | IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/sfml-window.lib" 32 | IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/sfml-window-2.dll" 33 | ) 34 | 35 | list(APPEND _IMPORT_CHECK_TARGETS sfml-window ) 36 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-window "${_IMPORT_PREFIX}/lib/sfml-window.lib" "${_IMPORT_PREFIX}/bin/sfml-window-2.dll" ) 37 | 38 | # Import target "sfml-network" for configuration "Release" 39 | set_property(TARGET sfml-network APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) 40 | set_target_properties(sfml-network PROPERTIES 41 | IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/sfml-network.lib" 42 | IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/sfml-network-2.dll" 43 | ) 44 | 45 | list(APPEND _IMPORT_CHECK_TARGETS sfml-network ) 46 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-network "${_IMPORT_PREFIX}/lib/sfml-network.lib" "${_IMPORT_PREFIX}/bin/sfml-network-2.dll" ) 47 | 48 | # Import target "sfml-graphics" for configuration "Release" 49 | set_property(TARGET sfml-graphics APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) 50 | set_target_properties(sfml-graphics PROPERTIES 51 | IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/sfml-graphics.lib" 52 | IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/sfml-graphics-2.dll" 53 | ) 54 | 55 | list(APPEND _IMPORT_CHECK_TARGETS sfml-graphics ) 56 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-graphics "${_IMPORT_PREFIX}/lib/sfml-graphics.lib" "${_IMPORT_PREFIX}/bin/sfml-graphics-2.dll" ) 57 | 58 | # Import target "sfml-audio" for configuration "Release" 59 | set_property(TARGET sfml-audio APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) 60 | set_target_properties(sfml-audio PROPERTIES 61 | IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/sfml-audio.lib" 62 | IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/sfml-audio-2.dll" 63 | ) 64 | 65 | list(APPEND _IMPORT_CHECK_TARGETS sfml-audio ) 66 | list(APPEND _IMPORT_CHECK_FILES_FOR_sfml-audio "${_IMPORT_PREFIX}/lib/sfml-audio.lib" "${_IMPORT_PREFIX}/bin/sfml-audio-2.dll" ) 67 | 68 | # Commands beyond this point should not need to know the version. 69 | set(CMAKE_IMPORT_FILE_VERSION) 70 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1AlResource-members.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 38 | 42 |
43 |
44 |
45 |
sf::AlResource Member List
46 |
47 |
48 | 49 |

This is the complete list of members for sf::AlResource, including all inherited members.

50 | 51 | 52 | 53 |
AlResource()sf::AlResourceprotected
~AlResource()sf::AlResourceprotected
54 | 55 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1Clipboard-members.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 38 | 42 |
43 |
44 |
45 |
sf::Clipboard Member List
46 |
47 |
48 | 49 |

This is the complete list of members for sf::Clipboard, including all inherited members.

50 | 51 | 52 | 53 |
getString()sf::Clipboardstatic
setString(const String &text)sf::Clipboardstatic
54 | 55 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/include/SFML/Audio/SoundFileFactory.inl: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////// 2 | // 3 | // SFML - Simple and Fast Multimedia Library 4 | // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) 5 | // 6 | // This software is provided 'as-is', without any express or implied warranty. 7 | // In no event will the authors be held liable for any damages arising from the use of this software. 8 | // 9 | // Permission is granted to anyone to use this software for any purpose, 10 | // including commercial applications, and to alter it and redistribute it freely, 11 | // subject to the following restrictions: 12 | // 13 | // 1. The origin of this software must not be misrepresented; 14 | // you must not claim that you wrote the original software. 15 | // If you use this software in a product, an acknowledgment 16 | // in the product documentation would be appreciated but is not required. 17 | // 18 | // 2. Altered source versions must be plainly marked as such, 19 | // and must not be misrepresented as being the original software. 20 | // 21 | // 3. This notice may not be removed or altered from any source distribution. 22 | // 23 | //////////////////////////////////////////////////////////// 24 | 25 | //////////////////////////////////////////////////////////// 26 | // Headers 27 | //////////////////////////////////////////////////////////// 28 | 29 | 30 | namespace sf 31 | { 32 | namespace priv 33 | { 34 | template SoundFileReader* createReader() {return new T;} 35 | template SoundFileWriter* createWriter() {return new T;} 36 | } 37 | 38 | //////////////////////////////////////////////////////////// 39 | template 40 | void SoundFileFactory::registerReader() 41 | { 42 | // Make sure the same class won't be registered twice 43 | unregisterReader(); 44 | 45 | // Create a new factory with the functions provided by the class 46 | ReaderFactory factory; 47 | factory.check = &T::check; 48 | factory.create = &priv::createReader; 49 | 50 | // Add it 51 | s_readers.push_back(factory); 52 | } 53 | 54 | 55 | //////////////////////////////////////////////////////////// 56 | template 57 | void SoundFileFactory::unregisterReader() 58 | { 59 | // Remove the instance(s) of the reader from the array of factories 60 | for (ReaderFactoryArray::iterator it = s_readers.begin(); it != s_readers.end(); ) 61 | { 62 | if (it->create == &priv::createReader) 63 | it = s_readers.erase(it); 64 | else 65 | ++it; 66 | } 67 | } 68 | 69 | //////////////////////////////////////////////////////////// 70 | template 71 | void SoundFileFactory::registerWriter() 72 | { 73 | // Make sure the same class won't be registered twice 74 | unregisterWriter(); 75 | 76 | // Create a new factory with the functions provided by the class 77 | WriterFactory factory; 78 | factory.check = &T::check; 79 | factory.create = &priv::createWriter; 80 | 81 | // Add it 82 | s_writers.push_back(factory); 83 | } 84 | 85 | 86 | //////////////////////////////////////////////////////////// 87 | template 88 | void SoundFileFactory::unregisterWriter() 89 | { 90 | // Remove the instance(s) of the writer from the array of factories 91 | for (WriterFactoryArray::iterator it = s_writers.begin(); it != s_writers.end(); ) 92 | { 93 | if (it->create == &priv::createWriter) 94 | it = s_writers.erase(it); 95 | else 96 | ++it; 97 | } 98 | } 99 | 100 | } // namespace sf 101 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/structsf_1_1Event_1_1SizeEvent-members.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 38 | 42 |
43 |
44 |
45 |
sf::Event::SizeEvent Member List
46 |
47 |
48 | 49 |

This is the complete list of members for sf::Event::SizeEvent, including all inherited members.

50 | 51 | 52 | 53 |
heightsf::Event::SizeEvent
widthsf::Event::SizeEvent
54 | 55 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /Dependencies/SFML-2.5.1/doc/html/classsf_1_1NonCopyable-members.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SFML - Simple and Fast Multimedia Library 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 |
19 | 20 | 30 | 38 | 42 |
43 |
44 |
45 |
sf::NonCopyable Member List
46 |
47 |
48 | 49 |

This is the complete list of members for sf::NonCopyable, including all inherited members.

50 | 51 | 52 | 53 |
NonCopyable()sf::NonCopyableinlineprotected
~NonCopyable()sf::NonCopyableinlineprotected
54 | 55 | 62 | 63 | 64 | --------------------------------------------------------------------------------