From 0c9a16f2ad9b38964bc4c701e2b537c991e34edd Mon Sep 17 00:00:00 2001 From: Sergey Kosarevsky Date: Fri, 8 Nov 2013 12:44:06 +0400 Subject: [PATCH] Updated copyright notices --- AStyle.exe | Bin 0 -> 152576 bytes .../ndkcookbook/app1/App1Activity.java | 33 +++++++++ Chapter1/App2/jni/Wrappers.cpp | 33 +++++++++ .../ndkcookbook/app2/App2Activity.java | 33 +++++++++ Chapter1/App3/Wrapper_Android.h | 33 +++++++++ Chapter1/App3/Wrapper_Callbacks.h | 33 +++++++++ Chapter1/App3/Wrapper_Windows.h | 33 +++++++++ Chapter1/App3/jni/Wrappers.cpp | 33 +++++++++ Chapter1/App3/main.cpp | 33 +++++++++ .../ndkcookbook/app3/App3Activity.java | 33 +++++++++ .../com/packtpub/ndkcookbook/app3/GLView.java | 33 +++++++++ Chapter1/Win_Min1/main.c | 33 +++++++++ Chapter1/Win_Min2/main.c | 33 +++++++++ Chapter2/1_FixedFonts/bmp.h | 33 +++++++++ Chapter2/1_FixedFonts/main.c | 33 +++++++++ Chapter2/2_Box2D/BoxSample.h | 33 +++++++++ Chapter2/2_Box2D/Rendering.cpp | 33 +++++++++ Chapter2/2_Box2D/Rendering.h | 33 +++++++++ Chapter2/2_Box2D/Wrapper_Android.h | 33 +++++++++ Chapter2/2_Box2D/Wrapper_Callbacks.h | 33 +++++++++ Chapter2/2_Box2D/Wrapper_Windows.h | 33 +++++++++ Chapter2/2_Box2D/jni/Wrappers.cpp | 33 +++++++++ Chapter2/2_Box2D/main.cpp | 33 +++++++++ .../ndkcookbook/app4/App4Activity.java | 33 +++++++++ .../com/packtpub/ndkcookbook/app4/GLView.java | 33 +++++++++ Chapter2/Box2D_Sample/BoxSample.h | 33 +++++++++ Chapter2/Box2D_Sample/line.inl | 33 +++++++++ Chapter2/Box2D_Sample/main.cpp | 33 +++++++++ Chapter3/1_CurlDownloader/CurlWrap.cpp | 33 +++++++++ Chapter3/1_CurlDownloader/CurlWrap.h | 33 +++++++++ Chapter3/1_CurlDownloader/main.cpp | 33 +++++++++ Chapter3/2_FlickrAndPicasa/main.cpp | 33 +++++++++ Chapter3/3_BasicThreadingAndLocks/Mutex.h | 34 +++++++++ Chapter3/3_BasicThreadingAndLocks/Thread.cpp | 34 +++++++++ Chapter3/3_BasicThreadingAndLocks/Thread.h | 40 ++++++++-- .../4_ReferenceCounting_ptr/iIntrusivePtr.cpp | 44 ++++++++--- .../4_ReferenceCounting_ptr/iIntrusivePtr.h | 49 ++++++++---- Chapter3/4_ReferenceCounting_ptr/iObject.h | 34 +++++++++ Chapter3/5_AsyncTaskQueues/Thread.cpp | 39 ++++++++-- Chapter3/5_AsyncTaskQueues/Thread.h | 47 ++++++++---- Chapter3/5_AsyncTaskQueues/WorkerThread.cpp | 39 ++++++++-- Chapter3/5_AsyncTaskQueues/WorkerThread.h | 34 +++++++++ Chapter3/5_AsyncTaskQueues/iIntrusivePtr.cpp | 44 ++++++++--- Chapter3/5_AsyncTaskQueues/iIntrusivePtr.h | 49 ++++++++---- Chapter3/5_AsyncTaskQueues/iObject.h | 34 +++++++++ Chapter3/5_AsyncTaskQueues/main.cpp | 33 +++++++++ Chapter3/6_AsyncEvents/Event.h | 34 +++++++++ Chapter3/6_AsyncEvents/Mutex.h | 34 +++++++++ Chapter3/6_AsyncEvents/Thread.cpp | 39 ++++++++-- Chapter3/6_AsyncEvents/Thread.h | 47 ++++++++---- Chapter3/6_AsyncEvents/iIntrusivePtr.cpp | 44 ++++++++--- Chapter3/6_AsyncEvents/iIntrusivePtr.h | 44 ++++++++--- Chapter3/6_AsyncEvents/iObject.h | 34 +++++++++ Chapter3/6_AsyncEvents/main.cpp | 33 +++++++++ Chapter3/7_AsyncNetworkRequests/Atomic.h | 34 +++++++++ Chapter3/7_AsyncNetworkRequests/Blob.h | 34 +++++++++ Chapter3/7_AsyncNetworkRequests/CurlWrap.cpp | 34 +++++++++ Chapter3/7_AsyncNetworkRequests/CurlWrap.h | 34 +++++++++ .../7_AsyncNetworkRequests/DownloadTask.cpp | 34 +++++++++ .../7_AsyncNetworkRequests/DownloadTask.h | 34 +++++++++ .../7_AsyncNetworkRequests/Downloader.cpp | 34 +++++++++ Chapter3/7_AsyncNetworkRequests/Downloader.h | 34 +++++++++ Chapter3/7_AsyncNetworkRequests/Event.cpp | 34 +++++++++ Chapter3/7_AsyncNetworkRequests/Event.h | 34 +++++++++ Chapter3/7_AsyncNetworkRequests/Mutex.h | 34 +++++++++ Chapter3/7_AsyncNetworkRequests/Thread.cpp | 39 ++++++++-- Chapter3/7_AsyncNetworkRequests/Thread.h | 47 ++++++++---- .../7_AsyncNetworkRequests/WorkerThread.cpp | 39 ++++++++-- .../7_AsyncNetworkRequests/WorkerThread.h | 34 +++++++++ .../7_AsyncNetworkRequests/iIntrusivePtr.cpp | 44 ++++++++--- .../7_AsyncNetworkRequests/iIntrusivePtr.h | 44 ++++++++--- Chapter3/7_AsyncNetworkRequests/iObject.h | 34 +++++++++ Chapter3/7_AsyncNetworkRequests/main.cpp | 33 +++++++++ Chapter3/8_MakingWebServer/DetectAdapters.cpp | 34 +++++++++ Chapter3/8_MakingWebServer/DetectAdapters.h | 70 +++++++++++++----- Chapter3/8_MakingWebServer/Rendering.cpp | 33 +++++++++ Chapter3/8_MakingWebServer/Rendering.h | 33 +++++++++ Chapter3/8_MakingWebServer/Sockets.cpp | 34 +++++++++ Chapter3/8_MakingWebServer/Sockets.h | 34 +++++++++ Chapter3/8_MakingWebServer/Thread.cpp | 39 ++++++++-- Chapter3/8_MakingWebServer/Thread.h | 47 ++++++++---- Chapter3/8_MakingWebServer/Wrapper_Android.h | 34 +++++++++ .../8_MakingWebServer/Wrapper_Callbacks.h | 34 +++++++++ .../8_MakingWebServer/Wrapper_Windows.cpp | 34 +++++++++ Chapter3/8_MakingWebServer/Wrapper_Windows.h | 34 +++++++++ Chapter3/8_MakingWebServer/bmp.h | 33 +++++++++ Chapter3/8_MakingWebServer/jni/Wrappers.cpp | 34 +++++++++ Chapter3/8_MakingWebServer/jni/WrappersJNI.c | 34 +++++++++ Chapter3/8_MakingWebServer/main.cpp | 33 +++++++++ .../ndkcookbook/app5/App5Activity.java | 34 +++++++++ .../com/packtpub/ndkcookbook/app5/GLView.java | 34 +++++++++ Chapter4/1_AbstractStreams/Atomic.h | 34 +++++++++ Chapter4/1_AbstractStreams/Blob.h | 34 +++++++++ Chapter4/1_AbstractStreams/Files.h | 34 +++++++++ Chapter4/1_AbstractStreams/Streams.h | 34 +++++++++ Chapter4/1_AbstractStreams/iIntrusivePtr.cpp | 44 ++++++++--- Chapter4/1_AbstractStreams/iIntrusivePtr.h | 44 ++++++++--- Chapter4/1_AbstractStreams/iObject.h | 34 +++++++++ Chapter4/2_MountPoints/Archive.cpp | 37 +++++++-- Chapter4/2_MountPoints/Archive.h | 34 +++++++++ Chapter4/2_MountPoints/Atomic.h | 34 +++++++++ Chapter4/2_MountPoints/Blob.h | 34 +++++++++ Chapter4/2_MountPoints/FileSystem.cpp | 34 +++++++++ Chapter4/2_MountPoints/FileSystem.h | 34 +++++++++ Chapter4/2_MountPoints/Files.h | 34 +++++++++ Chapter4/2_MountPoints/MountPoint.h | 34 +++++++++ Chapter4/2_MountPoints/StrUtils.h | 34 +++++++++ Chapter4/2_MountPoints/Streams.h | 34 +++++++++ Chapter4/2_MountPoints/iIntrusivePtr.cpp | 37 +++++++-- Chapter4/2_MountPoints/iIntrusivePtr.h | 37 +++++++-- Chapter4/2_MountPoints/iObject.h | 34 +++++++++ Chapter4/2_MountPoints/main.cpp | 33 +++++++++ Chapter4/2_MountPoints/zip_callback.cpp | 34 +++++++++ Chapter4/3_AsyncTexture/Archive.cpp | 37 +++++++-- Chapter4/3_AsyncTexture/Archive.h | 34 +++++++++ Chapter4/3_AsyncTexture/Atomic.h | 34 +++++++++ Chapter4/3_AsyncTexture/Bitmap.h | 34 +++++++++ Chapter4/3_AsyncTexture/Blob.h | 34 +++++++++ Chapter4/3_AsyncTexture/Event.cpp | 34 +++++++++ Chapter4/3_AsyncTexture/Event.h | 34 +++++++++ Chapter4/3_AsyncTexture/FileSystem.cpp | 34 +++++++++ Chapter4/3_AsyncTexture/FileSystem.h | 34 +++++++++ Chapter4/3_AsyncTexture/Files.h | 34 +++++++++ Chapter4/3_AsyncTexture/MountPoint.h | 34 +++++++++ Chapter4/3_AsyncTexture/Mutex.h | 34 +++++++++ Chapter4/3_AsyncTexture/Rendering.cpp | 34 +++++++++ Chapter4/3_AsyncTexture/Rendering.h | 34 +++++++++ Chapter4/3_AsyncTexture/StrUtils.h | 34 +++++++++ Chapter4/3_AsyncTexture/Streams.h | 34 +++++++++ Chapter4/3_AsyncTexture/Thread.cpp | 39 ++++++++-- Chapter4/3_AsyncTexture/Thread.h | 47 ++++++++---- Chapter4/3_AsyncTexture/WorkerThread.cpp | 39 ++++++++-- Chapter4/3_AsyncTexture/WorkerThread.h | 34 +++++++++ Chapter4/3_AsyncTexture/Wrapper_Android.h | 34 +++++++++ Chapter4/3_AsyncTexture/Wrapper_Callbacks.h | 34 +++++++++ Chapter4/3_AsyncTexture/Wrapper_Windows.cpp | 34 +++++++++ Chapter4/3_AsyncTexture/Wrapper_Windows.h | 34 +++++++++ Chapter4/3_AsyncTexture/bmp.h | 33 +++++++++ Chapter4/3_AsyncTexture/iIntrusivePtr.cpp | 37 +++++++-- Chapter4/3_AsyncTexture/iIntrusivePtr.h | 37 +++++++-- Chapter4/3_AsyncTexture/iObject.h | 34 +++++++++ Chapter4/3_AsyncTexture/jni/Wrappers.cpp | 34 +++++++++ Chapter4/3_AsyncTexture/jni/WrappersJNI.c | 34 +++++++++ Chapter4/3_AsyncTexture/main.cpp | 33 +++++++++ .../ndkcookbook/app7/App7Activity.java | 34 +++++++++ .../com/packtpub/ndkcookbook/app7/GLView.java | 34 +++++++++ Chapter4/3_AsyncTexture/zip_callback.cpp | 34 +++++++++ .../Wrapper_Android.h | 34 +++++++++ .../Wrapper_Callbacks.h | 34 +++++++++ .../Wrapper_Windows.cpp | 34 +++++++++ .../Wrapper_Windows.h | 34 +++++++++ .../4_StoringApplicationData/jni/Wrappers.cpp | 34 +++++++++ Chapter4/4_StoringApplicationData/main.cpp | 34 +++++++++ .../ndkcookbook/app6/App6Activity.java | 34 +++++++++ Chapter5/0_AL_On_Android/jni/Wrappers.cpp | 34 +++++++++ Chapter5/0_AL_On_Android/jni/WrappersJNI.c | 34 +++++++++ Chapter5/0_AL_On_Android/main.cpp | 33 +++++++++ Chapter5/0_AL_On_Android/src/Rendering.cpp | 34 +++++++++ Chapter5/0_AL_On_Android/src/Rendering.h | 34 +++++++++ Chapter5/0_AL_On_Android/src/StrUtils.h | 34 +++++++++ .../0_AL_On_Android/src/Wrapper_Android.h | 34 +++++++++ .../0_AL_On_Android/src/Wrapper_Callbacks.h | 34 +++++++++ .../0_AL_On_Android/src/Wrapper_Windows.cpp | 34 +++++++++ .../0_AL_On_Android/src/Wrapper_Windows.h | 34 +++++++++ .../ndkcookbook/app8/App8Activity.java | 34 +++++++++ Chapter5/0_AL_On_Android/src/core/Atomic.h | 34 +++++++++ .../src/core/iIntrusivePtr.cpp | 37 +++++++-- .../0_AL_On_Android/src/core/iIntrusivePtr.h | 37 +++++++-- Chapter5/0_AL_On_Android/src/core/iObject.h | 34 +++++++++ Chapter5/0_AL_On_Android/src/fs/Archive.cpp | 37 +++++++-- Chapter5/0_AL_On_Android/src/fs/Archive.h | 34 +++++++++ Chapter5/0_AL_On_Android/src/fs/Blob.h | 34 +++++++++ .../0_AL_On_Android/src/fs/FileSystem.cpp | 34 +++++++++ Chapter5/0_AL_On_Android/src/fs/FileSystem.h | 34 +++++++++ Chapter5/0_AL_On_Android/src/fs/Files.h | 34 +++++++++ Chapter5/0_AL_On_Android/src/fs/MountPoint.h | 34 +++++++++ Chapter5/0_AL_On_Android/src/fs/Streams.h | 34 +++++++++ .../0_AL_On_Android/src/fs/zip_callback.cpp | 34 +++++++++ .../0_AL_On_Android/src/threading/Event.cpp | 34 +++++++++ .../0_AL_On_Android/src/threading/Event.h | 34 +++++++++ .../0_AL_On_Android/src/threading/Mutex.h | 34 +++++++++ .../0_AL_On_Android/src/threading/Thread.cpp | 39 ++++++++-- .../0_AL_On_Android/src/threading/Thread.h | 47 ++++++++---- .../src/threading/WorkerThread.cpp | 39 ++++++++-- .../src/threading/WorkerThread.h | 34 +++++++++ Chapter5/1_AL_Abstraction/jni/Wrappers.cpp | 34 +++++++++ Chapter5/1_AL_Abstraction/jni/WrappersJNI.c | 34 +++++++++ Chapter5/1_AL_Abstraction/main.cpp | 33 +++++++++ Chapter5/1_AL_Abstraction/src/Rendering.cpp | 34 +++++++++ Chapter5/1_AL_Abstraction/src/Rendering.h | 34 +++++++++ Chapter5/1_AL_Abstraction/src/StrUtils.h | 34 +++++++++ .../1_AL_Abstraction/src/Wrapper_Android.h | 34 +++++++++ .../1_AL_Abstraction/src/Wrapper_Callbacks.h | 34 +++++++++ .../1_AL_Abstraction/src/Wrapper_Windows.cpp | 34 +++++++++ .../1_AL_Abstraction/src/Wrapper_Windows.h | 34 +++++++++ .../ndkcookbook/app9/App9Activity.java | 34 +++++++++ Chapter5/1_AL_Abstraction/src/core/Atomic.h | 34 +++++++++ .../src/core/iIntrusivePtr.cpp | 37 +++++++-- .../1_AL_Abstraction/src/core/iIntrusivePtr.h | 37 +++++++-- Chapter5/1_AL_Abstraction/src/core/iObject.h | 34 +++++++++ Chapter5/1_AL_Abstraction/src/fs/Archive.cpp | 37 +++++++-- Chapter5/1_AL_Abstraction/src/fs/Archive.h | 34 +++++++++ Chapter5/1_AL_Abstraction/src/fs/Blob.h | 34 +++++++++ .../1_AL_Abstraction/src/fs/FileSystem.cpp | 34 +++++++++ Chapter5/1_AL_Abstraction/src/fs/FileSystem.h | 34 +++++++++ Chapter5/1_AL_Abstraction/src/fs/Files.h | 34 +++++++++ Chapter5/1_AL_Abstraction/src/fs/MountPoint.h | 34 +++++++++ Chapter5/1_AL_Abstraction/src/fs/Streams.h | 34 +++++++++ .../1_AL_Abstraction/src/fs/zip_callback.cpp | 34 +++++++++ Chapter5/1_AL_Abstraction/src/sound/Audio.h | 34 +++++++++ Chapter5/1_AL_Abstraction/src/sound/WAV.h | 34 +++++++++ .../1_AL_Abstraction/src/threading/Event.cpp | 34 +++++++++ .../1_AL_Abstraction/src/threading/Event.h | 34 +++++++++ .../1_AL_Abstraction/src/threading/Mutex.h | 34 +++++++++ .../1_AL_Abstraction/src/threading/Thread.cpp | 39 ++++++++-- .../1_AL_Abstraction/src/threading/Thread.h | 47 ++++++++---- .../src/threading/WorkerThread.cpp | 39 ++++++++-- .../src/threading/WorkerThread.h | 34 +++++++++ Chapter5/2_AL_Streaming/jni/Wrappers.cpp | 34 +++++++++ Chapter5/2_AL_Streaming/jni/WrappersJNI.c | 34 +++++++++ Chapter5/2_AL_Streaming/main.cpp | 33 +++++++++ Chapter5/2_AL_Streaming/src/Rendering.cpp | 34 +++++++++ Chapter5/2_AL_Streaming/src/Rendering.h | 34 +++++++++ Chapter5/2_AL_Streaming/src/StrUtils.h | 34 +++++++++ Chapter5/2_AL_Streaming/src/Wrapper_Android.h | 34 +++++++++ .../2_AL_Streaming/src/Wrapper_Callbacks.h | 34 +++++++++ .../2_AL_Streaming/src/Wrapper_Windows.cpp | 34 +++++++++ Chapter5/2_AL_Streaming/src/Wrapper_Windows.h | 34 +++++++++ .../ndkcookbook/app10/App10Activity.java | 34 +++++++++ Chapter5/2_AL_Streaming/src/core/Atomic.h | 34 +++++++++ .../2_AL_Streaming/src/core/iIntrusivePtr.cpp | 37 +++++++-- .../2_AL_Streaming/src/core/iIntrusivePtr.h | 37 +++++++-- Chapter5/2_AL_Streaming/src/core/iObject.h | 34 +++++++++ Chapter5/2_AL_Streaming/src/fs/Archive.cpp | 37 +++++++-- Chapter5/2_AL_Streaming/src/fs/Archive.h | 34 +++++++++ Chapter5/2_AL_Streaming/src/fs/Blob.h | 34 +++++++++ Chapter5/2_AL_Streaming/src/fs/FileSystem.cpp | 34 +++++++++ Chapter5/2_AL_Streaming/src/fs/FileSystem.h | 34 +++++++++ Chapter5/2_AL_Streaming/src/fs/Files.h | 34 +++++++++ Chapter5/2_AL_Streaming/src/fs/MountPoint.h | 34 +++++++++ Chapter5/2_AL_Streaming/src/fs/Streams.h | 34 +++++++++ .../2_AL_Streaming/src/fs/zip_callback.cpp | 34 +++++++++ Chapter5/2_AL_Streaming/src/sound/Audio.h | 34 +++++++++ .../src/sound/StreamingProviders.h | 34 +++++++++ .../2_AL_Streaming/src/sound/ToneGenerator.h | 34 +++++++++ .../2_AL_Streaming/src/threading/Event.cpp | 34 +++++++++ Chapter5/2_AL_Streaming/src/threading/Event.h | 34 +++++++++ Chapter5/2_AL_Streaming/src/threading/Mutex.h | 34 +++++++++ .../2_AL_Streaming/src/threading/Thread.cpp | 39 ++++++++-- .../2_AL_Streaming/src/threading/Thread.h | 47 ++++++++---- .../src/threading/WorkerThread.cpp | 39 ++++++++-- .../src/threading/WorkerThread.h | 34 +++++++++ Chapter5/3_AL_PlayingOGG/jni/Wrappers.cpp | 34 +++++++++ Chapter5/3_AL_PlayingOGG/jni/WrappersJNI.c | 34 +++++++++ Chapter5/3_AL_PlayingOGG/main.cpp | 33 +++++++++ Chapter5/3_AL_PlayingOGG/src/Rendering.cpp | 34 +++++++++ Chapter5/3_AL_PlayingOGG/src/Rendering.h | 34 +++++++++ Chapter5/3_AL_PlayingOGG/src/StrUtils.h | 34 +++++++++ .../3_AL_PlayingOGG/src/Wrapper_Android.h | 34 +++++++++ .../3_AL_PlayingOGG/src/Wrapper_Callbacks.h | 34 +++++++++ .../3_AL_PlayingOGG/src/Wrapper_Windows.cpp | 34 +++++++++ .../3_AL_PlayingOGG/src/Wrapper_Windows.h | 34 +++++++++ .../ndkcookbook/app11/App11Activity.java | 34 +++++++++ Chapter5/3_AL_PlayingOGG/src/core/Atomic.h | 34 +++++++++ .../src/core/iIntrusivePtr.cpp | 37 +++++++-- .../3_AL_PlayingOGG/src/core/iIntrusivePtr.h | 37 +++++++-- Chapter5/3_AL_PlayingOGG/src/core/iObject.h | 34 +++++++++ Chapter5/3_AL_PlayingOGG/src/fs/Archive.cpp | 37 +++++++-- Chapter5/3_AL_PlayingOGG/src/fs/Archive.h | 34 +++++++++ Chapter5/3_AL_PlayingOGG/src/fs/Blob.h | 34 +++++++++ .../3_AL_PlayingOGG/src/fs/FileSystem.cpp | 34 +++++++++ Chapter5/3_AL_PlayingOGG/src/fs/FileSystem.h | 34 +++++++++ Chapter5/3_AL_PlayingOGG/src/fs/Files.h | 34 +++++++++ Chapter5/3_AL_PlayingOGG/src/fs/MountPoint.h | 34 +++++++++ Chapter5/3_AL_PlayingOGG/src/fs/Streams.h | 34 +++++++++ .../3_AL_PlayingOGG/src/fs/zip_callback.cpp | 34 +++++++++ Chapter5/3_AL_PlayingOGG/src/sound/Audio.h | 34 +++++++++ .../3_AL_PlayingOGG/src/sound/Decoders.cpp | 34 +++++++++ Chapter5/3_AL_PlayingOGG/src/sound/Decoders.h | 34 +++++++++ .../src/sound/DecodingProvider.h | 34 +++++++++ Chapter5/3_AL_PlayingOGG/src/sound/MOD.h | 34 +++++++++ Chapter5/3_AL_PlayingOGG/src/sound/OGG.h | 34 +++++++++ .../3_AL_PlayingOGG/src/sound/OGG_Callbacks.h | 34 +++++++++ .../src/sound/StreamingProviders.h | 34 +++++++++ .../3_AL_PlayingOGG/src/threading/Event.cpp | 34 +++++++++ .../3_AL_PlayingOGG/src/threading/Event.h | 34 +++++++++ .../3_AL_PlayingOGG/src/threading/Mutex.h | 34 +++++++++ .../3_AL_PlayingOGG/src/threading/Thread.cpp | 39 ++++++++-- .../3_AL_PlayingOGG/src/threading/Thread.h | 47 ++++++++---- .../src/threading/WorkerThread.cpp | 39 ++++++++-- .../src/threading/WorkerThread.h | 34 +++++++++ Chapter6/1_OpenGL3/main.cpp | 33 +++++++++ Chapter6/1_OpenGL3/src/LGL/Platform.h | 34 +++++++++ Chapter6/1_OpenGL3/src/WinViewport.h | 34 +++++++++ Chapter6/2_OpenGLES2/jni/Wrappers.cpp | 34 +++++++++ Chapter6/2_OpenGLES2/jni/WrappersJNI.c | 34 +++++++++ Chapter6/2_OpenGLES2/main.cpp | 33 +++++++++ Chapter6/2_OpenGLES2/src/LGL/Platform.h | 34 +++++++++ Chapter6/2_OpenGLES2/src/WinViewport.h | 34 +++++++++ Chapter6/2_OpenGLES2/src/Wrapper_Android.h | 34 +++++++++ Chapter6/2_OpenGLES2/src/Wrapper_Callbacks.h | 34 +++++++++ Chapter6/2_OpenGLES2/src/Wrapper_Windows.cpp | 34 +++++++++ Chapter6/2_OpenGLES2/src/Wrapper_Windows.h | 34 +++++++++ .../ndkcookbook/app13/App13Activity.java | 34 +++++++++ .../packtpub/ndkcookbook/app13/GLView.java | 34 +++++++++ .../3_ShadersAndVertexArrays/jni/Wrappers.cpp | 34 +++++++++ .../jni/WrappersJNI.c | 34 +++++++++ Chapter6/3_ShadersAndVertexArrays/main.cpp | 33 +++++++++ .../3_ShadersAndVertexArrays/src/Engine.h | 34 +++++++++ .../3_ShadersAndVertexArrays/src/GLSL.cpp | 39 ++++++++-- Chapter6/3_ShadersAndVertexArrays/src/GLSL.h | 39 ++++++++-- .../src/GLVertexArray.cpp | 34 +++++++++ .../src/GLVertexArray.h | 34 +++++++++ .../3_ShadersAndVertexArrays/src/GeomServ.cpp | 39 ++++++++-- .../3_ShadersAndVertexArrays/src/GeomServ.h | 34 +++++++++ .../src/LGL/Platform.h | 34 +++++++++ .../src/VertexAttribs.cpp | 39 ++++++++-- .../src/VertexAttribs.h | 34 +++++++++ .../src/Wrapper_Android.h | 34 +++++++++ .../src/Wrapper_Callbacks.h | 34 +++++++++ .../src/Wrapper_Windows.cpp | 34 +++++++++ .../src/Wrapper_Windows.h | 34 +++++++++ .../ndkcookbook/app14/App14Activity.java | 34 +++++++++ .../packtpub/ndkcookbook/app14/GLView.java | 34 +++++++++ .../src/core/VecMath.cpp | 50 ++++++++----- .../src/core/VecMath.h | 45 +++++++---- .../src/core/iIntrusivePtr.cpp | 37 +++++++-- .../src/core/iIntrusivePtr.h | 37 +++++++-- .../src/core/iObject.h | 34 +++++++++ .../src/fs/Archive.cpp | 37 +++++++-- .../3_ShadersAndVertexArrays/src/fs/Archive.h | 34 +++++++++ .../3_ShadersAndVertexArrays/src/fs/Blob.h | 34 +++++++++ .../src/fs/FileSystem.cpp | 34 +++++++++ .../src/fs/FileSystem.h | 34 +++++++++ .../3_ShadersAndVertexArrays/src/fs/Files.h | 34 +++++++++ .../src/fs/MountPoint.h | 34 +++++++++ .../3_ShadersAndVertexArrays/src/fs/Streams.h | 34 +++++++++ Chapter6/4_Canvas/jni/Wrappers.cpp | 34 +++++++++ Chapter6/4_Canvas/jni/WrappersJNI.c | 34 +++++++++ Chapter6/4_Canvas/main.cpp | 33 +++++++++ Chapter6/4_Canvas/src/Bitmap.cpp | 34 +++++++++ Chapter6/4_Canvas/src/Bitmap.h | 34 +++++++++ Chapter6/4_Canvas/src/Canvas.cpp | 34 +++++++++ Chapter6/4_Canvas/src/Canvas.h | 34 +++++++++ Chapter6/4_Canvas/src/Engine.h | 34 +++++++++ Chapter6/4_Canvas/src/GLSL.cpp | 39 ++++++++-- Chapter6/4_Canvas/src/GLSL.h | 39 ++++++++-- Chapter6/4_Canvas/src/GLTexture.cpp | 39 ++++++++-- Chapter6/4_Canvas/src/GLTexture.h | 39 ++++++++-- Chapter6/4_Canvas/src/GLVertexArray.cpp | 34 +++++++++ Chapter6/4_Canvas/src/GLVertexArray.h | 34 +++++++++ Chapter6/4_Canvas/src/GeomServ.cpp | 39 ++++++++-- Chapter6/4_Canvas/src/GeomServ.h | 34 +++++++++ Chapter6/4_Canvas/src/LGL/Platform.h | 34 +++++++++ Chapter6/4_Canvas/src/VertexAttribs.cpp | 39 ++++++++-- Chapter6/4_Canvas/src/VertexAttribs.h | 34 +++++++++ Chapter6/4_Canvas/src/Wrapper_Android.h | 34 +++++++++ Chapter6/4_Canvas/src/Wrapper_Callbacks.h | 34 +++++++++ Chapter6/4_Canvas/src/Wrapper_Windows.cpp | 34 +++++++++ Chapter6/4_Canvas/src/Wrapper_Windows.h | 34 +++++++++ .../ndkcookbook/app14/App15Activity.java | 34 +++++++++ .../packtpub/ndkcookbook/app14/GLView.java | 34 +++++++++ Chapter6/4_Canvas/src/core/VecMath.cpp | 50 ++++++++----- Chapter6/4_Canvas/src/core/VecMath.h | 40 ++++++++-- Chapter6/4_Canvas/src/core/iIntrusivePtr.cpp | 37 +++++++-- Chapter6/4_Canvas/src/core/iIntrusivePtr.h | 37 +++++++-- Chapter6/4_Canvas/src/core/iObject.h | 34 +++++++++ Chapter6/4_Canvas/src/fs/Archive.cpp | 37 +++++++-- Chapter6/4_Canvas/src/fs/Archive.h | 34 +++++++++ Chapter6/4_Canvas/src/fs/Blob.h | 34 +++++++++ Chapter6/4_Canvas/src/fs/FileSystem.cpp | 34 +++++++++ Chapter6/4_Canvas/src/fs/FileSystem.h | 34 +++++++++ Chapter6/4_Canvas/src/fs/Files.h | 34 +++++++++ Chapter6/4_Canvas/src/fs/MountPoint.h | 34 +++++++++ Chapter6/4_Canvas/src/fs/Streams.h | 34 +++++++++ Chapter7/1_MultitouchInput/jni/Wrappers.cpp | 34 +++++++++ Chapter7/1_MultitouchInput/jni/WrappersJNI.c | 34 +++++++++ Chapter7/1_MultitouchInput/main.cpp | 34 +++++++++ Chapter7/1_MultitouchInput/src/Gestures.cpp | 39 ++++++++-- Chapter7/1_MultitouchInput/src/Gestures.h | 34 +++++++++ Chapter7/1_MultitouchInput/src/Multitouch.cpp | 34 +++++++++ Chapter7/1_MultitouchInput/src/Multitouch.h | 34 +++++++++ Chapter7/1_MultitouchInput/src/Rendering.cpp | 34 +++++++++ Chapter7/1_MultitouchInput/src/Rendering.h | 34 +++++++++ .../1_MultitouchInput/src/Wrapper_Android.h | 34 +++++++++ .../1_MultitouchInput/src/Wrapper_Callbacks.h | 34 +++++++++ .../1_MultitouchInput/src/Wrapper_Windows.cpp | 34 +++++++++ .../1_MultitouchInput/src/Wrapper_Windows.h | 34 +++++++++ .../ndkcookbook/app12/App12Activity.java | 34 +++++++++ .../packtpub/ndkcookbook/app12/GLView.java | 34 +++++++++ .../1_MultitouchInput/src/core/RingBuffer.h | 34 +++++++++ .../1_MultitouchInput/src/core/VecMath.cpp | 50 ++++++++----- Chapter7/1_MultitouchInput/src/core/VecMath.h | 45 +++++++---- Chapter7/1_MultitouchInput/src/core/iObject.h | 34 +++++++++ .../1_MultitouchInput/src/threading/Event.cpp | 34 +++++++++ .../1_MultitouchInput/src/threading/Event.h | 34 +++++++++ .../1_MultitouchInput/src/threading/Mutex.h | 34 +++++++++ .../src/threading/Thread.cpp | 34 +++++++++ .../1_MultitouchInput/src/threading/Thread.h | 47 ++++++++---- Chapter7/2_OnScreenGamepad/jni/Wrappers.cpp | 34 +++++++++ Chapter7/2_OnScreenGamepad/jni/WrappersJNI.c | 34 +++++++++ Chapter7/2_OnScreenGamepad/main.cpp | 33 +++++++++ Chapter7/2_OnScreenGamepad/src/Bitmap.cpp | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/Bitmap.h | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/Engine.cpp | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/Engine.h | 34 +++++++++ .../2_OnScreenGamepad/src/FI_SaveLoadFlags.h | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/FI_Utils.cpp | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/FI_Utils.h | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/Gestures.cpp | 39 ++++++++-- Chapter7/2_OnScreenGamepad/src/Gestures.h | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/Multitouch.cpp | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/Multitouch.h | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/Platform.h | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/Rendering.cpp | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/Rendering.h | 34 +++++++++ .../2_OnScreenGamepad/src/ScreenJoystick.cpp | 34 +++++++++ .../2_OnScreenGamepad/src/ScreenJoystick.h | 34 +++++++++ .../2_OnScreenGamepad/src/Wrapper_Android.h | 34 +++++++++ .../2_OnScreenGamepad/src/Wrapper_Callbacks.h | 34 +++++++++ .../2_OnScreenGamepad/src/Wrapper_Windows.cpp | 34 +++++++++ .../2_OnScreenGamepad/src/Wrapper_Windows.h | 34 +++++++++ .../ndkcookbook/app13/App13Activity.java | 34 +++++++++ .../packtpub/ndkcookbook/app13/GLView.java | 34 +++++++++ .../2_OnScreenGamepad/src/core/RingBuffer.h | 34 +++++++++ .../2_OnScreenGamepad/src/core/VecMath.cpp | 50 ++++++++----- Chapter7/2_OnScreenGamepad/src/core/VecMath.h | 45 +++++++---- .../src/core/iIntrusivePtr.cpp | 37 +++++++-- .../src/core/iIntrusivePtr.h | 37 +++++++-- Chapter7/2_OnScreenGamepad/src/core/iObject.h | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/fs/Archive.cpp | 37 +++++++-- Chapter7/2_OnScreenGamepad/src/fs/Archive.h | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/fs/Blob.h | 34 +++++++++ .../2_OnScreenGamepad/src/fs/FileSystem.cpp | 34 +++++++++ .../2_OnScreenGamepad/src/fs/FileSystem.h | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/fs/Files.h | 34 +++++++++ .../2_OnScreenGamepad/src/fs/MountPoint.h | 34 +++++++++ Chapter7/2_OnScreenGamepad/src/fs/Streams.h | 34 +++++++++ .../2_OnScreenGamepad/src/threading/Event.cpp | 34 +++++++++ .../2_OnScreenGamepad/src/threading/Event.h | 34 +++++++++ .../2_OnScreenGamepad/src/threading/Mutex.h | 34 +++++++++ .../src/threading/Thread.cpp | 34 +++++++++ .../2_OnScreenGamepad/src/threading/Thread.h | 40 ++++++++-- .../src/threading/WorkerThread.cpp | 34 +++++++++ .../src/threading/WorkerThread.h | 34 +++++++++ Chapter7/3_SimpleText/jni/Wrappers.cpp | 34 +++++++++ Chapter7/3_SimpleText/jni/WrappersJNI.c | 34 +++++++++ Chapter7/3_SimpleText/src/Bitmap.h | 34 +++++++++ Chapter7/3_SimpleText/src/Localizer.h | 34 +++++++++ Chapter7/3_SimpleText/src/Rendering.cpp | 34 +++++++++ Chapter7/3_SimpleText/src/Rendering.h | 34 +++++++++ Chapter7/3_SimpleText/src/StrUtils.h | 34 +++++++++ Chapter7/3_SimpleText/src/TextRenderer.cpp | 34 +++++++++ Chapter7/3_SimpleText/src/TextRenderer.h | 34 +++++++++ Chapter7/3_SimpleText/src/Wrapper_Android.h | 34 +++++++++ Chapter7/3_SimpleText/src/Wrapper_Callbacks.h | 34 +++++++++ Chapter7/3_SimpleText/src/Wrapper_Windows.cpp | 34 +++++++++ Chapter7/3_SimpleText/src/Wrapper_Windows.h | 34 +++++++++ Chapter7/3_SimpleText/src/bmp.c | 33 +++++++++ .../ndkcookbook/app14/App14Activity.java | 34 +++++++++ .../packtpub/ndkcookbook/app14/GLView.java | 34 +++++++++ Chapter7/3_SimpleText/src/core/iObject.h | 34 +++++++++ Chapter7/3_SimpleText/src/fs/Archive.cpp | 37 +++++++-- Chapter7/3_SimpleText/src/fs/Archive.h | 34 +++++++++ Chapter7/3_SimpleText/src/fs/Blob.h | 35 +++++++++ Chapter7/3_SimpleText/src/fs/FileSystem.cpp | 34 +++++++++ Chapter7/3_SimpleText/src/fs/FileSystem.h | 34 +++++++++ Chapter7/3_SimpleText/src/fs/Files.h | 65 ++++++++-------- Chapter7/3_SimpleText/src/fs/MountPoint.h | 37 ++++++++- Chapter7/3_SimpleText/src/fs/Streams.h | 36 ++++++++- Chapter7/3_SimpleText/src/threading/Event.cpp | 34 +++++++++ Chapter7/3_SimpleText/src/threading/Event.h | 35 +++++++++ Chapter7/3_SimpleText/src/threading/Mutex.h | 34 +++++++++ .../3_SimpleText/src/threading/Thread.cpp | 34 +++++++++ Chapter7/3_SimpleText/src/threading/Thread.h | 40 ++++++++-- .../src/threading/WorkerThread.cpp | 34 +++++++++ .../3_SimpleText/src/threading/WorkerThread.h | 34 +++++++++ Chapter8/1_Game/jni/Wrappers.cpp | 34 +++++++++ Chapter8/1_Game/jni/WrappersJNI.c | 34 +++++++++ Chapter8/1_Game/main.cpp | 33 +++++++++ Chapter8/1_Game/src/Engine.cpp | 34 +++++++++ Chapter8/1_Game/src/Engine.h | 34 +++++++++ Chapter8/1_Game/src/LGL/GLClasses.cpp | 34 +++++++++ Chapter8/1_Game/src/LGL/GLClasses.h | 34 +++++++++ Chapter8/1_Game/src/LGL/Platform.h | 34 +++++++++ Chapter8/1_Game/src/Wrapper_Android.h | 34 +++++++++ Chapter8/1_Game/src/Wrapper_Callbacks.h | 34 +++++++++ Chapter8/1_Game/src/Wrapper_Windows.cpp | 34 +++++++++ Chapter8/1_Game/src/Wrapper_Windows.h | 34 +++++++++ .../packtpub/ndkcookbook/game1/GLView.java | 34 +++++++++ .../ndkcookbook/game1/Game1Activity.java | 34 +++++++++ Chapter8/1_Game/src/core/RingBuffer.h | 34 +++++++++ Chapter8/1_Game/src/core/VecMath.cpp | 34 +++++++++ Chapter8/1_Game/src/core/VecMath.h | 34 +++++++++ Chapter8/1_Game/src/core/iIntrusivePtr.cpp | 34 +++++++++ Chapter8/1_Game/src/core/iIntrusivePtr.h | 34 +++++++++ Chapter8/1_Game/src/core/iObject.h | 34 +++++++++ Chapter8/1_Game/src/fs/Archive.cpp | 37 +++++++-- Chapter8/1_Game/src/fs/Archive.h | 34 +++++++++ Chapter8/1_Game/src/fs/Blob.h | 34 +++++++++ Chapter8/1_Game/src/fs/FileSystem.cpp | 34 +++++++++ Chapter8/1_Game/src/fs/FileSystem.h | 34 +++++++++ Chapter8/1_Game/src/fs/Files.h | 34 +++++++++ Chapter8/1_Game/src/fs/MountPoint.h | 34 +++++++++ Chapter8/1_Game/src/fs/Streams.h | 34 +++++++++ Chapter8/1_Game/src/game/Field.h | 34 +++++++++ Chapter8/1_Game/src/game/Globals.cpp | 34 +++++++++ Chapter8/1_Game/src/game/Globals.h | 34 +++++++++ Chapter8/1_Game/src/game/Pentomino.cpp | 34 +++++++++ Chapter8/1_Game/src/game/Pentomino.h | 34 +++++++++ Chapter8/1_Game/src/game/Shape.h | 34 +++++++++ Chapter8/1_Game/src/graphics/Bitmap.cpp | 34 +++++++++ Chapter8/1_Game/src/graphics/Bitmap.h | 34 +++++++++ Chapter8/1_Game/src/graphics/Canvas.cpp | 34 +++++++++ Chapter8/1_Game/src/graphics/Canvas.h | 34 +++++++++ .../1_Game/src/graphics/FI_SaveLoadFlags.h | 34 +++++++++ Chapter8/1_Game/src/graphics/FI_Utils.cpp | 34 +++++++++ Chapter8/1_Game/src/graphics/FI_Utils.h | 34 +++++++++ Chapter8/1_Game/src/graphics/Geometry.cpp | 34 +++++++++ Chapter8/1_Game/src/graphics/Geometry.h | 34 +++++++++ Chapter8/1_Game/src/graphics/Gestures.cpp | 39 ++++++++-- Chapter8/1_Game/src/graphics/Gestures.h | 34 +++++++++ Chapter8/1_Game/src/graphics/Multitouch.cpp | 34 +++++++++ Chapter8/1_Game/src/graphics/Multitouch.h | 34 +++++++++ Chapter8/1_Game/src/graphics/TextRenderer.cpp | 34 +++++++++ Chapter8/1_Game/src/graphics/TextRenderer.h | 34 +++++++++ Chapter8/1_Game/src/graphics/ft_load.cpp | 34 +++++++++ Chapter8/1_Game/src/graphics/ft_load.h | 34 +++++++++ Chapter8/1_Game/src/sound/Audio.cpp | 34 +++++++++ Chapter8/1_Game/src/sound/Audio.h | 34 +++++++++ Chapter8/1_Game/src/sound/Decoders.cpp | 34 +++++++++ Chapter8/1_Game/src/sound/Decoders.h | 34 +++++++++ Chapter8/1_Game/src/sound/DecodingProvider.h | 34 +++++++++ Chapter8/1_Game/src/sound/MOD.h | 34 +++++++++ Chapter8/1_Game/src/sound/OGG.h | 34 +++++++++ Chapter8/1_Game/src/threading/Event.cpp | 34 +++++++++ Chapter8/1_Game/src/threading/Event.h | 34 +++++++++ Chapter8/1_Game/src/threading/Mutex.h | 34 +++++++++ Chapter8/1_Game/src/threading/Thread.cpp | 39 ++++++++-- Chapter8/1_Game/src/threading/Thread.h | 47 ++++++++---- .../1_Game/src/threading/WorkerThread.cpp | 39 ++++++++-- Chapter8/1_Game/src/threading/WorkerThread.h | 34 +++++++++ Chapter9/1_Carousel/jni/Wrappers.cpp | 34 +++++++++ Chapter9/1_Carousel/jni/WrappersJNI.c | 34 +++++++++ Chapter9/1_Carousel/main.cpp | 33 +++++++++ Chapter9/1_Carousel/src/Engine.cpp | 34 +++++++++ Chapter9/1_Carousel/src/Engine.h | 34 +++++++++ Chapter9/1_Carousel/src/Gestures.cpp | 39 ++++++++-- Chapter9/1_Carousel/src/Gestures.h | 34 +++++++++ Chapter9/1_Carousel/src/Multitouch.cpp | 34 +++++++++ Chapter9/1_Carousel/src/Multitouch.h | 34 +++++++++ Chapter9/1_Carousel/src/Platform.h | 34 +++++++++ Chapter9/1_Carousel/src/Rendering.cpp | 34 +++++++++ Chapter9/1_Carousel/src/Rendering.h | 34 +++++++++ Chapter9/1_Carousel/src/VecMath.cpp | 50 ++++++++----- Chapter9/1_Carousel/src/VecMath.h | 45 +++++++---- Chapter9/1_Carousel/src/Wrapper_Android.h | 34 +++++++++ Chapter9/1_Carousel/src/Wrapper_Callbacks.h | 34 +++++++++ Chapter9/1_Carousel/src/Wrapper_Windows.cpp | 34 +++++++++ Chapter9/1_Carousel/src/Wrapper_Windows.h | 34 +++++++++ Chapter9/1_Carousel/src/carousel/Curve.h | 34 +++++++++ .../1_Carousel/src/carousel/FlowFlinger.cpp | 34 +++++++++ .../1_Carousel/src/carousel/FlowFlinger.h | 34 +++++++++ Chapter9/1_Carousel/src/carousel/FlowUI.h | 34 +++++++++ .../ndkcookbook/app13/App13Activity.java | 34 +++++++++ .../packtpub/ndkcookbook/app13/GLView.java | 34 +++++++++ Chapter9/1_Carousel/src/core/RingBuffer.h | 34 +++++++++ Chapter9/1_Carousel/src/core/iObject.h | 34 +++++++++ Chapter9/1_Carousel/src/fs/Archive.cpp | 37 +++++++-- Chapter9/1_Carousel/src/fs/Archive.h | 34 +++++++++ Chapter9/1_Carousel/src/fs/Blob.h | 34 +++++++++ Chapter9/1_Carousel/src/fs/FileSystem.cpp | 34 +++++++++ Chapter9/1_Carousel/src/fs/FileSystem.h | 34 +++++++++ Chapter9/1_Carousel/src/fs/Files.h | 34 +++++++++ Chapter9/1_Carousel/src/fs/MountPoint.h | 34 +++++++++ Chapter9/1_Carousel/src/fs/Streams.h | 34 +++++++++ Chapter9/1_Carousel/src/threading/Event.cpp | 34 +++++++++ Chapter9/1_Carousel/src/threading/Event.h | 34 +++++++++ Chapter9/1_Carousel/src/threading/Mutex.h | 34 +++++++++ Chapter9/1_Carousel/src/threading/Thread.cpp | 39 ++++++++-- Chapter9/1_Carousel/src/threading/Thread.h | 47 ++++++++---- .../1_Carousel/src/threading/WorkerThread.cpp | 39 ++++++++-- .../1_Carousel/src/threading/WorkerThread.h | 34 +++++++++ Chapter9/2_PuzzleProto/jni/Wrappers.cpp | 34 +++++++++ Chapter9/2_PuzzleProto/jni/WrappersJNI.c | 34 +++++++++ Chapter9/2_PuzzleProto/main.cpp | 33 +++++++++ .../packtpub/ndkcookbook/game1/GLView.java | 34 +++++++++ .../ndkcookbook/game1/Game1Activity.java | 34 +++++++++ Chapter9/2_PuzzleProto/src/game/Game.cpp | 34 +++++++++ Chapter9/2_PuzzleProto/src/game/Game.h | 34 +++++++++ Chapter9/2_PuzzleProto/src/game/Tile.h | 34 +++++++++ Chapter9/3_UIPrototype/jni/Wrappers.cpp | 34 +++++++++ Chapter9/3_UIPrototype/jni/WrappersJNI.c | 34 +++++++++ Chapter9/3_UIPrototype/main.cpp | 33 +++++++++ .../packtpub/ndkcookbook/game1/GLView.java | 34 +++++++++ .../ndkcookbook/game1/Game1Activity.java | 34 +++++++++ Chapter9/3_UIPrototype/src/game/Game.cpp | 34 +++++++++ Chapter9/3_UIPrototype/src/game/Game.h | 34 +++++++++ Chapter9/3_UIPrototype/src/game/Page_About.h | 34 +++++++++ Chapter9/3_UIPrototype/src/game/Page_Game.h | 34 +++++++++ .../3_UIPrototype/src/game/Page_MainMenu.h | 34 +++++++++ Chapter9/3_UIPrototype/src/game/Tile.h | 34 +++++++++ .../jni/Wrappers.cpp | 34 +++++++++ .../jni/WrappersJNI.c | 34 +++++++++ .../4_CarouselWithOpenGLAndPicasa/main.cpp | 34 +++++++++ .../src/carousel/Curve.h | 34 +++++++++ .../src/carousel/FlowFlinger.cpp | 34 +++++++++ .../src/carousel/FlowFlinger.h | 34 +++++++++ .../src/carousel/FlowUI.h | 34 +++++++++ .../src/carousel/GeomUtil.h | 34 +++++++++ .../packtpub/ndkcookbook/app13/GLView.java | 34 +++++++++ .../ndkcookbook/app13/Game1Activity.java | 34 +++++++++ .../src/game/GalleryTable.cpp | 34 +++++++++ .../src/game/GalleryTable.h | 34 +++++++++ .../src/game/Globals.cpp | 34 +++++++++ .../src/game/Globals.h | 34 +++++++++ .../src/game/ImageLoadTask.h | 34 +++++++++ .../src/game/ImageTypes.cpp | 34 +++++++++ .../src/game/ImageTypes.h | 34 +++++++++ Chapter9/5_Puzzle/jni/Wrappers.cpp | 34 +++++++++ Chapter9/5_Puzzle/jni/WrappersJNI.c | 34 +++++++++ Chapter9/5_Puzzle/main.cpp | 33 +++++++++ Chapter9/5_Puzzle/src/carousel/Curve.h | 34 +++++++++ .../5_Puzzle/src/carousel/FlowFlinger.cpp | 34 +++++++++ Chapter9/5_Puzzle/src/carousel/FlowFlinger.h | 34 +++++++++ Chapter9/5_Puzzle/src/carousel/FlowUI.h | 34 +++++++++ Chapter9/5_Puzzle/src/carousel/GeomUtil.h | 34 +++++++++ .../packtpub/ndkcookbook/app13/GLView.java | 34 +++++++++ .../ndkcookbook/app13/Game1Activity.java | 34 +++++++++ Chapter9/5_Puzzle/src/game/GalleryTable.cpp | 34 +++++++++ Chapter9/5_Puzzle/src/game/GalleryTable.h | 34 +++++++++ Chapter9/5_Puzzle/src/game/Game.cpp | 34 +++++++++ Chapter9/5_Puzzle/src/game/Game.h | 34 +++++++++ Chapter9/5_Puzzle/src/game/Globals.cpp | 34 +++++++++ Chapter9/5_Puzzle/src/game/Globals.h | 34 +++++++++ Chapter9/5_Puzzle/src/game/ImageLoadTask.h | 34 +++++++++ Chapter9/5_Puzzle/src/game/ImageTypes.cpp | 34 +++++++++ Chapter9/5_Puzzle/src/game/ImageTypes.h | 34 +++++++++ Chapter9/5_Puzzle/src/game/Page_About.h | 34 +++++++++ Chapter9/5_Puzzle/src/game/Page_Gallery.h | 34 +++++++++ Chapter9/5_Puzzle/src/game/Page_Game.h | 34 +++++++++ Chapter9/5_Puzzle/src/game/Page_MainMenu.cpp | 34 +++++++++ Chapter9/5_Puzzle/src/game/Page_MainMenu.h | 34 +++++++++ Chapter9/5_Puzzle/src/game/Tile.h | 34 +++++++++ Chapter9/Engine/Engine.cpp | 34 +++++++++ Chapter9/Engine/Engine.h | 34 +++++++++ Chapter9/Engine/LGL/GLClasses.cpp | 34 +++++++++ Chapter9/Engine/LGL/GLClasses.h | 34 +++++++++ Chapter9/Engine/LGL/Platform.h | 34 +++++++++ Chapter9/Engine/Wrapper_Android.h | 34 +++++++++ Chapter9/Engine/Wrapper_Callbacks.h | 34 +++++++++ Chapter9/Engine/Wrapper_Windows.cpp | 34 +++++++++ Chapter9/Engine/Wrapper_Windows.h | 34 +++++++++ Chapter9/Engine/core/RingBuffer.h | 34 +++++++++ Chapter9/Engine/core/VecMath.cpp | 34 +++++++++ Chapter9/Engine/core/VecMath.h | 34 +++++++++ Chapter9/Engine/core/iIntrusivePtr.cpp | 34 +++++++++ Chapter9/Engine/core/iIntrusivePtr.h | 34 +++++++++ Chapter9/Engine/core/iObject.h | 34 +++++++++ Chapter9/Engine/fs/Archive.cpp | 37 +++++++-- Chapter9/Engine/fs/Archive.h | 34 +++++++++ Chapter9/Engine/fs/Blob.h | 34 +++++++++ Chapter9/Engine/fs/FileSystem.cpp | 34 +++++++++ Chapter9/Engine/fs/FileSystem.h | 34 +++++++++ Chapter9/Engine/fs/Files.h | 34 +++++++++ Chapter9/Engine/fs/MountPoint.h | 34 +++++++++ Chapter9/Engine/fs/Streams.h | 34 +++++++++ Chapter9/Engine/graphics/Bitmap.cpp | 34 +++++++++ Chapter9/Engine/graphics/Bitmap.h | 34 +++++++++ Chapter9/Engine/graphics/Canvas.cpp | 34 +++++++++ Chapter9/Engine/graphics/Canvas.h | 34 +++++++++ Chapter9/Engine/graphics/FI_SaveLoadFlags.h | 34 +++++++++ Chapter9/Engine/graphics/FI_Utils.cpp | 34 +++++++++ Chapter9/Engine/graphics/FI_Utils.h | 34 +++++++++ Chapter9/Engine/graphics/GUI.cpp | 34 +++++++++ Chapter9/Engine/graphics/GUI.h | 34 +++++++++ Chapter9/Engine/graphics/Geometry.cpp | 34 +++++++++ Chapter9/Engine/graphics/Geometry.h | 34 +++++++++ Chapter9/Engine/graphics/Gestures.cpp | 39 ++++++++-- Chapter9/Engine/graphics/Gestures.h | 34 +++++++++ Chapter9/Engine/graphics/Multitouch.cpp | 34 +++++++++ Chapter9/Engine/graphics/Multitouch.h | 34 +++++++++ Chapter9/Engine/graphics/TextRenderer.cpp | 34 +++++++++ Chapter9/Engine/graphics/TextRenderer.h | 34 +++++++++ Chapter9/Engine/network/CurlWrap.cpp | 34 +++++++++ Chapter9/Engine/network/CurlWrap.h | 34 +++++++++ Chapter9/Engine/network/DownloadTask.cpp | 34 +++++++++ Chapter9/Engine/network/DownloadTask.h | 34 +++++++++ Chapter9/Engine/network/Downloader.cpp | 34 +++++++++ Chapter9/Engine/network/Downloader.h | 34 +++++++++ Chapter9/Engine/network/Picasa.cpp | 34 +++++++++ Chapter9/Engine/network/Picasa.h | 34 +++++++++ Chapter9/Engine/sound/Audio.cpp | 34 +++++++++ Chapter9/Engine/sound/Audio.h | 34 +++++++++ Chapter9/Engine/sound/Decoders.cpp | 34 +++++++++ Chapter9/Engine/sound/Decoders.h | 34 +++++++++ Chapter9/Engine/sound/DecodingProvider.h | 34 +++++++++ Chapter9/Engine/sound/MOD.h | 34 +++++++++ Chapter9/Engine/sound/OGG.h | 34 +++++++++ Chapter9/Engine/threading/Event.cpp | 34 +++++++++ Chapter9/Engine/threading/Event.h | 34 +++++++++ Chapter9/Engine/threading/Mutex.h | 34 +++++++++ Chapter9/Engine/threading/Thread.cpp | 39 ++++++++-- Chapter9/Engine/threading/Thread.h | 47 ++++++++---- Chapter9/Engine/threading/WorkerThread.cpp | 39 ++++++++-- Chapter9/Engine/threading/WorkerThread.h | 34 +++++++++ LICENSE | 5 ++ stylize.py | 15 ++++ 708 files changed, 23794 insertions(+), 919 deletions(-) create mode 100644 AStyle.exe create mode 100644 stylize.py diff --git a/AStyle.exe b/AStyle.exe new file mode 100644 index 0000000000000000000000000000000000000000..e768eeff7b22f7207a514cc3ff8112ff1fba0fa2 GIT binary patch literal 152576 zcmeFYX;f27)HaxjBtS?4L*TS zR|tZFKp@z55eh+|#%=spX#ds!&(*?qGg`SB4XP7;qS6Rj{qIuQ>Q+{@ZCAD) zE&KT&rk3HhvDweMtoA?Nc-icK{`9i?|8Q^F{cZG$IuQA9jQ_hkrrU!+ZeS?L>Qt2H z|K`krpkQ&Z7zjj%fI!%7Z!HW&Ma>li2&97t8K?^{69ne=l_3Qi6KBv|1UcE()|qnqi>Jxf8W=C zll?zpWPw0)+q~WXx&F}hyi@8<`Es0@=(JCT9zlsK75* z-~Qe>^iv2xC}6e}=L?L}2}?FkTH^j>* z)ma#+u-cen2rbtry%9V=y(Q$>diw&g>L{*|MdxJTu!+aui;%)EILjh# zTaf82vKGroo23`P(*D;G#8RiQlyzD1YOEcYZ99;K)ntjQvf!@;Zr|@axW(op^AZ(Q95{ay$2pI<1d0BFf=?ecF)?z%>-5i z?@~uW{-v&xT;msiI6s#R^5Mj`5Gp@S9e)ohe{WahY|vB>M_qS90+7Me_qMDFUPoj5 zxGNbjxYRtP;^ectU?~TpkEts}tfyJD7%L}3?sxP5VSP@PUu*7(H zo*xW`)KZ6jzN!0xXRmIiMKdf!8I${W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thz}PLI zky@o}7TvP!;yer!i_X}UYV*D1Zx=hF zT1upZ9@?-S#*}fhQoVi!WTBI}5MZdbhPMV-mc(BBl #include #include diff --git a/Chapter1/App2/src/com/packtpub/ndkcookbook/app2/App2Activity.java b/Chapter1/App2/src/com/packtpub/ndkcookbook/app2/App2Activity.java index deb581b..9fe5861 100644 --- a/Chapter1/App2/src/com/packtpub/ndkcookbook/app2/App2Activity.java +++ b/Chapter1/App2/src/com/packtpub/ndkcookbook/app2/App2Activity.java @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app2; import android.app.Activity; diff --git a/Chapter1/App3/Wrapper_Android.h b/Chapter1/App3/Wrapper_Android.h index 321aa86..f390c0d 100644 --- a/Chapter1/App3/Wrapper_Android.h +++ b/Chapter1/App3/Wrapper_Android.h @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter1/App3/Wrapper_Callbacks.h b/Chapter1/App3/Wrapper_Callbacks.h index 8fa0e4b..e204605 100644 --- a/Chapter1/App3/Wrapper_Callbacks.h +++ b/Chapter1/App3/Wrapper_Callbacks.h @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter1/App3/Wrapper_Windows.h b/Chapter1/App3/Wrapper_Windows.h index d89cc8a..ebf1bcf 100644 --- a/Chapter1/App3/Wrapper_Windows.h +++ b/Chapter1/App3/Wrapper_Windows.h @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter1/App3/jni/Wrappers.cpp b/Chapter1/App3/jni/Wrappers.cpp index 594cd09..5f2ee00 100644 --- a/Chapter1/App3/jni/Wrappers.cpp +++ b/Chapter1/App3/jni/Wrappers.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter1/App3/main.cpp b/Chapter1/App3/main.cpp index 4ff4138..cea7865 100644 --- a/Chapter1/App3/main.cpp +++ b/Chapter1/App3/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include "Wrapper_Callbacks.h" diff --git a/Chapter1/App3/src/com/packtpub/ndkcookbook/app3/App3Activity.java b/Chapter1/App3/src/com/packtpub/ndkcookbook/app3/App3Activity.java index fc6050b..7ce14cc 100644 --- a/Chapter1/App3/src/com/packtpub/ndkcookbook/app3/App3Activity.java +++ b/Chapter1/App3/src/com/packtpub/ndkcookbook/app3/App3Activity.java @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app3; import android.app.Activity; diff --git a/Chapter1/App3/src/com/packtpub/ndkcookbook/app3/GLView.java b/Chapter1/App3/src/com/packtpub/ndkcookbook/app3/GLView.java index 120d233..8de28f8 100644 --- a/Chapter1/App3/src/com/packtpub/ndkcookbook/app3/GLView.java +++ b/Chapter1/App3/src/com/packtpub/ndkcookbook/app3/GLView.java @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app3; import android.util.Log; diff --git a/Chapter1/Win_Min1/main.c b/Chapter1/Win_Min1/main.c index 8975e44..d74052d 100644 --- a/Chapter1/Win_Min1/main.c +++ b/Chapter1/Win_Min1/main.c @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include LRESULT CALLBACK MyFunc( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ) diff --git a/Chapter1/Win_Min2/main.c b/Chapter1/Win_Min2/main.c index bcb8e09..09547e3 100644 --- a/Chapter1/Win_Min2/main.c +++ b/Chapter1/Win_Min2/main.c @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include HDC hMemDC; diff --git a/Chapter2/1_FixedFonts/bmp.h b/Chapter2/1_FixedFonts/bmp.h index f80c5a2..d260585 100644 --- a/Chapter2/1_FixedFonts/bmp.h +++ b/Chapter2/1_FixedFonts/bmp.h @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter2/1_FixedFonts/main.c b/Chapter2/1_FixedFonts/main.c index 4860e03..5381375 100644 --- a/Chapter2/1_FixedFonts/main.c +++ b/Chapter2/1_FixedFonts/main.c @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "bmp.h" #include #include diff --git a/Chapter2/2_Box2D/BoxSample.h b/Chapter2/2_Box2D/BoxSample.h index e4f5553..44400e3 100644 --- a/Chapter2/2_Box2D/BoxSample.h +++ b/Chapter2/2_Box2D/BoxSample.h @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + Body* CreateBody( const Vec2& Size, float Mass, float Friction ) { Body* B = new Body(); diff --git a/Chapter2/2_Box2D/Rendering.cpp b/Chapter2/2_Box2D/Rendering.cpp index 5dcc079..becf359 100644 --- a/Chapter2/2_Box2D/Rendering.cpp +++ b/Chapter2/2_Box2D/Rendering.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Rendering.h" const int Width = ImageWidth; diff --git a/Chapter2/2_Box2D/Rendering.h b/Chapter2/2_Box2D/Rendering.h index c256ad3..8d37905 100644 --- a/Chapter2/2_Box2D/Rendering.h +++ b/Chapter2/2_Box2D/Rendering.h @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Callbacks.h" extern unsigned char* g_FrameBuffer; diff --git a/Chapter2/2_Box2D/Wrapper_Android.h b/Chapter2/2_Box2D/Wrapper_Android.h index 321aa86..f390c0d 100644 --- a/Chapter2/2_Box2D/Wrapper_Android.h +++ b/Chapter2/2_Box2D/Wrapper_Android.h @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter2/2_Box2D/Wrapper_Callbacks.h b/Chapter2/2_Box2D/Wrapper_Callbacks.h index 9878a74..a34dba2 100644 --- a/Chapter2/2_Box2D/Wrapper_Callbacks.h +++ b/Chapter2/2_Box2D/Wrapper_Callbacks.h @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter2/2_Box2D/Wrapper_Windows.h b/Chapter2/2_Box2D/Wrapper_Windows.h index 772b192..a6f98c5 100644 --- a/Chapter2/2_Box2D/Wrapper_Windows.h +++ b/Chapter2/2_Box2D/Wrapper_Windows.h @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter2/2_Box2D/jni/Wrappers.cpp b/Chapter2/2_Box2D/jni/Wrappers.cpp index e149e2e..da31fa0 100644 --- a/Chapter2/2_Box2D/jni/Wrappers.cpp +++ b/Chapter2/2_Box2D/jni/Wrappers.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter2/2_Box2D/main.cpp b/Chapter2/2_Box2D/main.cpp index fe4a88e..68dc415 100644 --- a/Chapter2/2_Box2D/main.cpp +++ b/Chapter2/2_Box2D/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include "Wrapper_Callbacks.h" diff --git a/Chapter2/2_Box2D/src/com/packtpub/ndkcookbook/app4/App4Activity.java b/Chapter2/2_Box2D/src/com/packtpub/ndkcookbook/app4/App4Activity.java index 0ea94af..76fbc08 100644 --- a/Chapter2/2_Box2D/src/com/packtpub/ndkcookbook/app4/App4Activity.java +++ b/Chapter2/2_Box2D/src/com/packtpub/ndkcookbook/app4/App4Activity.java @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app4; import android.app.Activity; diff --git a/Chapter2/2_Box2D/src/com/packtpub/ndkcookbook/app4/GLView.java b/Chapter2/2_Box2D/src/com/packtpub/ndkcookbook/app4/GLView.java index 9999569..c2af76a 100644 --- a/Chapter2/2_Box2D/src/com/packtpub/ndkcookbook/app4/GLView.java +++ b/Chapter2/2_Box2D/src/com/packtpub/ndkcookbook/app4/GLView.java @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app4; import android.util.Log; diff --git a/Chapter2/Box2D_Sample/BoxSample.h b/Chapter2/Box2D_Sample/BoxSample.h index ba92f7d..4f7a4a8 100644 --- a/Chapter2/Box2D_Sample/BoxSample.h +++ b/Chapter2/Box2D_Sample/BoxSample.h @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + Body* CreateBody( const Vec2& Size, float Mass, float Friction ) { Body* B = new Body(); diff --git a/Chapter2/Box2D_Sample/line.inl b/Chapter2/Box2D_Sample/line.inl index 130372c..146d23e 100644 --- a/Chapter2/Box2D_Sample/line.inl +++ b/Chapter2/Box2D_Sample/line.inl @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + void set_pixel(unsigned char* fb, int w, int h, int x, int y, int color) { if(x < 0 || y < 0 || x > w - 1 || y > h - 1) { return; } diff --git a/Chapter2/Box2D_Sample/main.cpp b/Chapter2/Box2D_Sample/main.cpp index 3a12ea3..974f46c 100644 --- a/Chapter2/Box2D_Sample/main.cpp +++ b/Chapter2/Box2D_Sample/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter3/1_CurlDownloader/CurlWrap.cpp b/Chapter3/1_CurlDownloader/CurlWrap.cpp index 84931d8..a0cdc6f 100644 --- a/Chapter3/1_CurlDownloader/CurlWrap.cpp +++ b/Chapter3/1_CurlDownloader/CurlWrap.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "CurlWrap.h" #ifdef _WIN32 diff --git a/Chapter3/1_CurlDownloader/CurlWrap.h b/Chapter3/1_CurlDownloader/CurlWrap.h index 480e4e9..5ca8165 100644 --- a/Chapter3/1_CurlDownloader/CurlWrap.h +++ b/Chapter3/1_CurlDownloader/CurlWrap.h @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __CurlWrap__h__included__ #define __CurlWrap__h__included__ diff --git a/Chapter3/1_CurlDownloader/main.cpp b/Chapter3/1_CurlDownloader/main.cpp index 467a060..4c53287 100644 --- a/Chapter3/1_CurlDownloader/main.cpp +++ b/Chapter3/1_CurlDownloader/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter3/2_FlickrAndPicasa/main.cpp b/Chapter3/2_FlickrAndPicasa/main.cpp index b584646..7d2a21c 100644 --- a/Chapter3/2_FlickrAndPicasa/main.cpp +++ b/Chapter3/2_FlickrAndPicasa/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #if _MSC_VER >= 1400 # define Lvsnprintf _vsnprintf_s # define Lsnprintf _snprintf_s diff --git a/Chapter3/3_BasicThreadingAndLocks/Mutex.h b/Chapter3/3_BasicThreadingAndLocks/Mutex.h index 259e6ff..f4f49bf 100644 --- a/Chapter3/3_BasicThreadingAndLocks/Mutex.h +++ b/Chapter3/3_BasicThreadingAndLocks/Mutex.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Mutex__h__included__ #define __Mutex__h__included__ diff --git a/Chapter3/3_BasicThreadingAndLocks/Thread.cpp b/Chapter3/3_BasicThreadingAndLocks/Thread.cpp index 27d9cd6..2c1bde3 100644 --- a/Chapter3/3_BasicThreadingAndLocks/Thread.cpp +++ b/Chapter3/3_BasicThreadingAndLocks/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 diff --git a/Chapter3/3_BasicThreadingAndLocks/Thread.h b/Chapter3/3_BasicThreadingAndLocks/Thread.h index 6ea315e..1c0a43e 100644 --- a/Chapter3/3_BasicThreadingAndLocks/Thread.h +++ b/Chapter3/3_BasicThreadingAndLocks/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ diff --git a/Chapter3/4_ReferenceCounting_ptr/iIntrusivePtr.cpp b/Chapter3/4_ReferenceCounting_ptr/iIntrusivePtr.cpp index af9d1bc..968b860 100644 --- a/Chapter3/4_ReferenceCounting_ptr/iIntrusivePtr.cpp +++ b/Chapter3/4_ReferenceCounting_ptr/iIntrusivePtr.cpp @@ -1,10 +1,35 @@ -/** - * \file iIntrusivePtr.cpp - * \brief Intrusive smart pointer - * \version 0.6.14 - * \date 26/08/2012 - * \author Sergey Kosarevsky, 2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" @@ -21,8 +46,3 @@ namespace LPtr if ( Obj ) { reinterpret_cast( Obj )->DecRefCount(); } } }; - -/* - * 26/08/2012 - It's here -*/ diff --git a/Chapter3/4_ReferenceCounting_ptr/iIntrusivePtr.h b/Chapter3/4_ReferenceCounting_ptr/iIntrusivePtr.h index 22da71c..dd768a9 100644 --- a/Chapter3/4_ReferenceCounting_ptr/iIntrusivePtr.h +++ b/Chapter3/4_ReferenceCounting_ptr/iIntrusivePtr.h @@ -1,14 +1,38 @@ -/** - * \file iIntrusivePtr.h - * \brief Intrusive smart pointer - * \version 0.5.60 - * \date 17/12/2005 - * \author Sergey Kosarevsky, 2005 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _iIntrusivePtr_ -#define _iIntrusivePtr_ +#pragma once #ifndef NULL # define NULL 0 @@ -112,10 +136,3 @@ template class clPtr private: T* FObject; }; - -#endif - -/* - * 08/12/2005 - It's here -*/ diff --git a/Chapter3/4_ReferenceCounting_ptr/iObject.h b/Chapter3/4_ReferenceCounting_ptr/iObject.h index 397f37f..eca8ab2 100644 --- a/Chapter3/4_ReferenceCounting_ptr/iObject.h +++ b/Chapter3/4_ReferenceCounting_ptr/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #if defined(_WIN32) diff --git a/Chapter3/5_AsyncTaskQueues/Thread.cpp b/Chapter3/5_AsyncTaskQueues/Thread.cpp index 27d9cd6..573f2a5 100644 --- a/Chapter3/5_AsyncTaskQueues/Thread.cpp +++ b/Chapter3/5_AsyncTaskQueues/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 @@ -103,8 +137,3 @@ native_thread_handle_t iThread::GetCurrentThread() return pthread_self(); #endif } - -/* - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter3/5_AsyncTaskQueues/Thread.h b/Chapter3/5_AsyncTaskQueues/Thread.h index 6ea315e..e69b9aa 100644 --- a/Chapter3/5_AsyncTaskQueues/Thread.h +++ b/Chapter3/5_AsyncTaskQueues/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ @@ -72,10 +96,3 @@ class iThread }; #endif - -/* - * 16/06/2010 - Linux port - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter3/5_AsyncTaskQueues/WorkerThread.cpp b/Chapter3/5_AsyncTaskQueues/WorkerThread.cpp index 95a44a3..8ec8800 100644 --- a/Chapter3/5_AsyncTaskQueues/WorkerThread.cpp +++ b/Chapter3/5_AsyncTaskQueues/WorkerThread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "WorkerThread.h" #include @@ -111,8 +145,3 @@ void WorkerThread::Run() FCurrentTask = NULL; } } - -/* - * 05/12/2012 - It's here -*/ diff --git a/Chapter3/5_AsyncTaskQueues/WorkerThread.h b/Chapter3/5_AsyncTaskQueues/WorkerThread.h index 2eea440..e82804b 100644 --- a/Chapter3/5_AsyncTaskQueues/WorkerThread.h +++ b/Chapter3/5_AsyncTaskQueues/WorkerThread.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _WorkerThread_ #define _WorkerThread_ diff --git a/Chapter3/5_AsyncTaskQueues/iIntrusivePtr.cpp b/Chapter3/5_AsyncTaskQueues/iIntrusivePtr.cpp index af9d1bc..968b860 100644 --- a/Chapter3/5_AsyncTaskQueues/iIntrusivePtr.cpp +++ b/Chapter3/5_AsyncTaskQueues/iIntrusivePtr.cpp @@ -1,10 +1,35 @@ -/** - * \file iIntrusivePtr.cpp - * \brief Intrusive smart pointer - * \version 0.6.14 - * \date 26/08/2012 - * \author Sergey Kosarevsky, 2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" @@ -21,8 +46,3 @@ namespace LPtr if ( Obj ) { reinterpret_cast( Obj )->DecRefCount(); } } }; - -/* - * 26/08/2012 - It's here -*/ diff --git a/Chapter3/5_AsyncTaskQueues/iIntrusivePtr.h b/Chapter3/5_AsyncTaskQueues/iIntrusivePtr.h index 22da71c..dd768a9 100644 --- a/Chapter3/5_AsyncTaskQueues/iIntrusivePtr.h +++ b/Chapter3/5_AsyncTaskQueues/iIntrusivePtr.h @@ -1,14 +1,38 @@ -/** - * \file iIntrusivePtr.h - * \brief Intrusive smart pointer - * \version 0.5.60 - * \date 17/12/2005 - * \author Sergey Kosarevsky, 2005 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _iIntrusivePtr_ -#define _iIntrusivePtr_ +#pragma once #ifndef NULL # define NULL 0 @@ -112,10 +136,3 @@ template class clPtr private: T* FObject; }; - -#endif - -/* - * 08/12/2005 - It's here -*/ diff --git a/Chapter3/5_AsyncTaskQueues/iObject.h b/Chapter3/5_AsyncTaskQueues/iObject.h index 397f37f..eca8ab2 100644 --- a/Chapter3/5_AsyncTaskQueues/iObject.h +++ b/Chapter3/5_AsyncTaskQueues/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #if defined(_WIN32) diff --git a/Chapter3/5_AsyncTaskQueues/main.cpp b/Chapter3/5_AsyncTaskQueues/main.cpp index d721c94..bc1b914 100644 --- a/Chapter3/5_AsyncTaskQueues/main.cpp +++ b/Chapter3/5_AsyncTaskQueues/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "WorkerThread.h" #include diff --git a/Chapter3/6_AsyncEvents/Event.h b/Chapter3/6_AsyncEvents/Event.h index 14d0d0c..5ee6696 100644 --- a/Chapter3/6_AsyncEvents/Event.h +++ b/Chapter3/6_AsyncEvents/Event.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Event__h_ #define _Event__h_ diff --git a/Chapter3/6_AsyncEvents/Mutex.h b/Chapter3/6_AsyncEvents/Mutex.h index 259e6ff..f4f49bf 100644 --- a/Chapter3/6_AsyncEvents/Mutex.h +++ b/Chapter3/6_AsyncEvents/Mutex.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Mutex__h__included__ #define __Mutex__h__included__ diff --git a/Chapter3/6_AsyncEvents/Thread.cpp b/Chapter3/6_AsyncEvents/Thread.cpp index 27d9cd6..573f2a5 100644 --- a/Chapter3/6_AsyncEvents/Thread.cpp +++ b/Chapter3/6_AsyncEvents/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 @@ -103,8 +137,3 @@ native_thread_handle_t iThread::GetCurrentThread() return pthread_self(); #endif } - -/* - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter3/6_AsyncEvents/Thread.h b/Chapter3/6_AsyncEvents/Thread.h index 6ea315e..e69b9aa 100644 --- a/Chapter3/6_AsyncEvents/Thread.h +++ b/Chapter3/6_AsyncEvents/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ @@ -72,10 +96,3 @@ class iThread }; #endif - -/* - * 16/06/2010 - Linux port - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter3/6_AsyncEvents/iIntrusivePtr.cpp b/Chapter3/6_AsyncEvents/iIntrusivePtr.cpp index af9d1bc..968b860 100644 --- a/Chapter3/6_AsyncEvents/iIntrusivePtr.cpp +++ b/Chapter3/6_AsyncEvents/iIntrusivePtr.cpp @@ -1,10 +1,35 @@ -/** - * \file iIntrusivePtr.cpp - * \brief Intrusive smart pointer - * \version 0.6.14 - * \date 26/08/2012 - * \author Sergey Kosarevsky, 2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" @@ -21,8 +46,3 @@ namespace LPtr if ( Obj ) { reinterpret_cast( Obj )->DecRefCount(); } } }; - -/* - * 26/08/2012 - It's here -*/ diff --git a/Chapter3/6_AsyncEvents/iIntrusivePtr.h b/Chapter3/6_AsyncEvents/iIntrusivePtr.h index 22da71c..2fc0da0 100644 --- a/Chapter3/6_AsyncEvents/iIntrusivePtr.h +++ b/Chapter3/6_AsyncEvents/iIntrusivePtr.h @@ -1,10 +1,35 @@ -/** - * \file iIntrusivePtr.h - * \brief Intrusive smart pointer - * \version 0.5.60 - * \date 17/12/2005 - * \author Sergey Kosarevsky, 2005 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _iIntrusivePtr_ @@ -114,8 +139,3 @@ template class clPtr }; #endif - -/* - * 08/12/2005 - It's here -*/ diff --git a/Chapter3/6_AsyncEvents/iObject.h b/Chapter3/6_AsyncEvents/iObject.h index 397f37f..eca8ab2 100644 --- a/Chapter3/6_AsyncEvents/iObject.h +++ b/Chapter3/6_AsyncEvents/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #if defined(_WIN32) diff --git a/Chapter3/6_AsyncEvents/main.cpp b/Chapter3/6_AsyncEvents/main.cpp index 535dffc..867420b 100644 --- a/Chapter3/6_AsyncEvents/main.cpp +++ b/Chapter3/6_AsyncEvents/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #include "Event.h" #include diff --git a/Chapter3/7_AsyncNetworkRequests/Atomic.h b/Chapter3/7_AsyncNetworkRequests/Atomic.h index aa62052..13d1426 100644 --- a/Chapter3/7_AsyncNetworkRequests/Atomic.h +++ b/Chapter3/7_AsyncNetworkRequests/Atomic.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Atomic_h_ #define _Atomic_h_ diff --git a/Chapter3/7_AsyncNetworkRequests/Blob.h b/Chapter3/7_AsyncNetworkRequests/Blob.h index 882cf49..f9366f8 100644 --- a/Chapter3/7_AsyncNetworkRequests/Blob.h +++ b/Chapter3/7_AsyncNetworkRequests/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TheBlob__h__included__ #define __TheBlob__h__included__ diff --git a/Chapter3/7_AsyncNetworkRequests/CurlWrap.cpp b/Chapter3/7_AsyncNetworkRequests/CurlWrap.cpp index 285128a..f46bea2 100644 --- a/Chapter3/7_AsyncNetworkRequests/CurlWrap.cpp +++ b/Chapter3/7_AsyncNetworkRequests/CurlWrap.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "CurlWrap.h" #define GetCurlProc(Name) \ diff --git a/Chapter3/7_AsyncNetworkRequests/CurlWrap.h b/Chapter3/7_AsyncNetworkRequests/CurlWrap.h index 007fdd7..80bdc5d 100644 --- a/Chapter3/7_AsyncNetworkRequests/CurlWrap.h +++ b/Chapter3/7_AsyncNetworkRequests/CurlWrap.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __CurlWrap__h__included__ #define __CurlWrap__h__included__ diff --git a/Chapter3/7_AsyncNetworkRequests/DownloadTask.cpp b/Chapter3/7_AsyncNetworkRequests/DownloadTask.cpp index 56069e0..3c9defe 100644 --- a/Chapter3/7_AsyncNetworkRequests/DownloadTask.cpp +++ b/Chapter3/7_AsyncNetworkRequests/DownloadTask.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "DownloadTask.h" #include "Downloader.h" diff --git a/Chapter3/7_AsyncNetworkRequests/DownloadTask.h b/Chapter3/7_AsyncNetworkRequests/DownloadTask.h index b2b0bff..c2cc255 100644 --- a/Chapter3/7_AsyncNetworkRequests/DownloadTask.h +++ b/Chapter3/7_AsyncNetworkRequests/DownloadTask.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _DownloadTask #define _DownloadTask diff --git a/Chapter3/7_AsyncNetworkRequests/Downloader.cpp b/Chapter3/7_AsyncNetworkRequests/Downloader.cpp index b7e0fb7..6354209 100644 --- a/Chapter3/7_AsyncNetworkRequests/Downloader.cpp +++ b/Chapter3/7_AsyncNetworkRequests/Downloader.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Downloader.h" #include "Blob.h" diff --git a/Chapter3/7_AsyncNetworkRequests/Downloader.h b/Chapter3/7_AsyncNetworkRequests/Downloader.h index e6dcd80..1eea6cc 100644 --- a/Chapter3/7_AsyncNetworkRequests/Downloader.h +++ b/Chapter3/7_AsyncNetworkRequests/Downloader.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Downloader #define _Downloader diff --git a/Chapter3/7_AsyncNetworkRequests/Event.cpp b/Chapter3/7_AsyncNetworkRequests/Event.cpp index 002a791..b8781ae 100644 --- a/Chapter3/7_AsyncNetworkRequests/Event.cpp +++ b/Chapter3/7_AsyncNetworkRequests/Event.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Event.h" #include diff --git a/Chapter3/7_AsyncNetworkRequests/Event.h b/Chapter3/7_AsyncNetworkRequests/Event.h index 3a515dd..8db7f88 100644 --- a/Chapter3/7_AsyncNetworkRequests/Event.h +++ b/Chapter3/7_AsyncNetworkRequests/Event.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Event__h_ #define _Event__h_ diff --git a/Chapter3/7_AsyncNetworkRequests/Mutex.h b/Chapter3/7_AsyncNetworkRequests/Mutex.h index 259e6ff..f4f49bf 100644 --- a/Chapter3/7_AsyncNetworkRequests/Mutex.h +++ b/Chapter3/7_AsyncNetworkRequests/Mutex.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Mutex__h__included__ #define __Mutex__h__included__ diff --git a/Chapter3/7_AsyncNetworkRequests/Thread.cpp b/Chapter3/7_AsyncNetworkRequests/Thread.cpp index 27d9cd6..573f2a5 100644 --- a/Chapter3/7_AsyncNetworkRequests/Thread.cpp +++ b/Chapter3/7_AsyncNetworkRequests/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 @@ -103,8 +137,3 @@ native_thread_handle_t iThread::GetCurrentThread() return pthread_self(); #endif } - -/* - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter3/7_AsyncNetworkRequests/Thread.h b/Chapter3/7_AsyncNetworkRequests/Thread.h index bcf1b3e..ea185f8 100644 --- a/Chapter3/7_AsyncNetworkRequests/Thread.h +++ b/Chapter3/7_AsyncNetworkRequests/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ @@ -72,10 +96,3 @@ class iThread }; #endif - -/* - * 16/06/2010 - Linux port - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter3/7_AsyncNetworkRequests/WorkerThread.cpp b/Chapter3/7_AsyncNetworkRequests/WorkerThread.cpp index 2e69c72..1405ba9 100644 --- a/Chapter3/7_AsyncNetworkRequests/WorkerThread.cpp +++ b/Chapter3/7_AsyncNetworkRequests/WorkerThread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "WorkerThread.h" #include @@ -122,8 +156,3 @@ void WorkerThread::Run() FCurrentTask = NULL; } } - -/* - * 05/12/2012 - It's here -*/ diff --git a/Chapter3/7_AsyncNetworkRequests/WorkerThread.h b/Chapter3/7_AsyncNetworkRequests/WorkerThread.h index 2eea440..e82804b 100644 --- a/Chapter3/7_AsyncNetworkRequests/WorkerThread.h +++ b/Chapter3/7_AsyncNetworkRequests/WorkerThread.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _WorkerThread_ #define _WorkerThread_ diff --git a/Chapter3/7_AsyncNetworkRequests/iIntrusivePtr.cpp b/Chapter3/7_AsyncNetworkRequests/iIntrusivePtr.cpp index af9d1bc..968b860 100644 --- a/Chapter3/7_AsyncNetworkRequests/iIntrusivePtr.cpp +++ b/Chapter3/7_AsyncNetworkRequests/iIntrusivePtr.cpp @@ -1,10 +1,35 @@ -/** - * \file iIntrusivePtr.cpp - * \brief Intrusive smart pointer - * \version 0.6.14 - * \date 26/08/2012 - * \author Sergey Kosarevsky, 2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" @@ -21,8 +46,3 @@ namespace LPtr if ( Obj ) { reinterpret_cast( Obj )->DecRefCount(); } } }; - -/* - * 26/08/2012 - It's here -*/ diff --git a/Chapter3/7_AsyncNetworkRequests/iIntrusivePtr.h b/Chapter3/7_AsyncNetworkRequests/iIntrusivePtr.h index 22da71c..2fc0da0 100644 --- a/Chapter3/7_AsyncNetworkRequests/iIntrusivePtr.h +++ b/Chapter3/7_AsyncNetworkRequests/iIntrusivePtr.h @@ -1,10 +1,35 @@ -/** - * \file iIntrusivePtr.h - * \brief Intrusive smart pointer - * \version 0.5.60 - * \date 17/12/2005 - * \author Sergey Kosarevsky, 2005 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _iIntrusivePtr_ @@ -114,8 +139,3 @@ template class clPtr }; #endif - -/* - * 08/12/2005 - It's here -*/ diff --git a/Chapter3/7_AsyncNetworkRequests/iObject.h b/Chapter3/7_AsyncNetworkRequests/iObject.h index b98d7aa..47f153f 100644 --- a/Chapter3/7_AsyncNetworkRequests/iObject.h +++ b/Chapter3/7_AsyncNetworkRequests/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iObject_ #define _iObject_ diff --git a/Chapter3/7_AsyncNetworkRequests/main.cpp b/Chapter3/7_AsyncNetworkRequests/main.cpp index 4360032..e288f6f 100644 --- a/Chapter3/7_AsyncNetworkRequests/main.cpp +++ b/Chapter3/7_AsyncNetworkRequests/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "CurlWrap.h" #include "Downloader.h" #include "Blob.h" diff --git a/Chapter3/8_MakingWebServer/DetectAdapters.cpp b/Chapter3/8_MakingWebServer/DetectAdapters.cpp index 2b19685..e979623 100644 --- a/Chapter3/8_MakingWebServer/DetectAdapters.cpp +++ b/Chapter3/8_MakingWebServer/DetectAdapters.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "DetectAdapters.h" #include diff --git a/Chapter3/8_MakingWebServer/DetectAdapters.h b/Chapter3/8_MakingWebServer/DetectAdapters.h index 1e384a7..32db8b5 100644 --- a/Chapter3/8_MakingWebServer/DetectAdapters.h +++ b/Chapter3/8_MakingWebServer/DetectAdapters.h @@ -1,26 +1,60 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include /* - -Possible usage example: - - int main() - { - std::vector a; - - Net_EnumerateAdapters( a ); - - for(size_t i = 0 ; i < a.size() ; i++) - { - printf("[%d] %s; %s\n", i + 1, a[i].FName, a[i].FIP); - } - - return 0; - } - -*/ + * + * Possible usage example: + * + * int main() + * { + * std::vector a; + * + * Net_EnumerateAdapters( a ); + * + * for(size_t i = 0 ; i < a.size() ; i++) + * { + * printf("[%d] %s; %s\n", i + 1, a[i].FName, a[i].FIP); + * } + * + * return 0; + * } + * + */ /// Short structure with the information about available network adapters struct sAdapterInfo diff --git a/Chapter3/8_MakingWebServer/Rendering.cpp b/Chapter3/8_MakingWebServer/Rendering.cpp index 662cf66..dddf7cd 100644 --- a/Chapter3/8_MakingWebServer/Rendering.cpp +++ b/Chapter3/8_MakingWebServer/Rendering.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Rendering.h" const int Width = ImageWidth; diff --git a/Chapter3/8_MakingWebServer/Rendering.h b/Chapter3/8_MakingWebServer/Rendering.h index 9491a00..ad6f293 100644 --- a/Chapter3/8_MakingWebServer/Rendering.h +++ b/Chapter3/8_MakingWebServer/Rendering.h @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Wrapper_Callbacks.h" diff --git a/Chapter3/8_MakingWebServer/Sockets.cpp b/Chapter3/8_MakingWebServer/Sockets.cpp index 536c568..f97c9b4 100644 --- a/Chapter3/8_MakingWebServer/Sockets.cpp +++ b/Chapter3/8_MakingWebServer/Sockets.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Sockets.h" #include diff --git a/Chapter3/8_MakingWebServer/Sockets.h b/Chapter3/8_MakingWebServer/Sockets.h index ee93d59..147c492 100644 --- a/Chapter3/8_MakingWebServer/Sockets.h +++ b/Chapter3/8_MakingWebServer/Sockets.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Network__h__included__ #define __Network__h__included__ diff --git a/Chapter3/8_MakingWebServer/Thread.cpp b/Chapter3/8_MakingWebServer/Thread.cpp index 27d9cd6..573f2a5 100644 --- a/Chapter3/8_MakingWebServer/Thread.cpp +++ b/Chapter3/8_MakingWebServer/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 @@ -103,8 +137,3 @@ native_thread_handle_t iThread::GetCurrentThread() return pthread_self(); #endif } - -/* - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter3/8_MakingWebServer/Thread.h b/Chapter3/8_MakingWebServer/Thread.h index bcf1b3e..ea185f8 100644 --- a/Chapter3/8_MakingWebServer/Thread.h +++ b/Chapter3/8_MakingWebServer/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ @@ -72,10 +96,3 @@ class iThread }; #endif - -/* - * 16/06/2010 - Linux port - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter3/8_MakingWebServer/Wrapper_Android.h b/Chapter3/8_MakingWebServer/Wrapper_Android.h index 9bc8820..4a013ff 100644 --- a/Chapter3/8_MakingWebServer/Wrapper_Android.h +++ b/Chapter3/8_MakingWebServer/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter3/8_MakingWebServer/Wrapper_Callbacks.h b/Chapter3/8_MakingWebServer/Wrapper_Callbacks.h index 9878a74..bc737d9 100644 --- a/Chapter3/8_MakingWebServer/Wrapper_Callbacks.h +++ b/Chapter3/8_MakingWebServer/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter3/8_MakingWebServer/Wrapper_Windows.cpp b/Chapter3/8_MakingWebServer/Wrapper_Windows.cpp index 4b76557..a330569 100644 --- a/Chapter3/8_MakingWebServer/Wrapper_Windows.cpp +++ b/Chapter3/8_MakingWebServer/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Windows.h" HDC hMemDC; diff --git a/Chapter3/8_MakingWebServer/Wrapper_Windows.h b/Chapter3/8_MakingWebServer/Wrapper_Windows.h index da0b5b2..1a54ed7 100644 --- a/Chapter3/8_MakingWebServer/Wrapper_Windows.h +++ b/Chapter3/8_MakingWebServer/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter3/8_MakingWebServer/bmp.h b/Chapter3/8_MakingWebServer/bmp.h index 480eb3d..5563c87 100644 --- a/Chapter3/8_MakingWebServer/bmp.h +++ b/Chapter3/8_MakingWebServer/bmp.h @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter3/8_MakingWebServer/jni/Wrappers.cpp b/Chapter3/8_MakingWebServer/jni/Wrappers.cpp index ed70e43..bb33fad 100644 --- a/Chapter3/8_MakingWebServer/jni/Wrappers.cpp +++ b/Chapter3/8_MakingWebServer/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter3/8_MakingWebServer/jni/WrappersJNI.c b/Chapter3/8_MakingWebServer/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter3/8_MakingWebServer/jni/WrappersJNI.c +++ b/Chapter3/8_MakingWebServer/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter3/8_MakingWebServer/main.cpp b/Chapter3/8_MakingWebServer/main.cpp index 9c032b3..6e60611 100644 --- a/Chapter3/8_MakingWebServer/main.cpp +++ b/Chapter3/8_MakingWebServer/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include "Rendering.h" diff --git a/Chapter3/8_MakingWebServer/src/com/packtpub/ndkcookbook/app5/App5Activity.java b/Chapter3/8_MakingWebServer/src/com/packtpub/ndkcookbook/app5/App5Activity.java index ea70b14..ee8ec48 100644 --- a/Chapter3/8_MakingWebServer/src/com/packtpub/ndkcookbook/app5/App5Activity.java +++ b/Chapter3/8_MakingWebServer/src/com/packtpub/ndkcookbook/app5/App5Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app5; import android.app.Activity; diff --git a/Chapter3/8_MakingWebServer/src/com/packtpub/ndkcookbook/app5/GLView.java b/Chapter3/8_MakingWebServer/src/com/packtpub/ndkcookbook/app5/GLView.java index 4984e82..4f110ce 100644 --- a/Chapter3/8_MakingWebServer/src/com/packtpub/ndkcookbook/app5/GLView.java +++ b/Chapter3/8_MakingWebServer/src/com/packtpub/ndkcookbook/app5/GLView.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app5; import android.util.Log; diff --git a/Chapter4/1_AbstractStreams/Atomic.h b/Chapter4/1_AbstractStreams/Atomic.h index 918ce68..6053ca0 100644 --- a/Chapter4/1_AbstractStreams/Atomic.h +++ b/Chapter4/1_AbstractStreams/Atomic.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Atomic_h_ #define _Atomic_h_ diff --git a/Chapter4/1_AbstractStreams/Blob.h b/Chapter4/1_AbstractStreams/Blob.h index 4af6269..0a08f45 100644 --- a/Chapter4/1_AbstractStreams/Blob.h +++ b/Chapter4/1_AbstractStreams/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TheBlob__h__included__ #define __TheBlob__h__included__ diff --git a/Chapter4/1_AbstractStreams/Files.h b/Chapter4/1_AbstractStreams/Files.h index b62aec9..473923d 100644 --- a/Chapter4/1_AbstractStreams/Files.h +++ b/Chapter4/1_AbstractStreams/Files.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Files__h__included__ #define __Files__h__included__ diff --git a/Chapter4/1_AbstractStreams/Streams.h b/Chapter4/1_AbstractStreams/Streams.h index ef5a05f..184b2ec 100644 --- a/Chapter4/1_AbstractStreams/Streams.h +++ b/Chapter4/1_AbstractStreams/Streams.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iOStream_ #define _iOStream_ diff --git a/Chapter4/1_AbstractStreams/iIntrusivePtr.cpp b/Chapter4/1_AbstractStreams/iIntrusivePtr.cpp index af9d1bc..968b860 100644 --- a/Chapter4/1_AbstractStreams/iIntrusivePtr.cpp +++ b/Chapter4/1_AbstractStreams/iIntrusivePtr.cpp @@ -1,10 +1,35 @@ -/** - * \file iIntrusivePtr.cpp - * \brief Intrusive smart pointer - * \version 0.6.14 - * \date 26/08/2012 - * \author Sergey Kosarevsky, 2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" @@ -21,8 +46,3 @@ namespace LPtr if ( Obj ) { reinterpret_cast( Obj )->DecRefCount(); } } }; - -/* - * 26/08/2012 - It's here -*/ diff --git a/Chapter4/1_AbstractStreams/iIntrusivePtr.h b/Chapter4/1_AbstractStreams/iIntrusivePtr.h index 22da71c..2fc0da0 100644 --- a/Chapter4/1_AbstractStreams/iIntrusivePtr.h +++ b/Chapter4/1_AbstractStreams/iIntrusivePtr.h @@ -1,10 +1,35 @@ -/** - * \file iIntrusivePtr.h - * \brief Intrusive smart pointer - * \version 0.5.60 - * \date 17/12/2005 - * \author Sergey Kosarevsky, 2005 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _iIntrusivePtr_ @@ -114,8 +139,3 @@ template class clPtr }; #endif - -/* - * 08/12/2005 - It's here -*/ diff --git a/Chapter4/1_AbstractStreams/iObject.h b/Chapter4/1_AbstractStreams/iObject.h index a61796e..fb73166 100644 --- a/Chapter4/1_AbstractStreams/iObject.h +++ b/Chapter4/1_AbstractStreams/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iObject_ #define _iObject_ diff --git a/Chapter4/2_MountPoints/Archive.cpp b/Chapter4/2_MountPoints/Archive.cpp index 156817d..020e26b 100644 --- a/Chapter4/2_MountPoints/Archive.cpp +++ b/Chapter4/2_MountPoints/Archive.cpp @@ -1,8 +1,35 @@ -/** - * \file Archive.cpp - * \brief Archive reader - * \author Viktor Latypov, 2011-2012 - * \author viktor@linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/Chapter4/2_MountPoints/Archive.h b/Chapter4/2_MountPoints/Archive.h index 32ef8c6..e38ea9a 100644 --- a/Chapter4/2_MountPoints/Archive.h +++ b/Chapter4/2_MountPoints/Archive.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __archive__h__included__ #define __archive__h__included__ diff --git a/Chapter4/2_MountPoints/Atomic.h b/Chapter4/2_MountPoints/Atomic.h index 918ce68..6053ca0 100644 --- a/Chapter4/2_MountPoints/Atomic.h +++ b/Chapter4/2_MountPoints/Atomic.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Atomic_h_ #define _Atomic_h_ diff --git a/Chapter4/2_MountPoints/Blob.h b/Chapter4/2_MountPoints/Blob.h index 4af6269..0a08f45 100644 --- a/Chapter4/2_MountPoints/Blob.h +++ b/Chapter4/2_MountPoints/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TheBlob__h__included__ #define __TheBlob__h__included__ diff --git a/Chapter4/2_MountPoints/FileSystem.cpp b/Chapter4/2_MountPoints/FileSystem.cpp index c4b3696..165ae98 100644 --- a/Chapter4/2_MountPoints/FileSystem.cpp +++ b/Chapter4/2_MountPoints/FileSystem.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FileSystem.h" #include "Files.h" #include "MountPoint.h" diff --git a/Chapter4/2_MountPoints/FileSystem.h b/Chapter4/2_MountPoints/FileSystem.h index 88e6f99..141a5b0 100644 --- a/Chapter4/2_MountPoints/FileSystem.h +++ b/Chapter4/2_MountPoints/FileSystem.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _FileSystem_ #define _FileSystem_ diff --git a/Chapter4/2_MountPoints/Files.h b/Chapter4/2_MountPoints/Files.h index 6636092..eb35816 100644 --- a/Chapter4/2_MountPoints/Files.h +++ b/Chapter4/2_MountPoints/Files.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Files__h__included__ #define __Files__h__included__ diff --git a/Chapter4/2_MountPoints/MountPoint.h b/Chapter4/2_MountPoints/MountPoint.h index f74ad44..0c6933b 100644 --- a/Chapter4/2_MountPoints/MountPoint.h +++ b/Chapter4/2_MountPoints/MountPoint.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __MountPoints__h__included__ #define __MountPoints__h__included__ diff --git a/Chapter4/2_MountPoints/StrUtils.h b/Chapter4/2_MountPoints/StrUtils.h index 9ad1243..488bd43 100644 --- a/Chapter4/2_MountPoints/StrUtils.h +++ b/Chapter4/2_MountPoints/StrUtils.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef StrUtils_h_ #define StrUtils_h_ diff --git a/Chapter4/2_MountPoints/Streams.h b/Chapter4/2_MountPoints/Streams.h index 47256b7..8086a43 100644 --- a/Chapter4/2_MountPoints/Streams.h +++ b/Chapter4/2_MountPoints/Streams.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iOStream_ #define _iOStream_ diff --git a/Chapter4/2_MountPoints/iIntrusivePtr.cpp b/Chapter4/2_MountPoints/iIntrusivePtr.cpp index ae6fac7..968b860 100644 --- a/Chapter4/2_MountPoints/iIntrusivePtr.cpp +++ b/Chapter4/2_MountPoints/iIntrusivePtr.cpp @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.cpp - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" diff --git a/Chapter4/2_MountPoints/iIntrusivePtr.h b/Chapter4/2_MountPoints/iIntrusivePtr.h index 6427ef0..2fc0da0 100644 --- a/Chapter4/2_MountPoints/iIntrusivePtr.h +++ b/Chapter4/2_MountPoints/iIntrusivePtr.h @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.h - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2005 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _iIntrusivePtr_ diff --git a/Chapter4/2_MountPoints/iObject.h b/Chapter4/2_MountPoints/iObject.h index b55efba..78a982b 100644 --- a/Chapter4/2_MountPoints/iObject.h +++ b/Chapter4/2_MountPoints/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iObject_ #define _iObject_ diff --git a/Chapter4/2_MountPoints/main.cpp b/Chapter4/2_MountPoints/main.cpp index cc55617..51c1712 100644 --- a/Chapter4/2_MountPoints/main.cpp +++ b/Chapter4/2_MountPoints/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FileSystem.h" #include "Archive.h" diff --git a/Chapter4/2_MountPoints/zip_callback.cpp b/Chapter4/2_MountPoints/zip_callback.cpp index 88c8f44..1fc8b36 100644 --- a/Chapter4/2_MountPoints/zip_callback.cpp +++ b/Chapter4/2_MountPoints/zip_callback.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + static voidpf ZCALLBACK zip_fopen ( voidpf opaque, const void* filename, int mode ) { ( ( iIStream* )opaque )->Seek( 0 ); diff --git a/Chapter4/3_AsyncTexture/Archive.cpp b/Chapter4/3_AsyncTexture/Archive.cpp index 156817d..020e26b 100644 --- a/Chapter4/3_AsyncTexture/Archive.cpp +++ b/Chapter4/3_AsyncTexture/Archive.cpp @@ -1,8 +1,35 @@ -/** - * \file Archive.cpp - * \brief Archive reader - * \author Viktor Latypov, 2011-2012 - * \author viktor@linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/Chapter4/3_AsyncTexture/Archive.h b/Chapter4/3_AsyncTexture/Archive.h index 32ef8c6..e38ea9a 100644 --- a/Chapter4/3_AsyncTexture/Archive.h +++ b/Chapter4/3_AsyncTexture/Archive.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __archive__h__included__ #define __archive__h__included__ diff --git a/Chapter4/3_AsyncTexture/Atomic.h b/Chapter4/3_AsyncTexture/Atomic.h index 918ce68..6053ca0 100644 --- a/Chapter4/3_AsyncTexture/Atomic.h +++ b/Chapter4/3_AsyncTexture/Atomic.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Atomic_h_ #define _Atomic_h_ diff --git a/Chapter4/3_AsyncTexture/Bitmap.h b/Chapter4/3_AsyncTexture/Bitmap.h index be6b90c..5998d33 100644 --- a/Chapter4/3_AsyncTexture/Bitmap.h +++ b/Chapter4/3_AsyncTexture/Bitmap.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Streams.h" diff --git a/Chapter4/3_AsyncTexture/Blob.h b/Chapter4/3_AsyncTexture/Blob.h index 4af6269..0a08f45 100644 --- a/Chapter4/3_AsyncTexture/Blob.h +++ b/Chapter4/3_AsyncTexture/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TheBlob__h__included__ #define __TheBlob__h__included__ diff --git a/Chapter4/3_AsyncTexture/Event.cpp b/Chapter4/3_AsyncTexture/Event.cpp index b443707..b9fcf35 100644 --- a/Chapter4/3_AsyncTexture/Event.cpp +++ b/Chapter4/3_AsyncTexture/Event.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Event.h" #include diff --git a/Chapter4/3_AsyncTexture/Event.h b/Chapter4/3_AsyncTexture/Event.h index 3a515dd..8db7f88 100644 --- a/Chapter4/3_AsyncTexture/Event.h +++ b/Chapter4/3_AsyncTexture/Event.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Event__h_ #define _Event__h_ diff --git a/Chapter4/3_AsyncTexture/FileSystem.cpp b/Chapter4/3_AsyncTexture/FileSystem.cpp index c4b3696..165ae98 100644 --- a/Chapter4/3_AsyncTexture/FileSystem.cpp +++ b/Chapter4/3_AsyncTexture/FileSystem.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FileSystem.h" #include "Files.h" #include "MountPoint.h" diff --git a/Chapter4/3_AsyncTexture/FileSystem.h b/Chapter4/3_AsyncTexture/FileSystem.h index 88e6f99..141a5b0 100644 --- a/Chapter4/3_AsyncTexture/FileSystem.h +++ b/Chapter4/3_AsyncTexture/FileSystem.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _FileSystem_ #define _FileSystem_ diff --git a/Chapter4/3_AsyncTexture/Files.h b/Chapter4/3_AsyncTexture/Files.h index 3ca8caf..c69ddbb 100644 --- a/Chapter4/3_AsyncTexture/Files.h +++ b/Chapter4/3_AsyncTexture/Files.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Files__h__included__ #define __Files__h__included__ diff --git a/Chapter4/3_AsyncTexture/MountPoint.h b/Chapter4/3_AsyncTexture/MountPoint.h index f74ad44..0c6933b 100644 --- a/Chapter4/3_AsyncTexture/MountPoint.h +++ b/Chapter4/3_AsyncTexture/MountPoint.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __MountPoints__h__included__ #define __MountPoints__h__included__ diff --git a/Chapter4/3_AsyncTexture/Mutex.h b/Chapter4/3_AsyncTexture/Mutex.h index 259e6ff..f4f49bf 100644 --- a/Chapter4/3_AsyncTexture/Mutex.h +++ b/Chapter4/3_AsyncTexture/Mutex.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Mutex__h__included__ #define __Mutex__h__included__ diff --git a/Chapter4/3_AsyncTexture/Rendering.cpp b/Chapter4/3_AsyncTexture/Rendering.cpp index 662cf66..a91d12d 100644 --- a/Chapter4/3_AsyncTexture/Rendering.cpp +++ b/Chapter4/3_AsyncTexture/Rendering.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Rendering.h" const int Width = ImageWidth; diff --git a/Chapter4/3_AsyncTexture/Rendering.h b/Chapter4/3_AsyncTexture/Rendering.h index 9491a00..1ddb21d 100644 --- a/Chapter4/3_AsyncTexture/Rendering.h +++ b/Chapter4/3_AsyncTexture/Rendering.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Wrapper_Callbacks.h" diff --git a/Chapter4/3_AsyncTexture/StrUtils.h b/Chapter4/3_AsyncTexture/StrUtils.h index 9ad1243..488bd43 100644 --- a/Chapter4/3_AsyncTexture/StrUtils.h +++ b/Chapter4/3_AsyncTexture/StrUtils.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef StrUtils_h_ #define StrUtils_h_ diff --git a/Chapter4/3_AsyncTexture/Streams.h b/Chapter4/3_AsyncTexture/Streams.h index 47256b7..8086a43 100644 --- a/Chapter4/3_AsyncTexture/Streams.h +++ b/Chapter4/3_AsyncTexture/Streams.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iOStream_ #define _iOStream_ diff --git a/Chapter4/3_AsyncTexture/Thread.cpp b/Chapter4/3_AsyncTexture/Thread.cpp index 27d9cd6..573f2a5 100644 --- a/Chapter4/3_AsyncTexture/Thread.cpp +++ b/Chapter4/3_AsyncTexture/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 @@ -103,8 +137,3 @@ native_thread_handle_t iThread::GetCurrentThread() return pthread_self(); #endif } - -/* - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter4/3_AsyncTexture/Thread.h b/Chapter4/3_AsyncTexture/Thread.h index bcf1b3e..ea185f8 100644 --- a/Chapter4/3_AsyncTexture/Thread.h +++ b/Chapter4/3_AsyncTexture/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ @@ -72,10 +96,3 @@ class iThread }; #endif - -/* - * 16/06/2010 - Linux port - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter4/3_AsyncTexture/WorkerThread.cpp b/Chapter4/3_AsyncTexture/WorkerThread.cpp index 2e69c72..1405ba9 100644 --- a/Chapter4/3_AsyncTexture/WorkerThread.cpp +++ b/Chapter4/3_AsyncTexture/WorkerThread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "WorkerThread.h" #include @@ -122,8 +156,3 @@ void WorkerThread::Run() FCurrentTask = NULL; } } - -/* - * 05/12/2012 - It's here -*/ diff --git a/Chapter4/3_AsyncTexture/WorkerThread.h b/Chapter4/3_AsyncTexture/WorkerThread.h index 2eea440..e82804b 100644 --- a/Chapter4/3_AsyncTexture/WorkerThread.h +++ b/Chapter4/3_AsyncTexture/WorkerThread.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _WorkerThread_ #define _WorkerThread_ diff --git a/Chapter4/3_AsyncTexture/Wrapper_Android.h b/Chapter4/3_AsyncTexture/Wrapper_Android.h index efe64b6..5937982 100644 --- a/Chapter4/3_AsyncTexture/Wrapper_Android.h +++ b/Chapter4/3_AsyncTexture/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter4/3_AsyncTexture/Wrapper_Callbacks.h b/Chapter4/3_AsyncTexture/Wrapper_Callbacks.h index af6fd35..cbc88ed 100644 --- a/Chapter4/3_AsyncTexture/Wrapper_Callbacks.h +++ b/Chapter4/3_AsyncTexture/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter4/3_AsyncTexture/Wrapper_Windows.cpp b/Chapter4/3_AsyncTexture/Wrapper_Windows.cpp index 44a38ac..a0f93bd 100644 --- a/Chapter4/3_AsyncTexture/Wrapper_Windows.cpp +++ b/Chapter4/3_AsyncTexture/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Windows.h" HDC hMemDC; diff --git a/Chapter4/3_AsyncTexture/Wrapper_Windows.h b/Chapter4/3_AsyncTexture/Wrapper_Windows.h index da0b5b2..1a54ed7 100644 --- a/Chapter4/3_AsyncTexture/Wrapper_Windows.h +++ b/Chapter4/3_AsyncTexture/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter4/3_AsyncTexture/bmp.h b/Chapter4/3_AsyncTexture/bmp.h index 8d3b441..05ff63f 100644 --- a/Chapter4/3_AsyncTexture/bmp.h +++ b/Chapter4/3_AsyncTexture/bmp.h @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter4/3_AsyncTexture/iIntrusivePtr.cpp b/Chapter4/3_AsyncTexture/iIntrusivePtr.cpp index ae6fac7..968b860 100644 --- a/Chapter4/3_AsyncTexture/iIntrusivePtr.cpp +++ b/Chapter4/3_AsyncTexture/iIntrusivePtr.cpp @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.cpp - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" diff --git a/Chapter4/3_AsyncTexture/iIntrusivePtr.h b/Chapter4/3_AsyncTexture/iIntrusivePtr.h index 6427ef0..2fc0da0 100644 --- a/Chapter4/3_AsyncTexture/iIntrusivePtr.h +++ b/Chapter4/3_AsyncTexture/iIntrusivePtr.h @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.h - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2005 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _iIntrusivePtr_ diff --git a/Chapter4/3_AsyncTexture/iObject.h b/Chapter4/3_AsyncTexture/iObject.h index b55efba..78a982b 100644 --- a/Chapter4/3_AsyncTexture/iObject.h +++ b/Chapter4/3_AsyncTexture/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iObject_ #define _iObject_ diff --git a/Chapter4/3_AsyncTexture/jni/Wrappers.cpp b/Chapter4/3_AsyncTexture/jni/Wrappers.cpp index ec7e31a..d84c6c2 100644 --- a/Chapter4/3_AsyncTexture/jni/Wrappers.cpp +++ b/Chapter4/3_AsyncTexture/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter4/3_AsyncTexture/jni/WrappersJNI.c b/Chapter4/3_AsyncTexture/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter4/3_AsyncTexture/jni/WrappersJNI.c +++ b/Chapter4/3_AsyncTexture/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter4/3_AsyncTexture/main.cpp b/Chapter4/3_AsyncTexture/main.cpp index c3f1ff3..faa7cca 100644 --- a/Chapter4/3_AsyncTexture/main.cpp +++ b/Chapter4/3_AsyncTexture/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "WorkerThread.h" #include "FileSystem.h" #include "Event.h" diff --git a/Chapter4/3_AsyncTexture/src/com/packtpub/ndkcookbook/app7/App7Activity.java b/Chapter4/3_AsyncTexture/src/com/packtpub/ndkcookbook/app7/App7Activity.java index 147cbfb..d62b228 100644 --- a/Chapter4/3_AsyncTexture/src/com/packtpub/ndkcookbook/app7/App7Activity.java +++ b/Chapter4/3_AsyncTexture/src/com/packtpub/ndkcookbook/app7/App7Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app7; import android.app.Activity; diff --git a/Chapter4/3_AsyncTexture/src/com/packtpub/ndkcookbook/app7/GLView.java b/Chapter4/3_AsyncTexture/src/com/packtpub/ndkcookbook/app7/GLView.java index a933245..29eb437 100644 --- a/Chapter4/3_AsyncTexture/src/com/packtpub/ndkcookbook/app7/GLView.java +++ b/Chapter4/3_AsyncTexture/src/com/packtpub/ndkcookbook/app7/GLView.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app7; import android.util.Log; diff --git a/Chapter4/3_AsyncTexture/zip_callback.cpp b/Chapter4/3_AsyncTexture/zip_callback.cpp index 88c8f44..1fc8b36 100644 --- a/Chapter4/3_AsyncTexture/zip_callback.cpp +++ b/Chapter4/3_AsyncTexture/zip_callback.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + static voidpf ZCALLBACK zip_fopen ( voidpf opaque, const void* filename, int mode ) { ( ( iIStream* )opaque )->Seek( 0 ); diff --git a/Chapter4/4_StoringApplicationData/Wrapper_Android.h b/Chapter4/4_StoringApplicationData/Wrapper_Android.h index 837aa97..24375cd 100644 --- a/Chapter4/4_StoringApplicationData/Wrapper_Android.h +++ b/Chapter4/4_StoringApplicationData/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter4/4_StoringApplicationData/Wrapper_Callbacks.h b/Chapter4/4_StoringApplicationData/Wrapper_Callbacks.h index b47d2b0..41cde6a 100644 --- a/Chapter4/4_StoringApplicationData/Wrapper_Callbacks.h +++ b/Chapter4/4_StoringApplicationData/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter4/4_StoringApplicationData/Wrapper_Windows.cpp b/Chapter4/4_StoringApplicationData/Wrapper_Windows.cpp index a771484..254d6b4 100644 --- a/Chapter4/4_StoringApplicationData/Wrapper_Windows.cpp +++ b/Chapter4/4_StoringApplicationData/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Windows.h" #include diff --git a/Chapter4/4_StoringApplicationData/Wrapper_Windows.h b/Chapter4/4_StoringApplicationData/Wrapper_Windows.h index 0a2b75f..e677e20 100644 --- a/Chapter4/4_StoringApplicationData/Wrapper_Windows.h +++ b/Chapter4/4_StoringApplicationData/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter4/4_StoringApplicationData/jni/Wrappers.cpp b/Chapter4/4_StoringApplicationData/jni/Wrappers.cpp index 37ac6ec..41cab7d 100644 --- a/Chapter4/4_StoringApplicationData/jni/Wrappers.cpp +++ b/Chapter4/4_StoringApplicationData/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter4/4_StoringApplicationData/main.cpp b/Chapter4/4_StoringApplicationData/main.cpp index 2314420..0e6f410 100644 --- a/Chapter4/4_StoringApplicationData/main.cpp +++ b/Chapter4/4_StoringApplicationData/main.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #if defined( ANDROID ) diff --git a/Chapter4/4_StoringApplicationData/src/com/packtpub/ndkcookbook/app6/App6Activity.java b/Chapter4/4_StoringApplicationData/src/com/packtpub/ndkcookbook/app6/App6Activity.java index 59b9c6c..27d2311 100644 --- a/Chapter4/4_StoringApplicationData/src/com/packtpub/ndkcookbook/app6/App6Activity.java +++ b/Chapter4/4_StoringApplicationData/src/com/packtpub/ndkcookbook/app6/App6Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app6; import android.app.Activity; diff --git a/Chapter5/0_AL_On_Android/jni/Wrappers.cpp b/Chapter5/0_AL_On_Android/jni/Wrappers.cpp index 88b8d11..b45c35e 100644 --- a/Chapter5/0_AL_On_Android/jni/Wrappers.cpp +++ b/Chapter5/0_AL_On_Android/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter5/0_AL_On_Android/jni/WrappersJNI.c b/Chapter5/0_AL_On_Android/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter5/0_AL_On_Android/jni/WrappersJNI.c +++ b/Chapter5/0_AL_On_Android/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter5/0_AL_On_Android/main.cpp b/Chapter5/0_AL_On_Android/main.cpp index f845135..af6fc2c 100644 --- a/Chapter5/0_AL_On_Android/main.cpp +++ b/Chapter5/0_AL_On_Android/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Callbacks.h" #include "FileSystem.h" #include "Thread.h" diff --git a/Chapter5/0_AL_On_Android/src/Rendering.cpp b/Chapter5/0_AL_On_Android/src/Rendering.cpp index 662cf66..a91d12d 100644 --- a/Chapter5/0_AL_On_Android/src/Rendering.cpp +++ b/Chapter5/0_AL_On_Android/src/Rendering.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Rendering.h" const int Width = ImageWidth; diff --git a/Chapter5/0_AL_On_Android/src/Rendering.h b/Chapter5/0_AL_On_Android/src/Rendering.h index 9491a00..1ddb21d 100644 --- a/Chapter5/0_AL_On_Android/src/Rendering.h +++ b/Chapter5/0_AL_On_Android/src/Rendering.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Wrapper_Callbacks.h" diff --git a/Chapter5/0_AL_On_Android/src/StrUtils.h b/Chapter5/0_AL_On_Android/src/StrUtils.h index 9ad1243..488bd43 100644 --- a/Chapter5/0_AL_On_Android/src/StrUtils.h +++ b/Chapter5/0_AL_On_Android/src/StrUtils.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef StrUtils_h_ #define StrUtils_h_ diff --git a/Chapter5/0_AL_On_Android/src/Wrapper_Android.h b/Chapter5/0_AL_On_Android/src/Wrapper_Android.h index 3e8f78b..3780d2a 100644 --- a/Chapter5/0_AL_On_Android/src/Wrapper_Android.h +++ b/Chapter5/0_AL_On_Android/src/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter5/0_AL_On_Android/src/Wrapper_Callbacks.h b/Chapter5/0_AL_On_Android/src/Wrapper_Callbacks.h index 25c5f6c..daf4507 100644 --- a/Chapter5/0_AL_On_Android/src/Wrapper_Callbacks.h +++ b/Chapter5/0_AL_On_Android/src/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter5/0_AL_On_Android/src/Wrapper_Windows.cpp b/Chapter5/0_AL_On_Android/src/Wrapper_Windows.cpp index 78adcaf..97c707a 100644 --- a/Chapter5/0_AL_On_Android/src/Wrapper_Windows.cpp +++ b/Chapter5/0_AL_On_Android/src/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Windows.h" HDC hMemDC; diff --git a/Chapter5/0_AL_On_Android/src/Wrapper_Windows.h b/Chapter5/0_AL_On_Android/src/Wrapper_Windows.h index da0b5b2..1a54ed7 100644 --- a/Chapter5/0_AL_On_Android/src/Wrapper_Windows.h +++ b/Chapter5/0_AL_On_Android/src/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter5/0_AL_On_Android/src/com/packtpub/ndkcookbook/app8/App8Activity.java b/Chapter5/0_AL_On_Android/src/com/packtpub/ndkcookbook/app8/App8Activity.java index 49477e7..624e99f 100644 --- a/Chapter5/0_AL_On_Android/src/com/packtpub/ndkcookbook/app8/App8Activity.java +++ b/Chapter5/0_AL_On_Android/src/com/packtpub/ndkcookbook/app8/App8Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app8; import android.app.Activity; diff --git a/Chapter5/0_AL_On_Android/src/core/Atomic.h b/Chapter5/0_AL_On_Android/src/core/Atomic.h index 918ce68..6053ca0 100644 --- a/Chapter5/0_AL_On_Android/src/core/Atomic.h +++ b/Chapter5/0_AL_On_Android/src/core/Atomic.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Atomic_h_ #define _Atomic_h_ diff --git a/Chapter5/0_AL_On_Android/src/core/iIntrusivePtr.cpp b/Chapter5/0_AL_On_Android/src/core/iIntrusivePtr.cpp index ae6fac7..968b860 100644 --- a/Chapter5/0_AL_On_Android/src/core/iIntrusivePtr.cpp +++ b/Chapter5/0_AL_On_Android/src/core/iIntrusivePtr.cpp @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.cpp - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" diff --git a/Chapter5/0_AL_On_Android/src/core/iIntrusivePtr.h b/Chapter5/0_AL_On_Android/src/core/iIntrusivePtr.h index 6427ef0..2fc0da0 100644 --- a/Chapter5/0_AL_On_Android/src/core/iIntrusivePtr.h +++ b/Chapter5/0_AL_On_Android/src/core/iIntrusivePtr.h @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.h - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2005 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _iIntrusivePtr_ diff --git a/Chapter5/0_AL_On_Android/src/core/iObject.h b/Chapter5/0_AL_On_Android/src/core/iObject.h index b55efba..78a982b 100644 --- a/Chapter5/0_AL_On_Android/src/core/iObject.h +++ b/Chapter5/0_AL_On_Android/src/core/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iObject_ #define _iObject_ diff --git a/Chapter5/0_AL_On_Android/src/fs/Archive.cpp b/Chapter5/0_AL_On_Android/src/fs/Archive.cpp index 156817d..020e26b 100644 --- a/Chapter5/0_AL_On_Android/src/fs/Archive.cpp +++ b/Chapter5/0_AL_On_Android/src/fs/Archive.cpp @@ -1,8 +1,35 @@ -/** - * \file Archive.cpp - * \brief Archive reader - * \author Viktor Latypov, 2011-2012 - * \author viktor@linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/Chapter5/0_AL_On_Android/src/fs/Archive.h b/Chapter5/0_AL_On_Android/src/fs/Archive.h index 32ef8c6..e38ea9a 100644 --- a/Chapter5/0_AL_On_Android/src/fs/Archive.h +++ b/Chapter5/0_AL_On_Android/src/fs/Archive.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __archive__h__included__ #define __archive__h__included__ diff --git a/Chapter5/0_AL_On_Android/src/fs/Blob.h b/Chapter5/0_AL_On_Android/src/fs/Blob.h index 4af6269..0a08f45 100644 --- a/Chapter5/0_AL_On_Android/src/fs/Blob.h +++ b/Chapter5/0_AL_On_Android/src/fs/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TheBlob__h__included__ #define __TheBlob__h__included__ diff --git a/Chapter5/0_AL_On_Android/src/fs/FileSystem.cpp b/Chapter5/0_AL_On_Android/src/fs/FileSystem.cpp index c4b3696..165ae98 100644 --- a/Chapter5/0_AL_On_Android/src/fs/FileSystem.cpp +++ b/Chapter5/0_AL_On_Android/src/fs/FileSystem.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FileSystem.h" #include "Files.h" #include "MountPoint.h" diff --git a/Chapter5/0_AL_On_Android/src/fs/FileSystem.h b/Chapter5/0_AL_On_Android/src/fs/FileSystem.h index 093b44e..933ea57 100644 --- a/Chapter5/0_AL_On_Android/src/fs/FileSystem.h +++ b/Chapter5/0_AL_On_Android/src/fs/FileSystem.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _FileSystem_ #define _FileSystem_ diff --git a/Chapter5/0_AL_On_Android/src/fs/Files.h b/Chapter5/0_AL_On_Android/src/fs/Files.h index f7e86be..528203a 100644 --- a/Chapter5/0_AL_On_Android/src/fs/Files.h +++ b/Chapter5/0_AL_On_Android/src/fs/Files.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Files__h__included__ #define __Files__h__included__ diff --git a/Chapter5/0_AL_On_Android/src/fs/MountPoint.h b/Chapter5/0_AL_On_Android/src/fs/MountPoint.h index f74ad44..0c6933b 100644 --- a/Chapter5/0_AL_On_Android/src/fs/MountPoint.h +++ b/Chapter5/0_AL_On_Android/src/fs/MountPoint.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __MountPoints__h__included__ #define __MountPoints__h__included__ diff --git a/Chapter5/0_AL_On_Android/src/fs/Streams.h b/Chapter5/0_AL_On_Android/src/fs/Streams.h index 47256b7..8086a43 100644 --- a/Chapter5/0_AL_On_Android/src/fs/Streams.h +++ b/Chapter5/0_AL_On_Android/src/fs/Streams.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iOStream_ #define _iOStream_ diff --git a/Chapter5/0_AL_On_Android/src/fs/zip_callback.cpp b/Chapter5/0_AL_On_Android/src/fs/zip_callback.cpp index 88c8f44..1fc8b36 100644 --- a/Chapter5/0_AL_On_Android/src/fs/zip_callback.cpp +++ b/Chapter5/0_AL_On_Android/src/fs/zip_callback.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + static voidpf ZCALLBACK zip_fopen ( voidpf opaque, const void* filename, int mode ) { ( ( iIStream* )opaque )->Seek( 0 ); diff --git a/Chapter5/0_AL_On_Android/src/threading/Event.cpp b/Chapter5/0_AL_On_Android/src/threading/Event.cpp index b443707..b9fcf35 100644 --- a/Chapter5/0_AL_On_Android/src/threading/Event.cpp +++ b/Chapter5/0_AL_On_Android/src/threading/Event.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Event.h" #include diff --git a/Chapter5/0_AL_On_Android/src/threading/Event.h b/Chapter5/0_AL_On_Android/src/threading/Event.h index 3a515dd..8db7f88 100644 --- a/Chapter5/0_AL_On_Android/src/threading/Event.h +++ b/Chapter5/0_AL_On_Android/src/threading/Event.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Event__h_ #define _Event__h_ diff --git a/Chapter5/0_AL_On_Android/src/threading/Mutex.h b/Chapter5/0_AL_On_Android/src/threading/Mutex.h index 259e6ff..f4f49bf 100644 --- a/Chapter5/0_AL_On_Android/src/threading/Mutex.h +++ b/Chapter5/0_AL_On_Android/src/threading/Mutex.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Mutex__h__included__ #define __Mutex__h__included__ diff --git a/Chapter5/0_AL_On_Android/src/threading/Thread.cpp b/Chapter5/0_AL_On_Android/src/threading/Thread.cpp index 27d9cd6..573f2a5 100644 --- a/Chapter5/0_AL_On_Android/src/threading/Thread.cpp +++ b/Chapter5/0_AL_On_Android/src/threading/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 @@ -103,8 +137,3 @@ native_thread_handle_t iThread::GetCurrentThread() return pthread_self(); #endif } - -/* - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter5/0_AL_On_Android/src/threading/Thread.h b/Chapter5/0_AL_On_Android/src/threading/Thread.h index bcf1b3e..ea185f8 100644 --- a/Chapter5/0_AL_On_Android/src/threading/Thread.h +++ b/Chapter5/0_AL_On_Android/src/threading/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ @@ -72,10 +96,3 @@ class iThread }; #endif - -/* - * 16/06/2010 - Linux port - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter5/0_AL_On_Android/src/threading/WorkerThread.cpp b/Chapter5/0_AL_On_Android/src/threading/WorkerThread.cpp index 2e69c72..1405ba9 100644 --- a/Chapter5/0_AL_On_Android/src/threading/WorkerThread.cpp +++ b/Chapter5/0_AL_On_Android/src/threading/WorkerThread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "WorkerThread.h" #include @@ -122,8 +156,3 @@ void WorkerThread::Run() FCurrentTask = NULL; } } - -/* - * 05/12/2012 - It's here -*/ diff --git a/Chapter5/0_AL_On_Android/src/threading/WorkerThread.h b/Chapter5/0_AL_On_Android/src/threading/WorkerThread.h index 2eea440..e82804b 100644 --- a/Chapter5/0_AL_On_Android/src/threading/WorkerThread.h +++ b/Chapter5/0_AL_On_Android/src/threading/WorkerThread.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _WorkerThread_ #define _WorkerThread_ diff --git a/Chapter5/1_AL_Abstraction/jni/Wrappers.cpp b/Chapter5/1_AL_Abstraction/jni/Wrappers.cpp index 05db014..c618038 100644 --- a/Chapter5/1_AL_Abstraction/jni/Wrappers.cpp +++ b/Chapter5/1_AL_Abstraction/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter5/1_AL_Abstraction/jni/WrappersJNI.c b/Chapter5/1_AL_Abstraction/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter5/1_AL_Abstraction/jni/WrappersJNI.c +++ b/Chapter5/1_AL_Abstraction/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter5/1_AL_Abstraction/main.cpp b/Chapter5/1_AL_Abstraction/main.cpp index f1a2a56..7b74857 100644 --- a/Chapter5/1_AL_Abstraction/main.cpp +++ b/Chapter5/1_AL_Abstraction/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Callbacks.h" #include "FileSystem.h" #include "Audio.h" diff --git a/Chapter5/1_AL_Abstraction/src/Rendering.cpp b/Chapter5/1_AL_Abstraction/src/Rendering.cpp index 662cf66..a91d12d 100644 --- a/Chapter5/1_AL_Abstraction/src/Rendering.cpp +++ b/Chapter5/1_AL_Abstraction/src/Rendering.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Rendering.h" const int Width = ImageWidth; diff --git a/Chapter5/1_AL_Abstraction/src/Rendering.h b/Chapter5/1_AL_Abstraction/src/Rendering.h index 9491a00..1ddb21d 100644 --- a/Chapter5/1_AL_Abstraction/src/Rendering.h +++ b/Chapter5/1_AL_Abstraction/src/Rendering.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Wrapper_Callbacks.h" diff --git a/Chapter5/1_AL_Abstraction/src/StrUtils.h b/Chapter5/1_AL_Abstraction/src/StrUtils.h index 9ad1243..488bd43 100644 --- a/Chapter5/1_AL_Abstraction/src/StrUtils.h +++ b/Chapter5/1_AL_Abstraction/src/StrUtils.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef StrUtils_h_ #define StrUtils_h_ diff --git a/Chapter5/1_AL_Abstraction/src/Wrapper_Android.h b/Chapter5/1_AL_Abstraction/src/Wrapper_Android.h index cde1310..02772d5 100644 --- a/Chapter5/1_AL_Abstraction/src/Wrapper_Android.h +++ b/Chapter5/1_AL_Abstraction/src/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter5/1_AL_Abstraction/src/Wrapper_Callbacks.h b/Chapter5/1_AL_Abstraction/src/Wrapper_Callbacks.h index 25c5f6c..daf4507 100644 --- a/Chapter5/1_AL_Abstraction/src/Wrapper_Callbacks.h +++ b/Chapter5/1_AL_Abstraction/src/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter5/1_AL_Abstraction/src/Wrapper_Windows.cpp b/Chapter5/1_AL_Abstraction/src/Wrapper_Windows.cpp index a1b9d0b..d08c761 100644 --- a/Chapter5/1_AL_Abstraction/src/Wrapper_Windows.cpp +++ b/Chapter5/1_AL_Abstraction/src/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Windows.h" HDC hMemDC; diff --git a/Chapter5/1_AL_Abstraction/src/Wrapper_Windows.h b/Chapter5/1_AL_Abstraction/src/Wrapper_Windows.h index 3ae7938..0ac96c2 100644 --- a/Chapter5/1_AL_Abstraction/src/Wrapper_Windows.h +++ b/Chapter5/1_AL_Abstraction/src/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter5/1_AL_Abstraction/src/com/packtpub/ndkcookbook/app9/App9Activity.java b/Chapter5/1_AL_Abstraction/src/com/packtpub/ndkcookbook/app9/App9Activity.java index 2e370fa..2af785b 100644 --- a/Chapter5/1_AL_Abstraction/src/com/packtpub/ndkcookbook/app9/App9Activity.java +++ b/Chapter5/1_AL_Abstraction/src/com/packtpub/ndkcookbook/app9/App9Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app9; import android.app.Activity; diff --git a/Chapter5/1_AL_Abstraction/src/core/Atomic.h b/Chapter5/1_AL_Abstraction/src/core/Atomic.h index 918ce68..6053ca0 100644 --- a/Chapter5/1_AL_Abstraction/src/core/Atomic.h +++ b/Chapter5/1_AL_Abstraction/src/core/Atomic.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Atomic_h_ #define _Atomic_h_ diff --git a/Chapter5/1_AL_Abstraction/src/core/iIntrusivePtr.cpp b/Chapter5/1_AL_Abstraction/src/core/iIntrusivePtr.cpp index ae6fac7..968b860 100644 --- a/Chapter5/1_AL_Abstraction/src/core/iIntrusivePtr.cpp +++ b/Chapter5/1_AL_Abstraction/src/core/iIntrusivePtr.cpp @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.cpp - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" diff --git a/Chapter5/1_AL_Abstraction/src/core/iIntrusivePtr.h b/Chapter5/1_AL_Abstraction/src/core/iIntrusivePtr.h index 6427ef0..2fc0da0 100644 --- a/Chapter5/1_AL_Abstraction/src/core/iIntrusivePtr.h +++ b/Chapter5/1_AL_Abstraction/src/core/iIntrusivePtr.h @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.h - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2005 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _iIntrusivePtr_ diff --git a/Chapter5/1_AL_Abstraction/src/core/iObject.h b/Chapter5/1_AL_Abstraction/src/core/iObject.h index b55efba..78a982b 100644 --- a/Chapter5/1_AL_Abstraction/src/core/iObject.h +++ b/Chapter5/1_AL_Abstraction/src/core/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iObject_ #define _iObject_ diff --git a/Chapter5/1_AL_Abstraction/src/fs/Archive.cpp b/Chapter5/1_AL_Abstraction/src/fs/Archive.cpp index 156817d..020e26b 100644 --- a/Chapter5/1_AL_Abstraction/src/fs/Archive.cpp +++ b/Chapter5/1_AL_Abstraction/src/fs/Archive.cpp @@ -1,8 +1,35 @@ -/** - * \file Archive.cpp - * \brief Archive reader - * \author Viktor Latypov, 2011-2012 - * \author viktor@linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/Chapter5/1_AL_Abstraction/src/fs/Archive.h b/Chapter5/1_AL_Abstraction/src/fs/Archive.h index 32ef8c6..e38ea9a 100644 --- a/Chapter5/1_AL_Abstraction/src/fs/Archive.h +++ b/Chapter5/1_AL_Abstraction/src/fs/Archive.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __archive__h__included__ #define __archive__h__included__ diff --git a/Chapter5/1_AL_Abstraction/src/fs/Blob.h b/Chapter5/1_AL_Abstraction/src/fs/Blob.h index 4af6269..0a08f45 100644 --- a/Chapter5/1_AL_Abstraction/src/fs/Blob.h +++ b/Chapter5/1_AL_Abstraction/src/fs/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TheBlob__h__included__ #define __TheBlob__h__included__ diff --git a/Chapter5/1_AL_Abstraction/src/fs/FileSystem.cpp b/Chapter5/1_AL_Abstraction/src/fs/FileSystem.cpp index c4b3696..165ae98 100644 --- a/Chapter5/1_AL_Abstraction/src/fs/FileSystem.cpp +++ b/Chapter5/1_AL_Abstraction/src/fs/FileSystem.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FileSystem.h" #include "Files.h" #include "MountPoint.h" diff --git a/Chapter5/1_AL_Abstraction/src/fs/FileSystem.h b/Chapter5/1_AL_Abstraction/src/fs/FileSystem.h index 093b44e..933ea57 100644 --- a/Chapter5/1_AL_Abstraction/src/fs/FileSystem.h +++ b/Chapter5/1_AL_Abstraction/src/fs/FileSystem.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _FileSystem_ #define _FileSystem_ diff --git a/Chapter5/1_AL_Abstraction/src/fs/Files.h b/Chapter5/1_AL_Abstraction/src/fs/Files.h index f7e86be..528203a 100644 --- a/Chapter5/1_AL_Abstraction/src/fs/Files.h +++ b/Chapter5/1_AL_Abstraction/src/fs/Files.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Files__h__included__ #define __Files__h__included__ diff --git a/Chapter5/1_AL_Abstraction/src/fs/MountPoint.h b/Chapter5/1_AL_Abstraction/src/fs/MountPoint.h index f74ad44..0c6933b 100644 --- a/Chapter5/1_AL_Abstraction/src/fs/MountPoint.h +++ b/Chapter5/1_AL_Abstraction/src/fs/MountPoint.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __MountPoints__h__included__ #define __MountPoints__h__included__ diff --git a/Chapter5/1_AL_Abstraction/src/fs/Streams.h b/Chapter5/1_AL_Abstraction/src/fs/Streams.h index 47256b7..8086a43 100644 --- a/Chapter5/1_AL_Abstraction/src/fs/Streams.h +++ b/Chapter5/1_AL_Abstraction/src/fs/Streams.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iOStream_ #define _iOStream_ diff --git a/Chapter5/1_AL_Abstraction/src/fs/zip_callback.cpp b/Chapter5/1_AL_Abstraction/src/fs/zip_callback.cpp index 88c8f44..1fc8b36 100644 --- a/Chapter5/1_AL_Abstraction/src/fs/zip_callback.cpp +++ b/Chapter5/1_AL_Abstraction/src/fs/zip_callback.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + static voidpf ZCALLBACK zip_fopen ( voidpf opaque, const void* filename, int mode ) { ( ( iIStream* )opaque )->Seek( 0 ); diff --git a/Chapter5/1_AL_Abstraction/src/sound/Audio.h b/Chapter5/1_AL_Abstraction/src/sound/Audio.h index 13e71e5..9f6326a 100644 --- a/Chapter5/1_AL_Abstraction/src/sound/Audio.h +++ b/Chapter5/1_AL_Abstraction/src/sound/Audio.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "LAL.h" diff --git a/Chapter5/1_AL_Abstraction/src/sound/WAV.h b/Chapter5/1_AL_Abstraction/src/sound/WAV.h index b5389eb..5d7d0d6 100644 --- a/Chapter5/1_AL_Abstraction/src/sound/WAV.h +++ b/Chapter5/1_AL_Abstraction/src/sound/WAV.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __WAV_inl__ #define __WAV_inl__ diff --git a/Chapter5/1_AL_Abstraction/src/threading/Event.cpp b/Chapter5/1_AL_Abstraction/src/threading/Event.cpp index b443707..b9fcf35 100644 --- a/Chapter5/1_AL_Abstraction/src/threading/Event.cpp +++ b/Chapter5/1_AL_Abstraction/src/threading/Event.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Event.h" #include diff --git a/Chapter5/1_AL_Abstraction/src/threading/Event.h b/Chapter5/1_AL_Abstraction/src/threading/Event.h index 3a515dd..8db7f88 100644 --- a/Chapter5/1_AL_Abstraction/src/threading/Event.h +++ b/Chapter5/1_AL_Abstraction/src/threading/Event.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Event__h_ #define _Event__h_ diff --git a/Chapter5/1_AL_Abstraction/src/threading/Mutex.h b/Chapter5/1_AL_Abstraction/src/threading/Mutex.h index 259e6ff..f4f49bf 100644 --- a/Chapter5/1_AL_Abstraction/src/threading/Mutex.h +++ b/Chapter5/1_AL_Abstraction/src/threading/Mutex.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Mutex__h__included__ #define __Mutex__h__included__ diff --git a/Chapter5/1_AL_Abstraction/src/threading/Thread.cpp b/Chapter5/1_AL_Abstraction/src/threading/Thread.cpp index 27d9cd6..573f2a5 100644 --- a/Chapter5/1_AL_Abstraction/src/threading/Thread.cpp +++ b/Chapter5/1_AL_Abstraction/src/threading/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 @@ -103,8 +137,3 @@ native_thread_handle_t iThread::GetCurrentThread() return pthread_self(); #endif } - -/* - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter5/1_AL_Abstraction/src/threading/Thread.h b/Chapter5/1_AL_Abstraction/src/threading/Thread.h index bcf1b3e..ea185f8 100644 --- a/Chapter5/1_AL_Abstraction/src/threading/Thread.h +++ b/Chapter5/1_AL_Abstraction/src/threading/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ @@ -72,10 +96,3 @@ class iThread }; #endif - -/* - * 16/06/2010 - Linux port - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter5/1_AL_Abstraction/src/threading/WorkerThread.cpp b/Chapter5/1_AL_Abstraction/src/threading/WorkerThread.cpp index 2e69c72..1405ba9 100644 --- a/Chapter5/1_AL_Abstraction/src/threading/WorkerThread.cpp +++ b/Chapter5/1_AL_Abstraction/src/threading/WorkerThread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "WorkerThread.h" #include @@ -122,8 +156,3 @@ void WorkerThread::Run() FCurrentTask = NULL; } } - -/* - * 05/12/2012 - It's here -*/ diff --git a/Chapter5/1_AL_Abstraction/src/threading/WorkerThread.h b/Chapter5/1_AL_Abstraction/src/threading/WorkerThread.h index 2eea440..e82804b 100644 --- a/Chapter5/1_AL_Abstraction/src/threading/WorkerThread.h +++ b/Chapter5/1_AL_Abstraction/src/threading/WorkerThread.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _WorkerThread_ #define _WorkerThread_ diff --git a/Chapter5/2_AL_Streaming/jni/Wrappers.cpp b/Chapter5/2_AL_Streaming/jni/Wrappers.cpp index 971a225..eb43c9d 100644 --- a/Chapter5/2_AL_Streaming/jni/Wrappers.cpp +++ b/Chapter5/2_AL_Streaming/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter5/2_AL_Streaming/jni/WrappersJNI.c b/Chapter5/2_AL_Streaming/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter5/2_AL_Streaming/jni/WrappersJNI.c +++ b/Chapter5/2_AL_Streaming/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter5/2_AL_Streaming/main.cpp b/Chapter5/2_AL_Streaming/main.cpp index 74c7e8f..9c62ec2 100644 --- a/Chapter5/2_AL_Streaming/main.cpp +++ b/Chapter5/2_AL_Streaming/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Callbacks.h" #include "FileSystem.h" #include "Audio.h" diff --git a/Chapter5/2_AL_Streaming/src/Rendering.cpp b/Chapter5/2_AL_Streaming/src/Rendering.cpp index 662cf66..a91d12d 100644 --- a/Chapter5/2_AL_Streaming/src/Rendering.cpp +++ b/Chapter5/2_AL_Streaming/src/Rendering.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Rendering.h" const int Width = ImageWidth; diff --git a/Chapter5/2_AL_Streaming/src/Rendering.h b/Chapter5/2_AL_Streaming/src/Rendering.h index 9491a00..1ddb21d 100644 --- a/Chapter5/2_AL_Streaming/src/Rendering.h +++ b/Chapter5/2_AL_Streaming/src/Rendering.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Wrapper_Callbacks.h" diff --git a/Chapter5/2_AL_Streaming/src/StrUtils.h b/Chapter5/2_AL_Streaming/src/StrUtils.h index 9ad1243..488bd43 100644 --- a/Chapter5/2_AL_Streaming/src/StrUtils.h +++ b/Chapter5/2_AL_Streaming/src/StrUtils.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef StrUtils_h_ #define StrUtils_h_ diff --git a/Chapter5/2_AL_Streaming/src/Wrapper_Android.h b/Chapter5/2_AL_Streaming/src/Wrapper_Android.h index 0ab71bd..b3d2932 100644 --- a/Chapter5/2_AL_Streaming/src/Wrapper_Android.h +++ b/Chapter5/2_AL_Streaming/src/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter5/2_AL_Streaming/src/Wrapper_Callbacks.h b/Chapter5/2_AL_Streaming/src/Wrapper_Callbacks.h index 25c5f6c..daf4507 100644 --- a/Chapter5/2_AL_Streaming/src/Wrapper_Callbacks.h +++ b/Chapter5/2_AL_Streaming/src/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter5/2_AL_Streaming/src/Wrapper_Windows.cpp b/Chapter5/2_AL_Streaming/src/Wrapper_Windows.cpp index 1695f8e..08b2e11 100644 --- a/Chapter5/2_AL_Streaming/src/Wrapper_Windows.cpp +++ b/Chapter5/2_AL_Streaming/src/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Windows.h" HDC hMemDC; diff --git a/Chapter5/2_AL_Streaming/src/Wrapper_Windows.h b/Chapter5/2_AL_Streaming/src/Wrapper_Windows.h index 3ae7938..0ac96c2 100644 --- a/Chapter5/2_AL_Streaming/src/Wrapper_Windows.h +++ b/Chapter5/2_AL_Streaming/src/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter5/2_AL_Streaming/src/com/packtpub/ndkcookbook/app10/App10Activity.java b/Chapter5/2_AL_Streaming/src/com/packtpub/ndkcookbook/app10/App10Activity.java index ba7362f..c1fb41f 100644 --- a/Chapter5/2_AL_Streaming/src/com/packtpub/ndkcookbook/app10/App10Activity.java +++ b/Chapter5/2_AL_Streaming/src/com/packtpub/ndkcookbook/app10/App10Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app10; import android.app.Activity; diff --git a/Chapter5/2_AL_Streaming/src/core/Atomic.h b/Chapter5/2_AL_Streaming/src/core/Atomic.h index 918ce68..6053ca0 100644 --- a/Chapter5/2_AL_Streaming/src/core/Atomic.h +++ b/Chapter5/2_AL_Streaming/src/core/Atomic.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Atomic_h_ #define _Atomic_h_ diff --git a/Chapter5/2_AL_Streaming/src/core/iIntrusivePtr.cpp b/Chapter5/2_AL_Streaming/src/core/iIntrusivePtr.cpp index ae6fac7..968b860 100644 --- a/Chapter5/2_AL_Streaming/src/core/iIntrusivePtr.cpp +++ b/Chapter5/2_AL_Streaming/src/core/iIntrusivePtr.cpp @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.cpp - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" diff --git a/Chapter5/2_AL_Streaming/src/core/iIntrusivePtr.h b/Chapter5/2_AL_Streaming/src/core/iIntrusivePtr.h index 6427ef0..2fc0da0 100644 --- a/Chapter5/2_AL_Streaming/src/core/iIntrusivePtr.h +++ b/Chapter5/2_AL_Streaming/src/core/iIntrusivePtr.h @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.h - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2005 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _iIntrusivePtr_ diff --git a/Chapter5/2_AL_Streaming/src/core/iObject.h b/Chapter5/2_AL_Streaming/src/core/iObject.h index b55efba..78a982b 100644 --- a/Chapter5/2_AL_Streaming/src/core/iObject.h +++ b/Chapter5/2_AL_Streaming/src/core/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iObject_ #define _iObject_ diff --git a/Chapter5/2_AL_Streaming/src/fs/Archive.cpp b/Chapter5/2_AL_Streaming/src/fs/Archive.cpp index 156817d..020e26b 100644 --- a/Chapter5/2_AL_Streaming/src/fs/Archive.cpp +++ b/Chapter5/2_AL_Streaming/src/fs/Archive.cpp @@ -1,8 +1,35 @@ -/** - * \file Archive.cpp - * \brief Archive reader - * \author Viktor Latypov, 2011-2012 - * \author viktor@linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/Chapter5/2_AL_Streaming/src/fs/Archive.h b/Chapter5/2_AL_Streaming/src/fs/Archive.h index 32ef8c6..e38ea9a 100644 --- a/Chapter5/2_AL_Streaming/src/fs/Archive.h +++ b/Chapter5/2_AL_Streaming/src/fs/Archive.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __archive__h__included__ #define __archive__h__included__ diff --git a/Chapter5/2_AL_Streaming/src/fs/Blob.h b/Chapter5/2_AL_Streaming/src/fs/Blob.h index 4af6269..0a08f45 100644 --- a/Chapter5/2_AL_Streaming/src/fs/Blob.h +++ b/Chapter5/2_AL_Streaming/src/fs/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TheBlob__h__included__ #define __TheBlob__h__included__ diff --git a/Chapter5/2_AL_Streaming/src/fs/FileSystem.cpp b/Chapter5/2_AL_Streaming/src/fs/FileSystem.cpp index c4b3696..165ae98 100644 --- a/Chapter5/2_AL_Streaming/src/fs/FileSystem.cpp +++ b/Chapter5/2_AL_Streaming/src/fs/FileSystem.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FileSystem.h" #include "Files.h" #include "MountPoint.h" diff --git a/Chapter5/2_AL_Streaming/src/fs/FileSystem.h b/Chapter5/2_AL_Streaming/src/fs/FileSystem.h index 093b44e..933ea57 100644 --- a/Chapter5/2_AL_Streaming/src/fs/FileSystem.h +++ b/Chapter5/2_AL_Streaming/src/fs/FileSystem.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _FileSystem_ #define _FileSystem_ diff --git a/Chapter5/2_AL_Streaming/src/fs/Files.h b/Chapter5/2_AL_Streaming/src/fs/Files.h index f7e86be..528203a 100644 --- a/Chapter5/2_AL_Streaming/src/fs/Files.h +++ b/Chapter5/2_AL_Streaming/src/fs/Files.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Files__h__included__ #define __Files__h__included__ diff --git a/Chapter5/2_AL_Streaming/src/fs/MountPoint.h b/Chapter5/2_AL_Streaming/src/fs/MountPoint.h index f74ad44..0c6933b 100644 --- a/Chapter5/2_AL_Streaming/src/fs/MountPoint.h +++ b/Chapter5/2_AL_Streaming/src/fs/MountPoint.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __MountPoints__h__included__ #define __MountPoints__h__included__ diff --git a/Chapter5/2_AL_Streaming/src/fs/Streams.h b/Chapter5/2_AL_Streaming/src/fs/Streams.h index 47256b7..8086a43 100644 --- a/Chapter5/2_AL_Streaming/src/fs/Streams.h +++ b/Chapter5/2_AL_Streaming/src/fs/Streams.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iOStream_ #define _iOStream_ diff --git a/Chapter5/2_AL_Streaming/src/fs/zip_callback.cpp b/Chapter5/2_AL_Streaming/src/fs/zip_callback.cpp index 88c8f44..1fc8b36 100644 --- a/Chapter5/2_AL_Streaming/src/fs/zip_callback.cpp +++ b/Chapter5/2_AL_Streaming/src/fs/zip_callback.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + static voidpf ZCALLBACK zip_fopen ( voidpf opaque, const void* filename, int mode ) { ( ( iIStream* )opaque )->Seek( 0 ); diff --git a/Chapter5/2_AL_Streaming/src/sound/Audio.h b/Chapter5/2_AL_Streaming/src/sound/Audio.h index 9c1acd3..ab8a34e 100644 --- a/Chapter5/2_AL_Streaming/src/sound/Audio.h +++ b/Chapter5/2_AL_Streaming/src/sound/Audio.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "LAL.h" diff --git a/Chapter5/2_AL_Streaming/src/sound/StreamingProviders.h b/Chapter5/2_AL_Streaming/src/sound/StreamingProviders.h index 3e7cf19..786b60d 100644 --- a/Chapter5/2_AL_Streaming/src/sound/StreamingProviders.h +++ b/Chapter5/2_AL_Streaming/src/sound/StreamingProviders.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Audio.h" diff --git a/Chapter5/2_AL_Streaming/src/sound/ToneGenerator.h b/Chapter5/2_AL_Streaming/src/sound/ToneGenerator.h index 96e1ed4..787bf93 100644 --- a/Chapter5/2_AL_Streaming/src/sound/ToneGenerator.h +++ b/Chapter5/2_AL_Streaming/src/sound/ToneGenerator.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "StreamingProviders.h" diff --git a/Chapter5/2_AL_Streaming/src/threading/Event.cpp b/Chapter5/2_AL_Streaming/src/threading/Event.cpp index b443707..b9fcf35 100644 --- a/Chapter5/2_AL_Streaming/src/threading/Event.cpp +++ b/Chapter5/2_AL_Streaming/src/threading/Event.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Event.h" #include diff --git a/Chapter5/2_AL_Streaming/src/threading/Event.h b/Chapter5/2_AL_Streaming/src/threading/Event.h index 3a515dd..8db7f88 100644 --- a/Chapter5/2_AL_Streaming/src/threading/Event.h +++ b/Chapter5/2_AL_Streaming/src/threading/Event.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Event__h_ #define _Event__h_ diff --git a/Chapter5/2_AL_Streaming/src/threading/Mutex.h b/Chapter5/2_AL_Streaming/src/threading/Mutex.h index 259e6ff..f4f49bf 100644 --- a/Chapter5/2_AL_Streaming/src/threading/Mutex.h +++ b/Chapter5/2_AL_Streaming/src/threading/Mutex.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Mutex__h__included__ #define __Mutex__h__included__ diff --git a/Chapter5/2_AL_Streaming/src/threading/Thread.cpp b/Chapter5/2_AL_Streaming/src/threading/Thread.cpp index 27d9cd6..573f2a5 100644 --- a/Chapter5/2_AL_Streaming/src/threading/Thread.cpp +++ b/Chapter5/2_AL_Streaming/src/threading/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 @@ -103,8 +137,3 @@ native_thread_handle_t iThread::GetCurrentThread() return pthread_self(); #endif } - -/* - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter5/2_AL_Streaming/src/threading/Thread.h b/Chapter5/2_AL_Streaming/src/threading/Thread.h index bcf1b3e..ea185f8 100644 --- a/Chapter5/2_AL_Streaming/src/threading/Thread.h +++ b/Chapter5/2_AL_Streaming/src/threading/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ @@ -72,10 +96,3 @@ class iThread }; #endif - -/* - * 16/06/2010 - Linux port - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter5/2_AL_Streaming/src/threading/WorkerThread.cpp b/Chapter5/2_AL_Streaming/src/threading/WorkerThread.cpp index 2e69c72..1405ba9 100644 --- a/Chapter5/2_AL_Streaming/src/threading/WorkerThread.cpp +++ b/Chapter5/2_AL_Streaming/src/threading/WorkerThread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "WorkerThread.h" #include @@ -122,8 +156,3 @@ void WorkerThread::Run() FCurrentTask = NULL; } } - -/* - * 05/12/2012 - It's here -*/ diff --git a/Chapter5/2_AL_Streaming/src/threading/WorkerThread.h b/Chapter5/2_AL_Streaming/src/threading/WorkerThread.h index 2eea440..e82804b 100644 --- a/Chapter5/2_AL_Streaming/src/threading/WorkerThread.h +++ b/Chapter5/2_AL_Streaming/src/threading/WorkerThread.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _WorkerThread_ #define _WorkerThread_ diff --git a/Chapter5/3_AL_PlayingOGG/jni/Wrappers.cpp b/Chapter5/3_AL_PlayingOGG/jni/Wrappers.cpp index e3055e3..f0654fd 100644 --- a/Chapter5/3_AL_PlayingOGG/jni/Wrappers.cpp +++ b/Chapter5/3_AL_PlayingOGG/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter5/3_AL_PlayingOGG/jni/WrappersJNI.c b/Chapter5/3_AL_PlayingOGG/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter5/3_AL_PlayingOGG/jni/WrappersJNI.c +++ b/Chapter5/3_AL_PlayingOGG/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter5/3_AL_PlayingOGG/main.cpp b/Chapter5/3_AL_PlayingOGG/main.cpp index ec736ee..6b5929d 100644 --- a/Chapter5/3_AL_PlayingOGG/main.cpp +++ b/Chapter5/3_AL_PlayingOGG/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Callbacks.h" #include "FileSystem.h" #include "Audio.h" diff --git a/Chapter5/3_AL_PlayingOGG/src/Rendering.cpp b/Chapter5/3_AL_PlayingOGG/src/Rendering.cpp index 662cf66..a91d12d 100644 --- a/Chapter5/3_AL_PlayingOGG/src/Rendering.cpp +++ b/Chapter5/3_AL_PlayingOGG/src/Rendering.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Rendering.h" const int Width = ImageWidth; diff --git a/Chapter5/3_AL_PlayingOGG/src/Rendering.h b/Chapter5/3_AL_PlayingOGG/src/Rendering.h index 9491a00..1ddb21d 100644 --- a/Chapter5/3_AL_PlayingOGG/src/Rendering.h +++ b/Chapter5/3_AL_PlayingOGG/src/Rendering.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Wrapper_Callbacks.h" diff --git a/Chapter5/3_AL_PlayingOGG/src/StrUtils.h b/Chapter5/3_AL_PlayingOGG/src/StrUtils.h index 9ad1243..488bd43 100644 --- a/Chapter5/3_AL_PlayingOGG/src/StrUtils.h +++ b/Chapter5/3_AL_PlayingOGG/src/StrUtils.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef StrUtils_h_ #define StrUtils_h_ diff --git a/Chapter5/3_AL_PlayingOGG/src/Wrapper_Android.h b/Chapter5/3_AL_PlayingOGG/src/Wrapper_Android.h index e976220..06f828e 100644 --- a/Chapter5/3_AL_PlayingOGG/src/Wrapper_Android.h +++ b/Chapter5/3_AL_PlayingOGG/src/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter5/3_AL_PlayingOGG/src/Wrapper_Callbacks.h b/Chapter5/3_AL_PlayingOGG/src/Wrapper_Callbacks.h index 25c5f6c..daf4507 100644 --- a/Chapter5/3_AL_PlayingOGG/src/Wrapper_Callbacks.h +++ b/Chapter5/3_AL_PlayingOGG/src/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter5/3_AL_PlayingOGG/src/Wrapper_Windows.cpp b/Chapter5/3_AL_PlayingOGG/src/Wrapper_Windows.cpp index d9f6a1e..4b76529 100644 --- a/Chapter5/3_AL_PlayingOGG/src/Wrapper_Windows.cpp +++ b/Chapter5/3_AL_PlayingOGG/src/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Windows.h" HDC hMemDC; diff --git a/Chapter5/3_AL_PlayingOGG/src/Wrapper_Windows.h b/Chapter5/3_AL_PlayingOGG/src/Wrapper_Windows.h index 3ae7938..0ac96c2 100644 --- a/Chapter5/3_AL_PlayingOGG/src/Wrapper_Windows.h +++ b/Chapter5/3_AL_PlayingOGG/src/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter5/3_AL_PlayingOGG/src/com/packtpub/ndkcookbook/app11/App11Activity.java b/Chapter5/3_AL_PlayingOGG/src/com/packtpub/ndkcookbook/app11/App11Activity.java index b41f426..4061a67 100644 --- a/Chapter5/3_AL_PlayingOGG/src/com/packtpub/ndkcookbook/app11/App11Activity.java +++ b/Chapter5/3_AL_PlayingOGG/src/com/packtpub/ndkcookbook/app11/App11Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app11; import android.app.Activity; diff --git a/Chapter5/3_AL_PlayingOGG/src/core/Atomic.h b/Chapter5/3_AL_PlayingOGG/src/core/Atomic.h index 918ce68..6053ca0 100644 --- a/Chapter5/3_AL_PlayingOGG/src/core/Atomic.h +++ b/Chapter5/3_AL_PlayingOGG/src/core/Atomic.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Atomic_h_ #define _Atomic_h_ diff --git a/Chapter5/3_AL_PlayingOGG/src/core/iIntrusivePtr.cpp b/Chapter5/3_AL_PlayingOGG/src/core/iIntrusivePtr.cpp index ae6fac7..968b860 100644 --- a/Chapter5/3_AL_PlayingOGG/src/core/iIntrusivePtr.cpp +++ b/Chapter5/3_AL_PlayingOGG/src/core/iIntrusivePtr.cpp @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.cpp - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" diff --git a/Chapter5/3_AL_PlayingOGG/src/core/iIntrusivePtr.h b/Chapter5/3_AL_PlayingOGG/src/core/iIntrusivePtr.h index 6427ef0..2fc0da0 100644 --- a/Chapter5/3_AL_PlayingOGG/src/core/iIntrusivePtr.h +++ b/Chapter5/3_AL_PlayingOGG/src/core/iIntrusivePtr.h @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.h - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2005 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _iIntrusivePtr_ diff --git a/Chapter5/3_AL_PlayingOGG/src/core/iObject.h b/Chapter5/3_AL_PlayingOGG/src/core/iObject.h index b55efba..78a982b 100644 --- a/Chapter5/3_AL_PlayingOGG/src/core/iObject.h +++ b/Chapter5/3_AL_PlayingOGG/src/core/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iObject_ #define _iObject_ diff --git a/Chapter5/3_AL_PlayingOGG/src/fs/Archive.cpp b/Chapter5/3_AL_PlayingOGG/src/fs/Archive.cpp index 156817d..020e26b 100644 --- a/Chapter5/3_AL_PlayingOGG/src/fs/Archive.cpp +++ b/Chapter5/3_AL_PlayingOGG/src/fs/Archive.cpp @@ -1,8 +1,35 @@ -/** - * \file Archive.cpp - * \brief Archive reader - * \author Viktor Latypov, 2011-2012 - * \author viktor@linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/Chapter5/3_AL_PlayingOGG/src/fs/Archive.h b/Chapter5/3_AL_PlayingOGG/src/fs/Archive.h index 32ef8c6..e38ea9a 100644 --- a/Chapter5/3_AL_PlayingOGG/src/fs/Archive.h +++ b/Chapter5/3_AL_PlayingOGG/src/fs/Archive.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __archive__h__included__ #define __archive__h__included__ diff --git a/Chapter5/3_AL_PlayingOGG/src/fs/Blob.h b/Chapter5/3_AL_PlayingOGG/src/fs/Blob.h index 4af6269..0a08f45 100644 --- a/Chapter5/3_AL_PlayingOGG/src/fs/Blob.h +++ b/Chapter5/3_AL_PlayingOGG/src/fs/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TheBlob__h__included__ #define __TheBlob__h__included__ diff --git a/Chapter5/3_AL_PlayingOGG/src/fs/FileSystem.cpp b/Chapter5/3_AL_PlayingOGG/src/fs/FileSystem.cpp index c4b3696..165ae98 100644 --- a/Chapter5/3_AL_PlayingOGG/src/fs/FileSystem.cpp +++ b/Chapter5/3_AL_PlayingOGG/src/fs/FileSystem.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FileSystem.h" #include "Files.h" #include "MountPoint.h" diff --git a/Chapter5/3_AL_PlayingOGG/src/fs/FileSystem.h b/Chapter5/3_AL_PlayingOGG/src/fs/FileSystem.h index 093b44e..933ea57 100644 --- a/Chapter5/3_AL_PlayingOGG/src/fs/FileSystem.h +++ b/Chapter5/3_AL_PlayingOGG/src/fs/FileSystem.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _FileSystem_ #define _FileSystem_ diff --git a/Chapter5/3_AL_PlayingOGG/src/fs/Files.h b/Chapter5/3_AL_PlayingOGG/src/fs/Files.h index f7e86be..528203a 100644 --- a/Chapter5/3_AL_PlayingOGG/src/fs/Files.h +++ b/Chapter5/3_AL_PlayingOGG/src/fs/Files.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Files__h__included__ #define __Files__h__included__ diff --git a/Chapter5/3_AL_PlayingOGG/src/fs/MountPoint.h b/Chapter5/3_AL_PlayingOGG/src/fs/MountPoint.h index f74ad44..0c6933b 100644 --- a/Chapter5/3_AL_PlayingOGG/src/fs/MountPoint.h +++ b/Chapter5/3_AL_PlayingOGG/src/fs/MountPoint.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __MountPoints__h__included__ #define __MountPoints__h__included__ diff --git a/Chapter5/3_AL_PlayingOGG/src/fs/Streams.h b/Chapter5/3_AL_PlayingOGG/src/fs/Streams.h index 47256b7..8086a43 100644 --- a/Chapter5/3_AL_PlayingOGG/src/fs/Streams.h +++ b/Chapter5/3_AL_PlayingOGG/src/fs/Streams.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iOStream_ #define _iOStream_ diff --git a/Chapter5/3_AL_PlayingOGG/src/fs/zip_callback.cpp b/Chapter5/3_AL_PlayingOGG/src/fs/zip_callback.cpp index 88c8f44..1fc8b36 100644 --- a/Chapter5/3_AL_PlayingOGG/src/fs/zip_callback.cpp +++ b/Chapter5/3_AL_PlayingOGG/src/fs/zip_callback.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + static voidpf ZCALLBACK zip_fopen ( voidpf opaque, const void* filename, int mode ) { ( ( iIStream* )opaque )->Seek( 0 ); diff --git a/Chapter5/3_AL_PlayingOGG/src/sound/Audio.h b/Chapter5/3_AL_PlayingOGG/src/sound/Audio.h index edd0437..2e5285b 100644 --- a/Chapter5/3_AL_PlayingOGG/src/sound/Audio.h +++ b/Chapter5/3_AL_PlayingOGG/src/sound/Audio.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "LAL.h" diff --git a/Chapter5/3_AL_PlayingOGG/src/sound/Decoders.cpp b/Chapter5/3_AL_PlayingOGG/src/sound/Decoders.cpp index b44c4c0..ebe44db 100644 --- a/Chapter5/3_AL_PlayingOGG/src/sound/Decoders.cpp +++ b/Chapter5/3_AL_PlayingOGG/src/sound/Decoders.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Decoders.h" #if defined(ANDROID) diff --git a/Chapter5/3_AL_PlayingOGG/src/sound/Decoders.h b/Chapter5/3_AL_PlayingOGG/src/sound/Decoders.h index 7ccecd1..a90427f 100644 --- a/Chapter5/3_AL_PlayingOGG/src/sound/Decoders.h +++ b/Chapter5/3_AL_PlayingOGG/src/sound/Decoders.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __OGG_inl__ #define __OGG_inl__ diff --git a/Chapter5/3_AL_PlayingOGG/src/sound/DecodingProvider.h b/Chapter5/3_AL_PlayingOGG/src/sound/DecodingProvider.h index 2d016f1..e6cb98e 100644 --- a/Chapter5/3_AL_PlayingOGG/src/sound/DecodingProvider.h +++ b/Chapter5/3_AL_PlayingOGG/src/sound/DecodingProvider.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "StreamingProviders.h" diff --git a/Chapter5/3_AL_PlayingOGG/src/sound/MOD.h b/Chapter5/3_AL_PlayingOGG/src/sound/MOD.h index 27b9e6b..2a2f557 100644 --- a/Chapter5/3_AL_PlayingOGG/src/sound/MOD.h +++ b/Chapter5/3_AL_PlayingOGG/src/sound/MOD.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Decoders.h" diff --git a/Chapter5/3_AL_PlayingOGG/src/sound/OGG.h b/Chapter5/3_AL_PlayingOGG/src/sound/OGG.h index 511f1a6..4c9c1ab 100644 --- a/Chapter5/3_AL_PlayingOGG/src/sound/OGG.h +++ b/Chapter5/3_AL_PlayingOGG/src/sound/OGG.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Decoders.h" diff --git a/Chapter5/3_AL_PlayingOGG/src/sound/OGG_Callbacks.h b/Chapter5/3_AL_PlayingOGG/src/sound/OGG_Callbacks.h index fbc044e..cb80494 100644 --- a/Chapter5/3_AL_PlayingOGG/src/sound/OGG_Callbacks.h +++ b/Chapter5/3_AL_PlayingOGG/src/sound/OGG_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + static size_t OGG_ReadFunc( void* Ptr, size_t Size, size_t NMemB, void* DataSource ) { OggProvider* OGG = static_cast( DataSource ); diff --git a/Chapter5/3_AL_PlayingOGG/src/sound/StreamingProviders.h b/Chapter5/3_AL_PlayingOGG/src/sound/StreamingProviders.h index 3e7cf19..786b60d 100644 --- a/Chapter5/3_AL_PlayingOGG/src/sound/StreamingProviders.h +++ b/Chapter5/3_AL_PlayingOGG/src/sound/StreamingProviders.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Audio.h" diff --git a/Chapter5/3_AL_PlayingOGG/src/threading/Event.cpp b/Chapter5/3_AL_PlayingOGG/src/threading/Event.cpp index b443707..b9fcf35 100644 --- a/Chapter5/3_AL_PlayingOGG/src/threading/Event.cpp +++ b/Chapter5/3_AL_PlayingOGG/src/threading/Event.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Event.h" #include diff --git a/Chapter5/3_AL_PlayingOGG/src/threading/Event.h b/Chapter5/3_AL_PlayingOGG/src/threading/Event.h index 3a515dd..8db7f88 100644 --- a/Chapter5/3_AL_PlayingOGG/src/threading/Event.h +++ b/Chapter5/3_AL_PlayingOGG/src/threading/Event.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Event__h_ #define _Event__h_ diff --git a/Chapter5/3_AL_PlayingOGG/src/threading/Mutex.h b/Chapter5/3_AL_PlayingOGG/src/threading/Mutex.h index 259e6ff..f4f49bf 100644 --- a/Chapter5/3_AL_PlayingOGG/src/threading/Mutex.h +++ b/Chapter5/3_AL_PlayingOGG/src/threading/Mutex.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Mutex__h__included__ #define __Mutex__h__included__ diff --git a/Chapter5/3_AL_PlayingOGG/src/threading/Thread.cpp b/Chapter5/3_AL_PlayingOGG/src/threading/Thread.cpp index 27d9cd6..573f2a5 100644 --- a/Chapter5/3_AL_PlayingOGG/src/threading/Thread.cpp +++ b/Chapter5/3_AL_PlayingOGG/src/threading/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 @@ -103,8 +137,3 @@ native_thread_handle_t iThread::GetCurrentThread() return pthread_self(); #endif } - -/* - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter5/3_AL_PlayingOGG/src/threading/Thread.h b/Chapter5/3_AL_PlayingOGG/src/threading/Thread.h index bcf1b3e..ea185f8 100644 --- a/Chapter5/3_AL_PlayingOGG/src/threading/Thread.h +++ b/Chapter5/3_AL_PlayingOGG/src/threading/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ @@ -72,10 +96,3 @@ class iThread }; #endif - -/* - * 16/06/2010 - Linux port - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter5/3_AL_PlayingOGG/src/threading/WorkerThread.cpp b/Chapter5/3_AL_PlayingOGG/src/threading/WorkerThread.cpp index 2e69c72..1405ba9 100644 --- a/Chapter5/3_AL_PlayingOGG/src/threading/WorkerThread.cpp +++ b/Chapter5/3_AL_PlayingOGG/src/threading/WorkerThread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "WorkerThread.h" #include @@ -122,8 +156,3 @@ void WorkerThread::Run() FCurrentTask = NULL; } } - -/* - * 05/12/2012 - It's here -*/ diff --git a/Chapter5/3_AL_PlayingOGG/src/threading/WorkerThread.h b/Chapter5/3_AL_PlayingOGG/src/threading/WorkerThread.h index 2eea440..e82804b 100644 --- a/Chapter5/3_AL_PlayingOGG/src/threading/WorkerThread.h +++ b/Chapter5/3_AL_PlayingOGG/src/threading/WorkerThread.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _WorkerThread_ #define _WorkerThread_ diff --git a/Chapter6/1_OpenGL3/main.cpp b/Chapter6/1_OpenGL3/main.cpp index 940777e..f638506 100644 --- a/Chapter6/1_OpenGL3/main.cpp +++ b/Chapter6/1_OpenGL3/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter6/1_OpenGL3/src/LGL/Platform.h b/Chapter6/1_OpenGL3/src/LGL/Platform.h index 056fae5..cb0e96f 100644 --- a/Chapter6/1_OpenGL3/src/LGL/Platform.h +++ b/Chapter6/1_OpenGL3/src/LGL/Platform.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter6/1_OpenGL3/src/WinViewport.h b/Chapter6/1_OpenGL3/src/WinViewport.h index 0b1553a..41139a0 100644 --- a/Chapter6/1_OpenGL3/src/WinViewport.h +++ b/Chapter6/1_OpenGL3/src/WinViewport.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter6/2_OpenGLES2/jni/Wrappers.cpp b/Chapter6/2_OpenGLES2/jni/Wrappers.cpp index f55aac0..0da0f94 100644 --- a/Chapter6/2_OpenGLES2/jni/Wrappers.cpp +++ b/Chapter6/2_OpenGLES2/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter6/2_OpenGLES2/jni/WrappersJNI.c b/Chapter6/2_OpenGLES2/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter6/2_OpenGLES2/jni/WrappersJNI.c +++ b/Chapter6/2_OpenGLES2/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter6/2_OpenGLES2/main.cpp b/Chapter6/2_OpenGLES2/main.cpp index fe08e77..7313cd2 100644 --- a/Chapter6/2_OpenGLES2/main.cpp +++ b/Chapter6/2_OpenGLES2/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include "LGL.h" diff --git a/Chapter6/2_OpenGLES2/src/LGL/Platform.h b/Chapter6/2_OpenGLES2/src/LGL/Platform.h index 056fae5..cb0e96f 100644 --- a/Chapter6/2_OpenGLES2/src/LGL/Platform.h +++ b/Chapter6/2_OpenGLES2/src/LGL/Platform.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter6/2_OpenGLES2/src/WinViewport.h b/Chapter6/2_OpenGLES2/src/WinViewport.h index 0b1553a..41139a0 100644 --- a/Chapter6/2_OpenGLES2/src/WinViewport.h +++ b/Chapter6/2_OpenGLES2/src/WinViewport.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter6/2_OpenGLES2/src/Wrapper_Android.h b/Chapter6/2_OpenGLES2/src/Wrapper_Android.h index e976220..06f828e 100644 --- a/Chapter6/2_OpenGLES2/src/Wrapper_Android.h +++ b/Chapter6/2_OpenGLES2/src/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter6/2_OpenGLES2/src/Wrapper_Callbacks.h b/Chapter6/2_OpenGLES2/src/Wrapper_Callbacks.h index 25c5f6c..daf4507 100644 --- a/Chapter6/2_OpenGLES2/src/Wrapper_Callbacks.h +++ b/Chapter6/2_OpenGLES2/src/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter6/2_OpenGLES2/src/Wrapper_Windows.cpp b/Chapter6/2_OpenGLES2/src/Wrapper_Windows.cpp index e5e7a66..c231a3e 100644 --- a/Chapter6/2_OpenGLES2/src/Wrapper_Windows.cpp +++ b/Chapter6/2_OpenGLES2/src/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Windows.h" #include "WinViewport.h" #include "LGL.h" diff --git a/Chapter6/2_OpenGLES2/src/Wrapper_Windows.h b/Chapter6/2_OpenGLES2/src/Wrapper_Windows.h index 3ae7938..0ac96c2 100644 --- a/Chapter6/2_OpenGLES2/src/Wrapper_Windows.h +++ b/Chapter6/2_OpenGLES2/src/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter6/2_OpenGLES2/src/com/packtpub/ndkcookbook/app13/App13Activity.java b/Chapter6/2_OpenGLES2/src/com/packtpub/ndkcookbook/app13/App13Activity.java index a45b1b0..bf3d5e0 100644 --- a/Chapter6/2_OpenGLES2/src/com/packtpub/ndkcookbook/app13/App13Activity.java +++ b/Chapter6/2_OpenGLES2/src/com/packtpub/ndkcookbook/app13/App13Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app13; import android.app.Activity; diff --git a/Chapter6/2_OpenGLES2/src/com/packtpub/ndkcookbook/app13/GLView.java b/Chapter6/2_OpenGLES2/src/com/packtpub/ndkcookbook/app13/GLView.java index 3f9a56b..fd2216d 100644 --- a/Chapter6/2_OpenGLES2/src/com/packtpub/ndkcookbook/app13/GLView.java +++ b/Chapter6/2_OpenGLES2/src/com/packtpub/ndkcookbook/app13/GLView.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app13; import android.util.Log; diff --git a/Chapter6/3_ShadersAndVertexArrays/jni/Wrappers.cpp b/Chapter6/3_ShadersAndVertexArrays/jni/Wrappers.cpp index 96b0624..e632d8f 100644 --- a/Chapter6/3_ShadersAndVertexArrays/jni/Wrappers.cpp +++ b/Chapter6/3_ShadersAndVertexArrays/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter6/3_ShadersAndVertexArrays/jni/WrappersJNI.c b/Chapter6/3_ShadersAndVertexArrays/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter6/3_ShadersAndVertexArrays/jni/WrappersJNI.c +++ b/Chapter6/3_ShadersAndVertexArrays/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter6/3_ShadersAndVertexArrays/main.cpp b/Chapter6/3_ShadersAndVertexArrays/main.cpp index 0a257a8..beb36c1 100644 --- a/Chapter6/3_ShadersAndVertexArrays/main.cpp +++ b/Chapter6/3_ShadersAndVertexArrays/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" sLGLAPI* LGL3 = NULL; diff --git a/Chapter6/3_ShadersAndVertexArrays/src/Engine.h b/Chapter6/3_ShadersAndVertexArrays/src/Engine.h index a25c814..349e282 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/Engine.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/Engine.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Platform.h" #include "Wrapper_Callbacks.h" diff --git a/Chapter6/3_ShadersAndVertexArrays/src/GLSL.cpp b/Chapter6/3_ShadersAndVertexArrays/src/GLSL.cpp index e2f4ee3..b1f58eb 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/GLSL.cpp +++ b/Chapter6/3_ShadersAndVertexArrays/src/GLSL.cpp @@ -1,10 +1,35 @@ -/** - * \file GLSL.cpp - * \brief OpenGL Shading Language - * \version 0.5.91 - * \date 11/08/2010 - * \author Sergey Kosarevsky, 2005-2010 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "Engine.h" diff --git a/Chapter6/3_ShadersAndVertexArrays/src/GLSL.h b/Chapter6/3_ShadersAndVertexArrays/src/GLSL.h index ce85318..c6f5c6d 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/GLSL.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/GLSL.h @@ -1,10 +1,35 @@ -/** - * \file GLSL.h - * \brief OpenGL Shading Language - * \version 0.6.00 - * \date 09/05/2011 - * \author Sergey Kosarevsky, 2005-2011 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #pragma once diff --git a/Chapter6/3_ShadersAndVertexArrays/src/GLVertexArray.cpp b/Chapter6/3_ShadersAndVertexArrays/src/GLVertexArray.cpp index c8bb883..8f0fca6 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/GLVertexArray.cpp +++ b/Chapter6/3_ShadersAndVertexArrays/src/GLVertexArray.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "GLVertexArray.h" #include "VertexAttribs.h" #include "LGL.h" diff --git a/Chapter6/3_ShadersAndVertexArrays/src/GLVertexArray.h b/Chapter6/3_ShadersAndVertexArrays/src/GLVertexArray.h index 8edde26..36e2c77 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/GLVertexArray.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/GLVertexArray.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter6/3_ShadersAndVertexArrays/src/GeomServ.cpp b/Chapter6/3_ShadersAndVertexArrays/src/GeomServ.cpp index a038285..0202767 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/GeomServ.cpp +++ b/Chapter6/3_ShadersAndVertexArrays/src/GeomServ.cpp @@ -1,10 +1,35 @@ -/** - * \file GeomServ.cpp - * \brief Geometry server implementation - * \version 0.6.00 - * \date 27/01/2011 - * \author Sergey Kosarevsky, 2005-2011 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "GeomServ.h" diff --git a/Chapter6/3_ShadersAndVertexArrays/src/GeomServ.h b/Chapter6/3_ShadersAndVertexArrays/src/GeomServ.h index 0c230c6..ccedaf6 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/GeomServ.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/GeomServ.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter6/3_ShadersAndVertexArrays/src/LGL/Platform.h b/Chapter6/3_ShadersAndVertexArrays/src/LGL/Platform.h index 056fae5..cb0e96f 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/LGL/Platform.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/LGL/Platform.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter6/3_ShadersAndVertexArrays/src/VertexAttribs.cpp b/Chapter6/3_ShadersAndVertexArrays/src/VertexAttribs.cpp index f964a8b..ef3e2dc 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/VertexAttribs.cpp +++ b/Chapter6/3_ShadersAndVertexArrays/src/VertexAttribs.cpp @@ -1,10 +1,35 @@ -/** - * \file VertexAttribs.cpp - * \brief Host-side vertex arrays - * \version 0.6.00 - * \date 11/01/2011 - * \author Sergey Kosarevsky, 2010-2011 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "VertexAttribs.h" diff --git a/Chapter6/3_ShadersAndVertexArrays/src/VertexAttribs.h b/Chapter6/3_ShadersAndVertexArrays/src/VertexAttribs.h index 1fb29e8..744775b 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/VertexAttribs.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/VertexAttribs.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Android.h b/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Android.h index 20802f9..543c099 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Android.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Callbacks.h b/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Callbacks.h index 3e0a68e..7278bd6 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Callbacks.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Windows.cpp b/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Windows.cpp index d7b29ae..6c57dac 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Windows.cpp +++ b/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" #include diff --git a/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Windows.h b/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Windows.h index ae6e058..e0a05a0 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Windows.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter6/3_ShadersAndVertexArrays/src/com/packtpub/ndkcookbook/app14/App14Activity.java b/Chapter6/3_ShadersAndVertexArrays/src/com/packtpub/ndkcookbook/app14/App14Activity.java index 8b911dd..47ff286 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/com/packtpub/ndkcookbook/app14/App14Activity.java +++ b/Chapter6/3_ShadersAndVertexArrays/src/com/packtpub/ndkcookbook/app14/App14Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app14; import android.app.Activity; diff --git a/Chapter6/3_ShadersAndVertexArrays/src/com/packtpub/ndkcookbook/app14/GLView.java b/Chapter6/3_ShadersAndVertexArrays/src/com/packtpub/ndkcookbook/app14/GLView.java index d998130..63f185b 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/com/packtpub/ndkcookbook/app14/GLView.java +++ b/Chapter6/3_ShadersAndVertexArrays/src/com/packtpub/ndkcookbook/app14/GLView.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app14; import android.util.Log; diff --git a/Chapter6/3_ShadersAndVertexArrays/src/core/VecMath.cpp b/Chapter6/3_ShadersAndVertexArrays/src/core/VecMath.cpp index d933a67..183755a 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/core/VecMath.cpp +++ b/Chapter6/3_ShadersAndVertexArrays/src/core/VecMath.cpp @@ -1,11 +1,36 @@ /* - (Part of Linderdaum Engine) - Version 0.5.72 - (12/03/2007) - (C) Kosarevsky Sergey, 2005-2007 - support@linderdaum.com - http://www.linderdaum.com -*/ + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ #include "VecMath.h" #include @@ -1556,14 +1581,3 @@ float LNoise::fBm( float* f, float Octaves ) return Math::Clamp( Value, -0.99999f, 0.99999f ); } - -/* - * 17/01/2011 - LookAtStereo() - PerspectiveStereo() - * 14/01/2010 - ProjectPointNDC() - UnProjectPointNDC() - * 28/02/2008 - It's here -*/ diff --git a/Chapter6/3_ShadersAndVertexArrays/src/core/VecMath.h b/Chapter6/3_ShadersAndVertexArrays/src/core/VecMath.h index 4c5c59e..d3f492f 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/core/VecMath.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/core/VecMath.h @@ -1,11 +1,35 @@ -/** - * \file LTransform.h - * \brief Transformation - * \version 0.5.91 - * \date 22/08/2010 - * \author Viktor Latypov, 2009-2010 - * \author Setgey Kosarevsky, 2010 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __Transform__h__included__ @@ -2356,8 +2380,3 @@ class LRect }; #endif - -/* - * 01/03/2010 - Log section added -*/ diff --git a/Chapter6/3_ShadersAndVertexArrays/src/core/iIntrusivePtr.cpp b/Chapter6/3_ShadersAndVertexArrays/src/core/iIntrusivePtr.cpp index ae6fac7..968b860 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/core/iIntrusivePtr.cpp +++ b/Chapter6/3_ShadersAndVertexArrays/src/core/iIntrusivePtr.cpp @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.cpp - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" diff --git a/Chapter6/3_ShadersAndVertexArrays/src/core/iIntrusivePtr.h b/Chapter6/3_ShadersAndVertexArrays/src/core/iIntrusivePtr.h index 6427ef0..2fc0da0 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/core/iIntrusivePtr.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/core/iIntrusivePtr.h @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.h - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2005 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _iIntrusivePtr_ diff --git a/Chapter6/3_ShadersAndVertexArrays/src/core/iObject.h b/Chapter6/3_ShadersAndVertexArrays/src/core/iObject.h index 8c4e71a..c42f5d8 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/core/iObject.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/core/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iObject_ #define _iObject_ diff --git a/Chapter6/3_ShadersAndVertexArrays/src/fs/Archive.cpp b/Chapter6/3_ShadersAndVertexArrays/src/fs/Archive.cpp index 492271c..73b4b31 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/fs/Archive.cpp +++ b/Chapter6/3_ShadersAndVertexArrays/src/fs/Archive.cpp @@ -1,8 +1,35 @@ -/** - * \file Archive.cpp - * \brief Archive reader - * \author Viktor Latypov, 2011-2012 - * \author viktor@linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/Chapter6/3_ShadersAndVertexArrays/src/fs/Archive.h b/Chapter6/3_ShadersAndVertexArrays/src/fs/Archive.h index 32ef8c6..e38ea9a 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/fs/Archive.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/fs/Archive.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __archive__h__included__ #define __archive__h__included__ diff --git a/Chapter6/3_ShadersAndVertexArrays/src/fs/Blob.h b/Chapter6/3_ShadersAndVertexArrays/src/fs/Blob.h index 0d828cf..85517f6 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/fs/Blob.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/fs/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TheBlob__h__included__ #define __TheBlob__h__included__ diff --git a/Chapter6/3_ShadersAndVertexArrays/src/fs/FileSystem.cpp b/Chapter6/3_ShadersAndVertexArrays/src/fs/FileSystem.cpp index b040e25..42b0f16 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/fs/FileSystem.cpp +++ b/Chapter6/3_ShadersAndVertexArrays/src/fs/FileSystem.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FileSystem.h" #include "Files.h" #include "MountPoint.h" diff --git a/Chapter6/3_ShadersAndVertexArrays/src/fs/FileSystem.h b/Chapter6/3_ShadersAndVertexArrays/src/fs/FileSystem.h index 0502389..0da94fc 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/fs/FileSystem.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/fs/FileSystem.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _FileSystem_ #define _FileSystem_ diff --git a/Chapter6/3_ShadersAndVertexArrays/src/fs/Files.h b/Chapter6/3_ShadersAndVertexArrays/src/fs/Files.h index f7e86be..528203a 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/fs/Files.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/fs/Files.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Files__h__included__ #define __Files__h__included__ diff --git a/Chapter6/3_ShadersAndVertexArrays/src/fs/MountPoint.h b/Chapter6/3_ShadersAndVertexArrays/src/fs/MountPoint.h index f74ad44..0c6933b 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/fs/MountPoint.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/fs/MountPoint.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __MountPoints__h__included__ #define __MountPoints__h__included__ diff --git a/Chapter6/3_ShadersAndVertexArrays/src/fs/Streams.h b/Chapter6/3_ShadersAndVertexArrays/src/fs/Streams.h index fa64b47..1397bd8 100644 --- a/Chapter6/3_ShadersAndVertexArrays/src/fs/Streams.h +++ b/Chapter6/3_ShadersAndVertexArrays/src/fs/Streams.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iOStream_ #define _iOStream_ diff --git a/Chapter6/4_Canvas/jni/Wrappers.cpp b/Chapter6/4_Canvas/jni/Wrappers.cpp index c2265c9..5f51b5d 100644 --- a/Chapter6/4_Canvas/jni/Wrappers.cpp +++ b/Chapter6/4_Canvas/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter6/4_Canvas/jni/WrappersJNI.c b/Chapter6/4_Canvas/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter6/4_Canvas/jni/WrappersJNI.c +++ b/Chapter6/4_Canvas/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter6/4_Canvas/main.cpp b/Chapter6/4_Canvas/main.cpp index 2c92af6..c454ee7 100644 --- a/Chapter6/4_Canvas/main.cpp +++ b/Chapter6/4_Canvas/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" sLGLAPI* LGL3 = NULL; diff --git a/Chapter6/4_Canvas/src/Bitmap.cpp b/Chapter6/4_Canvas/src/Bitmap.cpp index 52a3162..f4a169d 100644 --- a/Chapter6/4_Canvas/src/Bitmap.cpp +++ b/Chapter6/4_Canvas/src/Bitmap.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Bitmap.h" #include diff --git a/Chapter6/4_Canvas/src/Bitmap.h b/Chapter6/4_Canvas/src/Bitmap.h index e4088bf..c935b88 100644 --- a/Chapter6/4_Canvas/src/Bitmap.h +++ b/Chapter6/4_Canvas/src/Bitmap.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter6/4_Canvas/src/Canvas.cpp b/Chapter6/4_Canvas/src/Canvas.cpp index 7dc41fa..144cbff 100644 --- a/Chapter6/4_Canvas/src/Canvas.cpp +++ b/Chapter6/4_Canvas/src/Canvas.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Canvas.h" #include "GLVertexArray.h" #include "VertexAttribs.h" diff --git a/Chapter6/4_Canvas/src/Canvas.h b/Chapter6/4_Canvas/src/Canvas.h index ee9ef34..fd4b4ba 100644 --- a/Chapter6/4_Canvas/src/Canvas.h +++ b/Chapter6/4_Canvas/src/Canvas.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter6/4_Canvas/src/Engine.h b/Chapter6/4_Canvas/src/Engine.h index 96336ea..faa55ca 100644 --- a/Chapter6/4_Canvas/src/Engine.h +++ b/Chapter6/4_Canvas/src/Engine.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Platform.h" #include "Wrapper_Callbacks.h" diff --git a/Chapter6/4_Canvas/src/GLSL.cpp b/Chapter6/4_Canvas/src/GLSL.cpp index e2f4ee3..b1f58eb 100644 --- a/Chapter6/4_Canvas/src/GLSL.cpp +++ b/Chapter6/4_Canvas/src/GLSL.cpp @@ -1,10 +1,35 @@ -/** - * \file GLSL.cpp - * \brief OpenGL Shading Language - * \version 0.5.91 - * \date 11/08/2010 - * \author Sergey Kosarevsky, 2005-2010 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "Engine.h" diff --git a/Chapter6/4_Canvas/src/GLSL.h b/Chapter6/4_Canvas/src/GLSL.h index ce85318..c6f5c6d 100644 --- a/Chapter6/4_Canvas/src/GLSL.h +++ b/Chapter6/4_Canvas/src/GLSL.h @@ -1,10 +1,35 @@ -/** - * \file GLSL.h - * \brief OpenGL Shading Language - * \version 0.6.00 - * \date 09/05/2011 - * \author Sergey Kosarevsky, 2005-2011 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #pragma once diff --git a/Chapter6/4_Canvas/src/GLTexture.cpp b/Chapter6/4_Canvas/src/GLTexture.cpp index ba9efcd..1764519 100644 --- a/Chapter6/4_Canvas/src/GLTexture.cpp +++ b/Chapter6/4_Canvas/src/GLTexture.cpp @@ -1,10 +1,35 @@ -/** - * \file GLTexture.cpp - * \brief OpenGL textures - * \version 0.5.91 - * \date 03/07/2010 - * \author Sergey Kosarevsky, 2005-2010 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "Engine.h" diff --git a/Chapter6/4_Canvas/src/GLTexture.h b/Chapter6/4_Canvas/src/GLTexture.h index 7d0b393..badafe1 100644 --- a/Chapter6/4_Canvas/src/GLTexture.h +++ b/Chapter6/4_Canvas/src/GLTexture.h @@ -1,10 +1,35 @@ -/** - * \file GLTexture.h - * \brief OpenGL textures - * \version 0.5.90 - * \date 04/02/2010 - * \author Sergey Kosarevsky, 2005-2010 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #pragma once diff --git a/Chapter6/4_Canvas/src/GLVertexArray.cpp b/Chapter6/4_Canvas/src/GLVertexArray.cpp index c8bb883..8f0fca6 100644 --- a/Chapter6/4_Canvas/src/GLVertexArray.cpp +++ b/Chapter6/4_Canvas/src/GLVertexArray.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "GLVertexArray.h" #include "VertexAttribs.h" #include "LGL.h" diff --git a/Chapter6/4_Canvas/src/GLVertexArray.h b/Chapter6/4_Canvas/src/GLVertexArray.h index 8edde26..36e2c77 100644 --- a/Chapter6/4_Canvas/src/GLVertexArray.h +++ b/Chapter6/4_Canvas/src/GLVertexArray.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter6/4_Canvas/src/GeomServ.cpp b/Chapter6/4_Canvas/src/GeomServ.cpp index a038285..0202767 100644 --- a/Chapter6/4_Canvas/src/GeomServ.cpp +++ b/Chapter6/4_Canvas/src/GeomServ.cpp @@ -1,10 +1,35 @@ -/** - * \file GeomServ.cpp - * \brief Geometry server implementation - * \version 0.6.00 - * \date 27/01/2011 - * \author Sergey Kosarevsky, 2005-2011 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "GeomServ.h" diff --git a/Chapter6/4_Canvas/src/GeomServ.h b/Chapter6/4_Canvas/src/GeomServ.h index 0c230c6..ccedaf6 100644 --- a/Chapter6/4_Canvas/src/GeomServ.h +++ b/Chapter6/4_Canvas/src/GeomServ.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter6/4_Canvas/src/LGL/Platform.h b/Chapter6/4_Canvas/src/LGL/Platform.h index 056fae5..cb0e96f 100644 --- a/Chapter6/4_Canvas/src/LGL/Platform.h +++ b/Chapter6/4_Canvas/src/LGL/Platform.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter6/4_Canvas/src/VertexAttribs.cpp b/Chapter6/4_Canvas/src/VertexAttribs.cpp index f964a8b..ef3e2dc 100644 --- a/Chapter6/4_Canvas/src/VertexAttribs.cpp +++ b/Chapter6/4_Canvas/src/VertexAttribs.cpp @@ -1,10 +1,35 @@ -/** - * \file VertexAttribs.cpp - * \brief Host-side vertex arrays - * \version 0.6.00 - * \date 11/01/2011 - * \author Sergey Kosarevsky, 2010-2011 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "VertexAttribs.h" diff --git a/Chapter6/4_Canvas/src/VertexAttribs.h b/Chapter6/4_Canvas/src/VertexAttribs.h index 1fb29e8..744775b 100644 --- a/Chapter6/4_Canvas/src/VertexAttribs.h +++ b/Chapter6/4_Canvas/src/VertexAttribs.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter6/4_Canvas/src/Wrapper_Android.h b/Chapter6/4_Canvas/src/Wrapper_Android.h index 110940b..f14d81e 100644 --- a/Chapter6/4_Canvas/src/Wrapper_Android.h +++ b/Chapter6/4_Canvas/src/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter6/4_Canvas/src/Wrapper_Callbacks.h b/Chapter6/4_Canvas/src/Wrapper_Callbacks.h index 3e0a68e..7278bd6 100644 --- a/Chapter6/4_Canvas/src/Wrapper_Callbacks.h +++ b/Chapter6/4_Canvas/src/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter6/4_Canvas/src/Wrapper_Windows.cpp b/Chapter6/4_Canvas/src/Wrapper_Windows.cpp index d7b29ae..6c57dac 100644 --- a/Chapter6/4_Canvas/src/Wrapper_Windows.cpp +++ b/Chapter6/4_Canvas/src/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" #include diff --git a/Chapter6/4_Canvas/src/Wrapper_Windows.h b/Chapter6/4_Canvas/src/Wrapper_Windows.h index ae6e058..e0a05a0 100644 --- a/Chapter6/4_Canvas/src/Wrapper_Windows.h +++ b/Chapter6/4_Canvas/src/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter6/4_Canvas/src/com/packtpub/ndkcookbook/app14/App15Activity.java b/Chapter6/4_Canvas/src/com/packtpub/ndkcookbook/app14/App15Activity.java index 2668240..c0de60a 100644 --- a/Chapter6/4_Canvas/src/com/packtpub/ndkcookbook/app14/App15Activity.java +++ b/Chapter6/4_Canvas/src/com/packtpub/ndkcookbook/app14/App15Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app15; import android.app.Activity; diff --git a/Chapter6/4_Canvas/src/com/packtpub/ndkcookbook/app14/GLView.java b/Chapter6/4_Canvas/src/com/packtpub/ndkcookbook/app14/GLView.java index 4849586..c4da10c 100644 --- a/Chapter6/4_Canvas/src/com/packtpub/ndkcookbook/app14/GLView.java +++ b/Chapter6/4_Canvas/src/com/packtpub/ndkcookbook/app14/GLView.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app15; import android.util.Log; diff --git a/Chapter6/4_Canvas/src/core/VecMath.cpp b/Chapter6/4_Canvas/src/core/VecMath.cpp index d933a67..183755a 100644 --- a/Chapter6/4_Canvas/src/core/VecMath.cpp +++ b/Chapter6/4_Canvas/src/core/VecMath.cpp @@ -1,11 +1,36 @@ /* - (Part of Linderdaum Engine) - Version 0.5.72 - (12/03/2007) - (C) Kosarevsky Sergey, 2005-2007 - support@linderdaum.com - http://www.linderdaum.com -*/ + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ #include "VecMath.h" #include @@ -1556,14 +1581,3 @@ float LNoise::fBm( float* f, float Octaves ) return Math::Clamp( Value, -0.99999f, 0.99999f ); } - -/* - * 17/01/2011 - LookAtStereo() - PerspectiveStereo() - * 14/01/2010 - ProjectPointNDC() - UnProjectPointNDC() - * 28/02/2008 - It's here -*/ diff --git a/Chapter6/4_Canvas/src/core/VecMath.h b/Chapter6/4_Canvas/src/core/VecMath.h index 4c5c59e..60bd1e4 100644 --- a/Chapter6/4_Canvas/src/core/VecMath.h +++ b/Chapter6/4_Canvas/src/core/VecMath.h @@ -1,11 +1,35 @@ -/** - * \file LTransform.h - * \brief Transformation - * \version 0.5.91 - * \date 22/08/2010 - * \author Viktor Latypov, 2009-2010 - * \author Setgey Kosarevsky, 2010 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __Transform__h__included__ diff --git a/Chapter6/4_Canvas/src/core/iIntrusivePtr.cpp b/Chapter6/4_Canvas/src/core/iIntrusivePtr.cpp index ae6fac7..968b860 100644 --- a/Chapter6/4_Canvas/src/core/iIntrusivePtr.cpp +++ b/Chapter6/4_Canvas/src/core/iIntrusivePtr.cpp @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.cpp - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" diff --git a/Chapter6/4_Canvas/src/core/iIntrusivePtr.h b/Chapter6/4_Canvas/src/core/iIntrusivePtr.h index 6427ef0..2fc0da0 100644 --- a/Chapter6/4_Canvas/src/core/iIntrusivePtr.h +++ b/Chapter6/4_Canvas/src/core/iIntrusivePtr.h @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.h - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2005 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _iIntrusivePtr_ diff --git a/Chapter6/4_Canvas/src/core/iObject.h b/Chapter6/4_Canvas/src/core/iObject.h index 8c4e71a..c42f5d8 100644 --- a/Chapter6/4_Canvas/src/core/iObject.h +++ b/Chapter6/4_Canvas/src/core/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iObject_ #define _iObject_ diff --git a/Chapter6/4_Canvas/src/fs/Archive.cpp b/Chapter6/4_Canvas/src/fs/Archive.cpp index 492271c..73b4b31 100644 --- a/Chapter6/4_Canvas/src/fs/Archive.cpp +++ b/Chapter6/4_Canvas/src/fs/Archive.cpp @@ -1,8 +1,35 @@ -/** - * \file Archive.cpp - * \brief Archive reader - * \author Viktor Latypov, 2011-2012 - * \author viktor@linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/Chapter6/4_Canvas/src/fs/Archive.h b/Chapter6/4_Canvas/src/fs/Archive.h index 32ef8c6..e38ea9a 100644 --- a/Chapter6/4_Canvas/src/fs/Archive.h +++ b/Chapter6/4_Canvas/src/fs/Archive.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __archive__h__included__ #define __archive__h__included__ diff --git a/Chapter6/4_Canvas/src/fs/Blob.h b/Chapter6/4_Canvas/src/fs/Blob.h index 0d828cf..85517f6 100644 --- a/Chapter6/4_Canvas/src/fs/Blob.h +++ b/Chapter6/4_Canvas/src/fs/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TheBlob__h__included__ #define __TheBlob__h__included__ diff --git a/Chapter6/4_Canvas/src/fs/FileSystem.cpp b/Chapter6/4_Canvas/src/fs/FileSystem.cpp index b040e25..42b0f16 100644 --- a/Chapter6/4_Canvas/src/fs/FileSystem.cpp +++ b/Chapter6/4_Canvas/src/fs/FileSystem.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FileSystem.h" #include "Files.h" #include "MountPoint.h" diff --git a/Chapter6/4_Canvas/src/fs/FileSystem.h b/Chapter6/4_Canvas/src/fs/FileSystem.h index 0502389..0da94fc 100644 --- a/Chapter6/4_Canvas/src/fs/FileSystem.h +++ b/Chapter6/4_Canvas/src/fs/FileSystem.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _FileSystem_ #define _FileSystem_ diff --git a/Chapter6/4_Canvas/src/fs/Files.h b/Chapter6/4_Canvas/src/fs/Files.h index f7e86be..528203a 100644 --- a/Chapter6/4_Canvas/src/fs/Files.h +++ b/Chapter6/4_Canvas/src/fs/Files.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Files__h__included__ #define __Files__h__included__ diff --git a/Chapter6/4_Canvas/src/fs/MountPoint.h b/Chapter6/4_Canvas/src/fs/MountPoint.h index b6ad326..5fc8d8c 100644 --- a/Chapter6/4_Canvas/src/fs/MountPoint.h +++ b/Chapter6/4_Canvas/src/fs/MountPoint.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __MountPoints__h__included__ #define __MountPoints__h__included__ diff --git a/Chapter6/4_Canvas/src/fs/Streams.h b/Chapter6/4_Canvas/src/fs/Streams.h index fa64b47..1397bd8 100644 --- a/Chapter6/4_Canvas/src/fs/Streams.h +++ b/Chapter6/4_Canvas/src/fs/Streams.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iOStream_ #define _iOStream_ diff --git a/Chapter7/1_MultitouchInput/jni/Wrappers.cpp b/Chapter7/1_MultitouchInput/jni/Wrappers.cpp index 42b593d..cf0d80e 100644 --- a/Chapter7/1_MultitouchInput/jni/Wrappers.cpp +++ b/Chapter7/1_MultitouchInput/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter7/1_MultitouchInput/jni/WrappersJNI.c b/Chapter7/1_MultitouchInput/jni/WrappersJNI.c index 19ec51c..404830a 100644 --- a/Chapter7/1_MultitouchInput/jni/WrappersJNI.c +++ b/Chapter7/1_MultitouchInput/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter7/1_MultitouchInput/main.cpp b/Chapter7/1_MultitouchInput/main.cpp index cd5385c..403dab7 100644 --- a/Chapter7/1_MultitouchInput/main.cpp +++ b/Chapter7/1_MultitouchInput/main.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include "Rendering.h" diff --git a/Chapter7/1_MultitouchInput/src/Gestures.cpp b/Chapter7/1_MultitouchInput/src/Gestures.cpp index 539d986..8e6da2b 100644 --- a/Chapter7/1_MultitouchInput/src/Gestures.cpp +++ b/Chapter7/1_MultitouchInput/src/Gestures.cpp @@ -1,10 +1,35 @@ -/** - * \file Gestures.cpp - * \brief Gestures handling helpers implementation - * \version 0.6.01 - * \date 21/07/2011 - * \author Sergey Kosarevsky, 2011 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" diff --git a/Chapter7/1_MultitouchInput/src/Gestures.h b/Chapter7/1_MultitouchInput/src/Gestures.h index 7c320b5..53b0d17 100644 --- a/Chapter7/1_MultitouchInput/src/Gestures.h +++ b/Chapter7/1_MultitouchInput/src/Gestures.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" diff --git a/Chapter7/1_MultitouchInput/src/Multitouch.cpp b/Chapter7/1_MultitouchInput/src/Multitouch.cpp index c17d19e..d9660d3 100644 --- a/Chapter7/1_MultitouchInput/src/Multitouch.cpp +++ b/Chapter7/1_MultitouchInput/src/Multitouch.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Multitouch.h" #include "Gestures.h" diff --git a/Chapter7/1_MultitouchInput/src/Multitouch.h b/Chapter7/1_MultitouchInput/src/Multitouch.h index 0171a6c..2cffd22 100644 --- a/Chapter7/1_MultitouchInput/src/Multitouch.h +++ b/Chapter7/1_MultitouchInput/src/Multitouch.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter7/1_MultitouchInput/src/Rendering.cpp b/Chapter7/1_MultitouchInput/src/Rendering.cpp index 662cf66..a91d12d 100644 --- a/Chapter7/1_MultitouchInput/src/Rendering.cpp +++ b/Chapter7/1_MultitouchInput/src/Rendering.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Rendering.h" const int Width = ImageWidth; diff --git a/Chapter7/1_MultitouchInput/src/Rendering.h b/Chapter7/1_MultitouchInput/src/Rendering.h index 9491a00..1ddb21d 100644 --- a/Chapter7/1_MultitouchInput/src/Rendering.h +++ b/Chapter7/1_MultitouchInput/src/Rendering.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Wrapper_Callbacks.h" diff --git a/Chapter7/1_MultitouchInput/src/Wrapper_Android.h b/Chapter7/1_MultitouchInput/src/Wrapper_Android.h index eee14ed..c0f35e0 100644 --- a/Chapter7/1_MultitouchInput/src/Wrapper_Android.h +++ b/Chapter7/1_MultitouchInput/src/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter7/1_MultitouchInput/src/Wrapper_Callbacks.h b/Chapter7/1_MultitouchInput/src/Wrapper_Callbacks.h index 9bd45b4..28b40a0 100644 --- a/Chapter7/1_MultitouchInput/src/Wrapper_Callbacks.h +++ b/Chapter7/1_MultitouchInput/src/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter7/1_MultitouchInput/src/Wrapper_Windows.cpp b/Chapter7/1_MultitouchInput/src/Wrapper_Windows.cpp index e72766c..37e0120 100644 --- a/Chapter7/1_MultitouchInput/src/Wrapper_Windows.cpp +++ b/Chapter7/1_MultitouchInput/src/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Windows.h" #include "Multitouch.h" diff --git a/Chapter7/1_MultitouchInput/src/Wrapper_Windows.h b/Chapter7/1_MultitouchInput/src/Wrapper_Windows.h index 207bd96..c98b23d 100644 --- a/Chapter7/1_MultitouchInput/src/Wrapper_Windows.h +++ b/Chapter7/1_MultitouchInput/src/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter7/1_MultitouchInput/src/com/packtpub/ndkcookbook/app12/App12Activity.java b/Chapter7/1_MultitouchInput/src/com/packtpub/ndkcookbook/app12/App12Activity.java index d591406..a832ec7 100644 --- a/Chapter7/1_MultitouchInput/src/com/packtpub/ndkcookbook/app12/App12Activity.java +++ b/Chapter7/1_MultitouchInput/src/com/packtpub/ndkcookbook/app12/App12Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app12; import android.app.Activity; diff --git a/Chapter7/1_MultitouchInput/src/com/packtpub/ndkcookbook/app12/GLView.java b/Chapter7/1_MultitouchInput/src/com/packtpub/ndkcookbook/app12/GLView.java index fc3b30a..ded4ce1 100644 --- a/Chapter7/1_MultitouchInput/src/com/packtpub/ndkcookbook/app12/GLView.java +++ b/Chapter7/1_MultitouchInput/src/com/packtpub/ndkcookbook/app12/GLView.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app12; import android.util.Log; diff --git a/Chapter7/1_MultitouchInput/src/core/RingBuffer.h b/Chapter7/1_MultitouchInput/src/core/RingBuffer.h index 191a992..1ef931f 100644 --- a/Chapter7/1_MultitouchInput/src/core/RingBuffer.h +++ b/Chapter7/1_MultitouchInput/src/core/RingBuffer.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter7/1_MultitouchInput/src/core/VecMath.cpp b/Chapter7/1_MultitouchInput/src/core/VecMath.cpp index d933a67..183755a 100644 --- a/Chapter7/1_MultitouchInput/src/core/VecMath.cpp +++ b/Chapter7/1_MultitouchInput/src/core/VecMath.cpp @@ -1,11 +1,36 @@ /* - (Part of Linderdaum Engine) - Version 0.5.72 - (12/03/2007) - (C) Kosarevsky Sergey, 2005-2007 - support@linderdaum.com - http://www.linderdaum.com -*/ + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ #include "VecMath.h" #include @@ -1556,14 +1581,3 @@ float LNoise::fBm( float* f, float Octaves ) return Math::Clamp( Value, -0.99999f, 0.99999f ); } - -/* - * 17/01/2011 - LookAtStereo() - PerspectiveStereo() - * 14/01/2010 - ProjectPointNDC() - UnProjectPointNDC() - * 28/02/2008 - It's here -*/ diff --git a/Chapter7/1_MultitouchInput/src/core/VecMath.h b/Chapter7/1_MultitouchInput/src/core/VecMath.h index 4c5c59e..d3f492f 100644 --- a/Chapter7/1_MultitouchInput/src/core/VecMath.h +++ b/Chapter7/1_MultitouchInput/src/core/VecMath.h @@ -1,11 +1,35 @@ -/** - * \file LTransform.h - * \brief Transformation - * \version 0.5.91 - * \date 22/08/2010 - * \author Viktor Latypov, 2009-2010 - * \author Setgey Kosarevsky, 2010 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __Transform__h__included__ @@ -2356,8 +2380,3 @@ class LRect }; #endif - -/* - * 01/03/2010 - Log section added -*/ diff --git a/Chapter7/1_MultitouchInput/src/core/iObject.h b/Chapter7/1_MultitouchInput/src/core/iObject.h index cb0c6ec..05ca0a5 100644 --- a/Chapter7/1_MultitouchInput/src/core/iObject.h +++ b/Chapter7/1_MultitouchInput/src/core/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iObject_ #define _iObject_ diff --git a/Chapter7/1_MultitouchInput/src/threading/Event.cpp b/Chapter7/1_MultitouchInput/src/threading/Event.cpp index b443707..b9fcf35 100644 --- a/Chapter7/1_MultitouchInput/src/threading/Event.cpp +++ b/Chapter7/1_MultitouchInput/src/threading/Event.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Event.h" #include diff --git a/Chapter7/1_MultitouchInput/src/threading/Event.h b/Chapter7/1_MultitouchInput/src/threading/Event.h index 7d1ece7..b5e307b 100644 --- a/Chapter7/1_MultitouchInput/src/threading/Event.h +++ b/Chapter7/1_MultitouchInput/src/threading/Event.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Event__h_ #define _Event__h_ diff --git a/Chapter7/1_MultitouchInput/src/threading/Mutex.h b/Chapter7/1_MultitouchInput/src/threading/Mutex.h index 259e6ff..f4f49bf 100644 --- a/Chapter7/1_MultitouchInput/src/threading/Mutex.h +++ b/Chapter7/1_MultitouchInput/src/threading/Mutex.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Mutex__h__included__ #define __Mutex__h__included__ diff --git a/Chapter7/1_MultitouchInput/src/threading/Thread.cpp b/Chapter7/1_MultitouchInput/src/threading/Thread.cpp index 27d9cd6..2c1bde3 100644 --- a/Chapter7/1_MultitouchInput/src/threading/Thread.cpp +++ b/Chapter7/1_MultitouchInput/src/threading/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 diff --git a/Chapter7/1_MultitouchInput/src/threading/Thread.h b/Chapter7/1_MultitouchInput/src/threading/Thread.h index bcf1b3e..ea185f8 100644 --- a/Chapter7/1_MultitouchInput/src/threading/Thread.h +++ b/Chapter7/1_MultitouchInput/src/threading/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ @@ -72,10 +96,3 @@ class iThread }; #endif - -/* - * 16/06/2010 - Linux port - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter7/2_OnScreenGamepad/jni/Wrappers.cpp b/Chapter7/2_OnScreenGamepad/jni/Wrappers.cpp index d2a0308..76cb5aa 100644 --- a/Chapter7/2_OnScreenGamepad/jni/Wrappers.cpp +++ b/Chapter7/2_OnScreenGamepad/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter7/2_OnScreenGamepad/jni/WrappersJNI.c b/Chapter7/2_OnScreenGamepad/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter7/2_OnScreenGamepad/jni/WrappersJNI.c +++ b/Chapter7/2_OnScreenGamepad/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter7/2_OnScreenGamepad/main.cpp b/Chapter7/2_OnScreenGamepad/main.cpp index 6317bf2..312da58 100644 --- a/Chapter7/2_OnScreenGamepad/main.cpp +++ b/Chapter7/2_OnScreenGamepad/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" #include "Wrapper_Callbacks.h" #include "FileSystem.h" diff --git a/Chapter7/2_OnScreenGamepad/src/Bitmap.cpp b/Chapter7/2_OnScreenGamepad/src/Bitmap.cpp index 7ecd743..050c991 100644 --- a/Chapter7/2_OnScreenGamepad/src/Bitmap.cpp +++ b/Chapter7/2_OnScreenGamepad/src/Bitmap.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Bitmap.h" #include diff --git a/Chapter7/2_OnScreenGamepad/src/Bitmap.h b/Chapter7/2_OnScreenGamepad/src/Bitmap.h index 38d2e84..f195178 100644 --- a/Chapter7/2_OnScreenGamepad/src/Bitmap.h +++ b/Chapter7/2_OnScreenGamepad/src/Bitmap.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter7/2_OnScreenGamepad/src/Engine.cpp b/Chapter7/2_OnScreenGamepad/src/Engine.cpp index 443df8e..fa18f13 100644 --- a/Chapter7/2_OnScreenGamepad/src/Engine.cpp +++ b/Chapter7/2_OnScreenGamepad/src/Engine.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Callbacks.h" #if defined( _WIN32 ) diff --git a/Chapter7/2_OnScreenGamepad/src/Engine.h b/Chapter7/2_OnScreenGamepad/src/Engine.h index 934f86f..e58ed11 100644 --- a/Chapter7/2_OnScreenGamepad/src/Engine.h +++ b/Chapter7/2_OnScreenGamepad/src/Engine.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Wrapper_Callbacks.h" diff --git a/Chapter7/2_OnScreenGamepad/src/FI_SaveLoadFlags.h b/Chapter7/2_OnScreenGamepad/src/FI_SaveLoadFlags.h index 461a20c..cd9a4a0 100644 --- a/Chapter7/2_OnScreenGamepad/src/FI_SaveLoadFlags.h +++ b/Chapter7/2_OnScreenGamepad/src/FI_SaveLoadFlags.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _FI_SaveLoadFlags_h_ #define _FI_SaveLoadFlags_h_ diff --git a/Chapter7/2_OnScreenGamepad/src/FI_Utils.cpp b/Chapter7/2_OnScreenGamepad/src/FI_Utils.cpp index 2cf1291..328237b 100644 --- a/Chapter7/2_OnScreenGamepad/src/FI_Utils.cpp +++ b/Chapter7/2_OnScreenGamepad/src/FI_Utils.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Platform.h" #include "fs/Streams.h" diff --git a/Chapter7/2_OnScreenGamepad/src/FI_Utils.h b/Chapter7/2_OnScreenGamepad/src/FI_Utils.h index 995e529..8e134b0 100644 --- a/Chapter7/2_OnScreenGamepad/src/FI_Utils.h +++ b/Chapter7/2_OnScreenGamepad/src/FI_Utils.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iIntrusivePtr.h" diff --git a/Chapter7/2_OnScreenGamepad/src/Gestures.cpp b/Chapter7/2_OnScreenGamepad/src/Gestures.cpp index 4869d12..d1a9dc6 100644 --- a/Chapter7/2_OnScreenGamepad/src/Gestures.cpp +++ b/Chapter7/2_OnScreenGamepad/src/Gestures.cpp @@ -1,10 +1,35 @@ -/** - * \file Gestures.cpp - * \brief Gestures handling helpers implementation - * \version 0.6.01 - * \date 21/07/2011 - * \author Sergey Kosarevsky, 2011 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" diff --git a/Chapter7/2_OnScreenGamepad/src/Gestures.h b/Chapter7/2_OnScreenGamepad/src/Gestures.h index 7c320b5..53b0d17 100644 --- a/Chapter7/2_OnScreenGamepad/src/Gestures.h +++ b/Chapter7/2_OnScreenGamepad/src/Gestures.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" diff --git a/Chapter7/2_OnScreenGamepad/src/Multitouch.cpp b/Chapter7/2_OnScreenGamepad/src/Multitouch.cpp index c17d19e..d9660d3 100644 --- a/Chapter7/2_OnScreenGamepad/src/Multitouch.cpp +++ b/Chapter7/2_OnScreenGamepad/src/Multitouch.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Multitouch.h" #include "Gestures.h" diff --git a/Chapter7/2_OnScreenGamepad/src/Multitouch.h b/Chapter7/2_OnScreenGamepad/src/Multitouch.h index 0171a6c..2cffd22 100644 --- a/Chapter7/2_OnScreenGamepad/src/Multitouch.h +++ b/Chapter7/2_OnScreenGamepad/src/Multitouch.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter7/2_OnScreenGamepad/src/Platform.h b/Chapter7/2_OnScreenGamepad/src/Platform.h index 0959c50..b9596ec 100644 --- a/Chapter7/2_OnScreenGamepad/src/Platform.h +++ b/Chapter7/2_OnScreenGamepad/src/Platform.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter7/2_OnScreenGamepad/src/Rendering.cpp b/Chapter7/2_OnScreenGamepad/src/Rendering.cpp index 662cf66..a91d12d 100644 --- a/Chapter7/2_OnScreenGamepad/src/Rendering.cpp +++ b/Chapter7/2_OnScreenGamepad/src/Rendering.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Rendering.h" const int Width = ImageWidth; diff --git a/Chapter7/2_OnScreenGamepad/src/Rendering.h b/Chapter7/2_OnScreenGamepad/src/Rendering.h index 9491a00..1ddb21d 100644 --- a/Chapter7/2_OnScreenGamepad/src/Rendering.h +++ b/Chapter7/2_OnScreenGamepad/src/Rendering.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Wrapper_Callbacks.h" diff --git a/Chapter7/2_OnScreenGamepad/src/ScreenJoystick.cpp b/Chapter7/2_OnScreenGamepad/src/ScreenJoystick.cpp index 7a8cf1b..dc6bb8a 100644 --- a/Chapter7/2_OnScreenGamepad/src/ScreenJoystick.cpp +++ b/Chapter7/2_OnScreenGamepad/src/ScreenJoystick.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "ScreenJoystick.h" void ScreenJoystick::HandleTouch( int ContactID, const vec2& Pos, bool Pressed, eMotionFlag Flag ) diff --git a/Chapter7/2_OnScreenGamepad/src/ScreenJoystick.h b/Chapter7/2_OnScreenGamepad/src/ScreenJoystick.h index 11a044c..1aef9fa 100644 --- a/Chapter7/2_OnScreenGamepad/src/ScreenJoystick.h +++ b/Chapter7/2_OnScreenGamepad/src/ScreenJoystick.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iObject.h" diff --git a/Chapter7/2_OnScreenGamepad/src/Wrapper_Android.h b/Chapter7/2_OnScreenGamepad/src/Wrapper_Android.h index b6fe646..1b9c4e2 100644 --- a/Chapter7/2_OnScreenGamepad/src/Wrapper_Android.h +++ b/Chapter7/2_OnScreenGamepad/src/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter7/2_OnScreenGamepad/src/Wrapper_Callbacks.h b/Chapter7/2_OnScreenGamepad/src/Wrapper_Callbacks.h index e1fe6d3..40bd47f 100644 --- a/Chapter7/2_OnScreenGamepad/src/Wrapper_Callbacks.h +++ b/Chapter7/2_OnScreenGamepad/src/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter7/2_OnScreenGamepad/src/Wrapper_Windows.cpp b/Chapter7/2_OnScreenGamepad/src/Wrapper_Windows.cpp index bad27c5..f2ba38c 100644 --- a/Chapter7/2_OnScreenGamepad/src/Wrapper_Windows.cpp +++ b/Chapter7/2_OnScreenGamepad/src/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Windows.h" #include "Gestures.h" #include "VecMath.h" diff --git a/Chapter7/2_OnScreenGamepad/src/Wrapper_Windows.h b/Chapter7/2_OnScreenGamepad/src/Wrapper_Windows.h index 207bd96..c98b23d 100644 --- a/Chapter7/2_OnScreenGamepad/src/Wrapper_Windows.h +++ b/Chapter7/2_OnScreenGamepad/src/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter7/2_OnScreenGamepad/src/com/packtpub/ndkcookbook/app13/App13Activity.java b/Chapter7/2_OnScreenGamepad/src/com/packtpub/ndkcookbook/app13/App13Activity.java index 55865fb..8cafda3 100644 --- a/Chapter7/2_OnScreenGamepad/src/com/packtpub/ndkcookbook/app13/App13Activity.java +++ b/Chapter7/2_OnScreenGamepad/src/com/packtpub/ndkcookbook/app13/App13Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app13; import android.app.Activity; diff --git a/Chapter7/2_OnScreenGamepad/src/com/packtpub/ndkcookbook/app13/GLView.java b/Chapter7/2_OnScreenGamepad/src/com/packtpub/ndkcookbook/app13/GLView.java index 3f9a56b..fd2216d 100644 --- a/Chapter7/2_OnScreenGamepad/src/com/packtpub/ndkcookbook/app13/GLView.java +++ b/Chapter7/2_OnScreenGamepad/src/com/packtpub/ndkcookbook/app13/GLView.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app13; import android.util.Log; diff --git a/Chapter7/2_OnScreenGamepad/src/core/RingBuffer.h b/Chapter7/2_OnScreenGamepad/src/core/RingBuffer.h index 191a992..1ef931f 100644 --- a/Chapter7/2_OnScreenGamepad/src/core/RingBuffer.h +++ b/Chapter7/2_OnScreenGamepad/src/core/RingBuffer.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter7/2_OnScreenGamepad/src/core/VecMath.cpp b/Chapter7/2_OnScreenGamepad/src/core/VecMath.cpp index d933a67..183755a 100644 --- a/Chapter7/2_OnScreenGamepad/src/core/VecMath.cpp +++ b/Chapter7/2_OnScreenGamepad/src/core/VecMath.cpp @@ -1,11 +1,36 @@ /* - (Part of Linderdaum Engine) - Version 0.5.72 - (12/03/2007) - (C) Kosarevsky Sergey, 2005-2007 - support@linderdaum.com - http://www.linderdaum.com -*/ + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ #include "VecMath.h" #include @@ -1556,14 +1581,3 @@ float LNoise::fBm( float* f, float Octaves ) return Math::Clamp( Value, -0.99999f, 0.99999f ); } - -/* - * 17/01/2011 - LookAtStereo() - PerspectiveStereo() - * 14/01/2010 - ProjectPointNDC() - UnProjectPointNDC() - * 28/02/2008 - It's here -*/ diff --git a/Chapter7/2_OnScreenGamepad/src/core/VecMath.h b/Chapter7/2_OnScreenGamepad/src/core/VecMath.h index 4c5c59e..d3f492f 100644 --- a/Chapter7/2_OnScreenGamepad/src/core/VecMath.h +++ b/Chapter7/2_OnScreenGamepad/src/core/VecMath.h @@ -1,11 +1,35 @@ -/** - * \file LTransform.h - * \brief Transformation - * \version 0.5.91 - * \date 22/08/2010 - * \author Viktor Latypov, 2009-2010 - * \author Setgey Kosarevsky, 2010 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __Transform__h__included__ @@ -2356,8 +2380,3 @@ class LRect }; #endif - -/* - * 01/03/2010 - Log section added -*/ diff --git a/Chapter7/2_OnScreenGamepad/src/core/iIntrusivePtr.cpp b/Chapter7/2_OnScreenGamepad/src/core/iIntrusivePtr.cpp index ae6fac7..968b860 100644 --- a/Chapter7/2_OnScreenGamepad/src/core/iIntrusivePtr.cpp +++ b/Chapter7/2_OnScreenGamepad/src/core/iIntrusivePtr.cpp @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.cpp - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" diff --git a/Chapter7/2_OnScreenGamepad/src/core/iIntrusivePtr.h b/Chapter7/2_OnScreenGamepad/src/core/iIntrusivePtr.h index 6427ef0..2fc0da0 100644 --- a/Chapter7/2_OnScreenGamepad/src/core/iIntrusivePtr.h +++ b/Chapter7/2_OnScreenGamepad/src/core/iIntrusivePtr.h @@ -1,8 +1,35 @@ -/** - * \file iIntrusivePtr.h - * \brief Intrusive smart pointer - * \author Sergey Kosarevsky, 2005 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _iIntrusivePtr_ diff --git a/Chapter7/2_OnScreenGamepad/src/core/iObject.h b/Chapter7/2_OnScreenGamepad/src/core/iObject.h index 8c4e71a..c42f5d8 100644 --- a/Chapter7/2_OnScreenGamepad/src/core/iObject.h +++ b/Chapter7/2_OnScreenGamepad/src/core/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iObject_ #define _iObject_ diff --git a/Chapter7/2_OnScreenGamepad/src/fs/Archive.cpp b/Chapter7/2_OnScreenGamepad/src/fs/Archive.cpp index 492271c..73b4b31 100644 --- a/Chapter7/2_OnScreenGamepad/src/fs/Archive.cpp +++ b/Chapter7/2_OnScreenGamepad/src/fs/Archive.cpp @@ -1,8 +1,35 @@ -/** - * \file Archive.cpp - * \brief Archive reader - * \author Viktor Latypov, 2011-2012 - * \author viktor@linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/Chapter7/2_OnScreenGamepad/src/fs/Archive.h b/Chapter7/2_OnScreenGamepad/src/fs/Archive.h index 32ef8c6..e38ea9a 100644 --- a/Chapter7/2_OnScreenGamepad/src/fs/Archive.h +++ b/Chapter7/2_OnScreenGamepad/src/fs/Archive.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __archive__h__included__ #define __archive__h__included__ diff --git a/Chapter7/2_OnScreenGamepad/src/fs/Blob.h b/Chapter7/2_OnScreenGamepad/src/fs/Blob.h index 0d828cf..85517f6 100644 --- a/Chapter7/2_OnScreenGamepad/src/fs/Blob.h +++ b/Chapter7/2_OnScreenGamepad/src/fs/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TheBlob__h__included__ #define __TheBlob__h__included__ diff --git a/Chapter7/2_OnScreenGamepad/src/fs/FileSystem.cpp b/Chapter7/2_OnScreenGamepad/src/fs/FileSystem.cpp index b040e25..42b0f16 100644 --- a/Chapter7/2_OnScreenGamepad/src/fs/FileSystem.cpp +++ b/Chapter7/2_OnScreenGamepad/src/fs/FileSystem.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FileSystem.h" #include "Files.h" #include "MountPoint.h" diff --git a/Chapter7/2_OnScreenGamepad/src/fs/FileSystem.h b/Chapter7/2_OnScreenGamepad/src/fs/FileSystem.h index 0502389..0da94fc 100644 --- a/Chapter7/2_OnScreenGamepad/src/fs/FileSystem.h +++ b/Chapter7/2_OnScreenGamepad/src/fs/FileSystem.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _FileSystem_ #define _FileSystem_ diff --git a/Chapter7/2_OnScreenGamepad/src/fs/Files.h b/Chapter7/2_OnScreenGamepad/src/fs/Files.h index f7e86be..528203a 100644 --- a/Chapter7/2_OnScreenGamepad/src/fs/Files.h +++ b/Chapter7/2_OnScreenGamepad/src/fs/Files.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Files__h__included__ #define __Files__h__included__ diff --git a/Chapter7/2_OnScreenGamepad/src/fs/MountPoint.h b/Chapter7/2_OnScreenGamepad/src/fs/MountPoint.h index b6ad326..5fc8d8c 100644 --- a/Chapter7/2_OnScreenGamepad/src/fs/MountPoint.h +++ b/Chapter7/2_OnScreenGamepad/src/fs/MountPoint.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __MountPoints__h__included__ #define __MountPoints__h__included__ diff --git a/Chapter7/2_OnScreenGamepad/src/fs/Streams.h b/Chapter7/2_OnScreenGamepad/src/fs/Streams.h index fa64b47..1397bd8 100644 --- a/Chapter7/2_OnScreenGamepad/src/fs/Streams.h +++ b/Chapter7/2_OnScreenGamepad/src/fs/Streams.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iOStream_ #define _iOStream_ diff --git a/Chapter7/2_OnScreenGamepad/src/threading/Event.cpp b/Chapter7/2_OnScreenGamepad/src/threading/Event.cpp index b443707..b9fcf35 100644 --- a/Chapter7/2_OnScreenGamepad/src/threading/Event.cpp +++ b/Chapter7/2_OnScreenGamepad/src/threading/Event.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Event.h" #include diff --git a/Chapter7/2_OnScreenGamepad/src/threading/Event.h b/Chapter7/2_OnScreenGamepad/src/threading/Event.h index 9214177..0a57af6 100644 --- a/Chapter7/2_OnScreenGamepad/src/threading/Event.h +++ b/Chapter7/2_OnScreenGamepad/src/threading/Event.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Event__h_ #define _Event__h_ diff --git a/Chapter7/2_OnScreenGamepad/src/threading/Mutex.h b/Chapter7/2_OnScreenGamepad/src/threading/Mutex.h index 259e6ff..f4f49bf 100644 --- a/Chapter7/2_OnScreenGamepad/src/threading/Mutex.h +++ b/Chapter7/2_OnScreenGamepad/src/threading/Mutex.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Mutex__h__included__ #define __Mutex__h__included__ diff --git a/Chapter7/2_OnScreenGamepad/src/threading/Thread.cpp b/Chapter7/2_OnScreenGamepad/src/threading/Thread.cpp index 27d9cd6..2c1bde3 100644 --- a/Chapter7/2_OnScreenGamepad/src/threading/Thread.cpp +++ b/Chapter7/2_OnScreenGamepad/src/threading/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 diff --git a/Chapter7/2_OnScreenGamepad/src/threading/Thread.h b/Chapter7/2_OnScreenGamepad/src/threading/Thread.h index bcf1b3e..d36c678 100644 --- a/Chapter7/2_OnScreenGamepad/src/threading/Thread.h +++ b/Chapter7/2_OnScreenGamepad/src/threading/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ diff --git a/Chapter7/2_OnScreenGamepad/src/threading/WorkerThread.cpp b/Chapter7/2_OnScreenGamepad/src/threading/WorkerThread.cpp index 2e69c72..dedb71c 100644 --- a/Chapter7/2_OnScreenGamepad/src/threading/WorkerThread.cpp +++ b/Chapter7/2_OnScreenGamepad/src/threading/WorkerThread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "WorkerThread.h" #include diff --git a/Chapter7/2_OnScreenGamepad/src/threading/WorkerThread.h b/Chapter7/2_OnScreenGamepad/src/threading/WorkerThread.h index f2317db..df3af4e 100644 --- a/Chapter7/2_OnScreenGamepad/src/threading/WorkerThread.h +++ b/Chapter7/2_OnScreenGamepad/src/threading/WorkerThread.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _WorkerThread_ #define _WorkerThread_ diff --git a/Chapter7/3_SimpleText/jni/Wrappers.cpp b/Chapter7/3_SimpleText/jni/Wrappers.cpp index cbac84c..c85bd83 100644 --- a/Chapter7/3_SimpleText/jni/Wrappers.cpp +++ b/Chapter7/3_SimpleText/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter7/3_SimpleText/jni/WrappersJNI.c b/Chapter7/3_SimpleText/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter7/3_SimpleText/jni/WrappersJNI.c +++ b/Chapter7/3_SimpleText/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter7/3_SimpleText/src/Bitmap.h b/Chapter7/3_SimpleText/src/Bitmap.h index eb33324..6c57c50 100644 --- a/Chapter7/3_SimpleText/src/Bitmap.h +++ b/Chapter7/3_SimpleText/src/Bitmap.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iObject.h" diff --git a/Chapter7/3_SimpleText/src/Localizer.h b/Chapter7/3_SimpleText/src/Localizer.h index dd6cdd1..e3a929b 100644 --- a/Chapter7/3_SimpleText/src/Localizer.h +++ b/Chapter7/3_SimpleText/src/Localizer.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Core/iObject.h" #include diff --git a/Chapter7/3_SimpleText/src/Rendering.cpp b/Chapter7/3_SimpleText/src/Rendering.cpp index 662cf66..a91d12d 100644 --- a/Chapter7/3_SimpleText/src/Rendering.cpp +++ b/Chapter7/3_SimpleText/src/Rendering.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Rendering.h" const int Width = ImageWidth; diff --git a/Chapter7/3_SimpleText/src/Rendering.h b/Chapter7/3_SimpleText/src/Rendering.h index 9491a00..1ddb21d 100644 --- a/Chapter7/3_SimpleText/src/Rendering.h +++ b/Chapter7/3_SimpleText/src/Rendering.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Wrapper_Callbacks.h" diff --git a/Chapter7/3_SimpleText/src/StrUtils.h b/Chapter7/3_SimpleText/src/StrUtils.h index 9ad1243..488bd43 100644 --- a/Chapter7/3_SimpleText/src/StrUtils.h +++ b/Chapter7/3_SimpleText/src/StrUtils.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef StrUtils_h_ #define StrUtils_h_ diff --git a/Chapter7/3_SimpleText/src/TextRenderer.cpp b/Chapter7/3_SimpleText/src/TextRenderer.cpp index 4a2b723..8ef69b6 100644 --- a/Chapter7/3_SimpleText/src/TextRenderer.cpp +++ b/Chapter7/3_SimpleText/src/TextRenderer.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "TextRenderer.h" #include "ft_load.inl" diff --git a/Chapter7/3_SimpleText/src/TextRenderer.h b/Chapter7/3_SimpleText/src/TextRenderer.h index 3cb39ff..92ec4b5 100644 --- a/Chapter7/3_SimpleText/src/TextRenderer.h +++ b/Chapter7/3_SimpleText/src/TextRenderer.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TextRenderer__h__included__ #define __TextRenderer__h__included__ diff --git a/Chapter7/3_SimpleText/src/Wrapper_Android.h b/Chapter7/3_SimpleText/src/Wrapper_Android.h index e1aa2d5..dbf6ec9 100644 --- a/Chapter7/3_SimpleText/src/Wrapper_Android.h +++ b/Chapter7/3_SimpleText/src/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter7/3_SimpleText/src/Wrapper_Callbacks.h b/Chapter7/3_SimpleText/src/Wrapper_Callbacks.h index 66e01d4..dd91ebe 100644 --- a/Chapter7/3_SimpleText/src/Wrapper_Callbacks.h +++ b/Chapter7/3_SimpleText/src/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter7/3_SimpleText/src/Wrapper_Windows.cpp b/Chapter7/3_SimpleText/src/Wrapper_Windows.cpp index 116c166..ee996c0 100644 --- a/Chapter7/3_SimpleText/src/Wrapper_Windows.cpp +++ b/Chapter7/3_SimpleText/src/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Windows.h" HDC hMemDC; diff --git a/Chapter7/3_SimpleText/src/Wrapper_Windows.h b/Chapter7/3_SimpleText/src/Wrapper_Windows.h index 207bd96..c98b23d 100644 --- a/Chapter7/3_SimpleText/src/Wrapper_Windows.h +++ b/Chapter7/3_SimpleText/src/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter7/3_SimpleText/src/bmp.c b/Chapter7/3_SimpleText/src/bmp.c index e0ef4b0..cd4ad78 100644 --- a/Chapter7/3_SimpleText/src/bmp.c +++ b/Chapter7/3_SimpleText/src/bmp.c @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter7/3_SimpleText/src/com/packtpub/ndkcookbook/app14/App14Activity.java b/Chapter7/3_SimpleText/src/com/packtpub/ndkcookbook/app14/App14Activity.java index 4f7bd30..3e69236 100644 --- a/Chapter7/3_SimpleText/src/com/packtpub/ndkcookbook/app14/App14Activity.java +++ b/Chapter7/3_SimpleText/src/com/packtpub/ndkcookbook/app14/App14Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app14; import android.app.Activity; diff --git a/Chapter7/3_SimpleText/src/com/packtpub/ndkcookbook/app14/GLView.java b/Chapter7/3_SimpleText/src/com/packtpub/ndkcookbook/app14/GLView.java index d998130..63f185b 100644 --- a/Chapter7/3_SimpleText/src/com/packtpub/ndkcookbook/app14/GLView.java +++ b/Chapter7/3_SimpleText/src/com/packtpub/ndkcookbook/app14/GLView.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app14; import android.util.Log; diff --git a/Chapter7/3_SimpleText/src/core/iObject.h b/Chapter7/3_SimpleText/src/core/iObject.h index cb0c6ec..05ca0a5 100644 --- a/Chapter7/3_SimpleText/src/core/iObject.h +++ b/Chapter7/3_SimpleText/src/core/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iObject_ #define _iObject_ diff --git a/Chapter7/3_SimpleText/src/fs/Archive.cpp b/Chapter7/3_SimpleText/src/fs/Archive.cpp index 492271c..73b4b31 100644 --- a/Chapter7/3_SimpleText/src/fs/Archive.cpp +++ b/Chapter7/3_SimpleText/src/fs/Archive.cpp @@ -1,8 +1,35 @@ -/** - * \file Archive.cpp - * \brief Archive reader - * \author Viktor Latypov, 2011-2012 - * \author viktor@linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/Chapter7/3_SimpleText/src/fs/Archive.h b/Chapter7/3_SimpleText/src/fs/Archive.h index 32ef8c6..e38ea9a 100644 --- a/Chapter7/3_SimpleText/src/fs/Archive.h +++ b/Chapter7/3_SimpleText/src/fs/Archive.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __archive__h__included__ #define __archive__h__included__ diff --git a/Chapter7/3_SimpleText/src/fs/Blob.h b/Chapter7/3_SimpleText/src/fs/Blob.h index 0e9a002..85517f6 100644 --- a/Chapter7/3_SimpleText/src/fs/Blob.h +++ b/Chapter7/3_SimpleText/src/fs/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TheBlob__h__included__ #define __TheBlob__h__included__ @@ -6,6 +40,7 @@ #include #include "iObject.h" +#include "iIntrusivePtr.h" #undef min #undef max diff --git a/Chapter7/3_SimpleText/src/fs/FileSystem.cpp b/Chapter7/3_SimpleText/src/fs/FileSystem.cpp index b040e25..42b0f16 100644 --- a/Chapter7/3_SimpleText/src/fs/FileSystem.cpp +++ b/Chapter7/3_SimpleText/src/fs/FileSystem.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FileSystem.h" #include "Files.h" #include "MountPoint.h" diff --git a/Chapter7/3_SimpleText/src/fs/FileSystem.h b/Chapter7/3_SimpleText/src/fs/FileSystem.h index 0502389..0da94fc 100644 --- a/Chapter7/3_SimpleText/src/fs/FileSystem.h +++ b/Chapter7/3_SimpleText/src/fs/FileSystem.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _FileSystem_ #define _FileSystem_ diff --git a/Chapter7/3_SimpleText/src/fs/Files.h b/Chapter7/3_SimpleText/src/fs/Files.h index 5fb2d54..528203a 100644 --- a/Chapter7/3_SimpleText/src/fs/Files.h +++ b/Chapter7/3_SimpleText/src/fs/Files.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Files__h__included__ #define __Files__h__included__ @@ -212,37 +246,6 @@ class FileMapper: public iIStream return RealSize; } - virtual std::string ReadLine() - { - const int MAX_LINE_WIDTH = 16384; - char Buf[ MAX_LINE_WIDTH + 1 ]; - - const ubyte* C = &( MapStream()[FPosition] ); - char* Out = Buf; - char* End = Buf + MAX_LINE_WIDTH; - - uint64 Sz = GetSize(); - - while ( FPosition < Sz && Out < End ) - { - FPosition++; - - char Ch = ( *C++ ); - - if ( Ch == 13 ) { continue; } // kill char - - if ( Ch == 10 ) { break; } - - *Out++ = Ch; - } - - ( *Out ) = 0; - - return std::string( Buf ); - } - - - virtual void Seek( const uint64 Position ) { FPosition = Position; } virtual uint64 GetSize() const { return FFile->GetFileSize(); } diff --git a/Chapter7/3_SimpleText/src/fs/MountPoint.h b/Chapter7/3_SimpleText/src/fs/MountPoint.h index 7285e02..5fc8d8c 100644 --- a/Chapter7/3_SimpleText/src/fs/MountPoint.h +++ b/Chapter7/3_SimpleText/src/fs/MountPoint.h @@ -1,10 +1,45 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __MountPoints__h__included__ #define __MountPoints__h__included__ +#include "Engine.h" #include "Files.h" #include "Archive.h" #include -#include "StrUtils.h" + #include #if defined( _WIN32 ) diff --git a/Chapter7/3_SimpleText/src/fs/Streams.h b/Chapter7/3_SimpleText/src/fs/Streams.h index 5b39a7e..1397bd8 100644 --- a/Chapter7/3_SimpleText/src/fs/Streams.h +++ b/Chapter7/3_SimpleText/src/fs/Streams.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iOStream_ #define _iOStream_ @@ -19,8 +53,6 @@ class iIStream: public iObject virtual uint64 GetPos() const = 0; virtual uint64 GetBytesLeft() const { return GetSize() - GetPos(); }; - virtual std::string ReadLine() = 0; - /// Return pointer to the shared memory corresponding to this file virtual const ubyte* MapStream() const = 0; /// Return pointer to the shared memory corresponding to the current position in this file diff --git a/Chapter7/3_SimpleText/src/threading/Event.cpp b/Chapter7/3_SimpleText/src/threading/Event.cpp index b443707..b9fcf35 100644 --- a/Chapter7/3_SimpleText/src/threading/Event.cpp +++ b/Chapter7/3_SimpleText/src/threading/Event.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Event.h" #include diff --git a/Chapter7/3_SimpleText/src/threading/Event.h b/Chapter7/3_SimpleText/src/threading/Event.h index 7d1ece7..0a57af6 100644 --- a/Chapter7/3_SimpleText/src/threading/Event.h +++ b/Chapter7/3_SimpleText/src/threading/Event.h @@ -1,7 +1,42 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Event__h_ #define _Event__h_ #include "Mutex.h" +#include "iIntrusivePtr.h" #include "iObject.h" #include diff --git a/Chapter7/3_SimpleText/src/threading/Mutex.h b/Chapter7/3_SimpleText/src/threading/Mutex.h index 259e6ff..f4f49bf 100644 --- a/Chapter7/3_SimpleText/src/threading/Mutex.h +++ b/Chapter7/3_SimpleText/src/threading/Mutex.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Mutex__h__included__ #define __Mutex__h__included__ diff --git a/Chapter7/3_SimpleText/src/threading/Thread.cpp b/Chapter7/3_SimpleText/src/threading/Thread.cpp index 27d9cd6..2c1bde3 100644 --- a/Chapter7/3_SimpleText/src/threading/Thread.cpp +++ b/Chapter7/3_SimpleText/src/threading/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 diff --git a/Chapter7/3_SimpleText/src/threading/Thread.h b/Chapter7/3_SimpleText/src/threading/Thread.h index bcf1b3e..d36c678 100644 --- a/Chapter7/3_SimpleText/src/threading/Thread.h +++ b/Chapter7/3_SimpleText/src/threading/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ diff --git a/Chapter7/3_SimpleText/src/threading/WorkerThread.cpp b/Chapter7/3_SimpleText/src/threading/WorkerThread.cpp index 2e69c72..dedb71c 100644 --- a/Chapter7/3_SimpleText/src/threading/WorkerThread.cpp +++ b/Chapter7/3_SimpleText/src/threading/WorkerThread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "WorkerThread.h" #include diff --git a/Chapter7/3_SimpleText/src/threading/WorkerThread.h b/Chapter7/3_SimpleText/src/threading/WorkerThread.h index f2317db..df3af4e 100644 --- a/Chapter7/3_SimpleText/src/threading/WorkerThread.h +++ b/Chapter7/3_SimpleText/src/threading/WorkerThread.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _WorkerThread_ #define _WorkerThread_ diff --git a/Chapter8/1_Game/jni/Wrappers.cpp b/Chapter8/1_Game/jni/Wrappers.cpp index 339003c..6ce1e9c 100644 --- a/Chapter8/1_Game/jni/Wrappers.cpp +++ b/Chapter8/1_Game/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter8/1_Game/jni/WrappersJNI.c b/Chapter8/1_Game/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter8/1_Game/jni/WrappersJNI.c +++ b/Chapter8/1_Game/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter8/1_Game/main.cpp b/Chapter8/1_Game/main.cpp index 260d816..93a7d84 100644 --- a/Chapter8/1_Game/main.cpp +++ b/Chapter8/1_Game/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" #include "Globals.h" diff --git a/Chapter8/1_Game/src/Engine.cpp b/Chapter8/1_Game/src/Engine.cpp index 7097091..78e309c 100644 --- a/Chapter8/1_Game/src/Engine.cpp +++ b/Chapter8/1_Game/src/Engine.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Callbacks.h" #if defined( _WIN32 ) diff --git a/Chapter8/1_Game/src/Engine.h b/Chapter8/1_Game/src/Engine.h index 98bca33..12049f7 100644 --- a/Chapter8/1_Game/src/Engine.h +++ b/Chapter8/1_Game/src/Engine.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter8/1_Game/src/LGL/GLClasses.cpp b/Chapter8/1_Game/src/LGL/GLClasses.cpp index 4b5fcb4..ea938f2 100644 --- a/Chapter8/1_Game/src/LGL/GLClasses.cpp +++ b/Chapter8/1_Game/src/LGL/GLClasses.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" #include "GLClasses.h" diff --git a/Chapter8/1_Game/src/LGL/GLClasses.h b/Chapter8/1_Game/src/LGL/GLClasses.h index b6911bd..a5b7682 100644 --- a/Chapter8/1_Game/src/LGL/GLClasses.h +++ b/Chapter8/1_Game/src/LGL/GLClasses.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter8/1_Game/src/LGL/Platform.h b/Chapter8/1_Game/src/LGL/Platform.h index 0959c50..b9596ec 100644 --- a/Chapter8/1_Game/src/LGL/Platform.h +++ b/Chapter8/1_Game/src/LGL/Platform.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter8/1_Game/src/Wrapper_Android.h b/Chapter8/1_Game/src/Wrapper_Android.h index 647480c..e405715 100644 --- a/Chapter8/1_Game/src/Wrapper_Android.h +++ b/Chapter8/1_Game/src/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #ifndef LOGI diff --git a/Chapter8/1_Game/src/Wrapper_Callbacks.h b/Chapter8/1_Game/src/Wrapper_Callbacks.h index bba4733..ccd9f23 100644 --- a/Chapter8/1_Game/src/Wrapper_Callbacks.h +++ b/Chapter8/1_Game/src/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" diff --git a/Chapter8/1_Game/src/Wrapper_Windows.cpp b/Chapter8/1_Game/src/Wrapper_Windows.cpp index f226343..2986792 100644 --- a/Chapter8/1_Game/src/Wrapper_Windows.cpp +++ b/Chapter8/1_Game/src/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" #include diff --git a/Chapter8/1_Game/src/Wrapper_Windows.h b/Chapter8/1_Game/src/Wrapper_Windows.h index ba2a093..d3f3790 100644 --- a/Chapter8/1_Game/src/Wrapper_Windows.h +++ b/Chapter8/1_Game/src/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter8/1_Game/src/com/packtpub/ndkcookbook/game1/GLView.java b/Chapter8/1_Game/src/com/packtpub/ndkcookbook/game1/GLView.java index 5af9e0a..65a23f4 100644 --- a/Chapter8/1_Game/src/com/packtpub/ndkcookbook/game1/GLView.java +++ b/Chapter8/1_Game/src/com/packtpub/ndkcookbook/game1/GLView.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.game1; import android.util.Log; diff --git a/Chapter8/1_Game/src/com/packtpub/ndkcookbook/game1/Game1Activity.java b/Chapter8/1_Game/src/com/packtpub/ndkcookbook/game1/Game1Activity.java index d5acecb..01a43e0 100644 --- a/Chapter8/1_Game/src/com/packtpub/ndkcookbook/game1/Game1Activity.java +++ b/Chapter8/1_Game/src/com/packtpub/ndkcookbook/game1/Game1Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.game1; import android.app.Activity; diff --git a/Chapter8/1_Game/src/core/RingBuffer.h b/Chapter8/1_Game/src/core/RingBuffer.h index 191a992..1ef931f 100644 --- a/Chapter8/1_Game/src/core/RingBuffer.h +++ b/Chapter8/1_Game/src/core/RingBuffer.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter8/1_Game/src/core/VecMath.cpp b/Chapter8/1_Game/src/core/VecMath.cpp index 4cfd530..183755a 100644 --- a/Chapter8/1_Game/src/core/VecMath.cpp +++ b/Chapter8/1_Game/src/core/VecMath.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "VecMath.h" #include diff --git a/Chapter8/1_Game/src/core/VecMath.h b/Chapter8/1_Game/src/core/VecMath.h index 1080f1b..836e4af 100644 --- a/Chapter8/1_Game/src/core/VecMath.h +++ b/Chapter8/1_Game/src/core/VecMath.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter8/1_Game/src/core/iIntrusivePtr.cpp b/Chapter8/1_Game/src/core/iIntrusivePtr.cpp index 982407c..968b860 100644 --- a/Chapter8/1_Game/src/core/iIntrusivePtr.cpp +++ b/Chapter8/1_Game/src/core/iIntrusivePtr.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "iObject.h" namespace LPtr diff --git a/Chapter8/1_Game/src/core/iIntrusivePtr.h b/Chapter8/1_Game/src/core/iIntrusivePtr.h index 9a9816c..dd768a9 100644 --- a/Chapter8/1_Game/src/core/iIntrusivePtr.h +++ b/Chapter8/1_Game/src/core/iIntrusivePtr.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #ifndef NULL diff --git a/Chapter8/1_Game/src/core/iObject.h b/Chapter8/1_Game/src/core/iObject.h index 9ee9515..73e35d2 100644 --- a/Chapter8/1_Game/src/core/iObject.h +++ b/Chapter8/1_Game/src/core/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #if defined(_WIN32) diff --git a/Chapter8/1_Game/src/fs/Archive.cpp b/Chapter8/1_Game/src/fs/Archive.cpp index 3d6d044..011f9fc 100644 --- a/Chapter8/1_Game/src/fs/Archive.cpp +++ b/Chapter8/1_Game/src/fs/Archive.cpp @@ -1,8 +1,35 @@ -/** - * \file Archive.cpp - * \brief Archive reader - * \author Viktor Latypov, 2011-2012 - * \author viktor@linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/Chapter8/1_Game/src/fs/Archive.h b/Chapter8/1_Game/src/fs/Archive.h index 51a25ef..a94cd35 100644 --- a/Chapter8/1_Game/src/fs/Archive.h +++ b/Chapter8/1_Game/src/fs/Archive.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Streams.h" diff --git a/Chapter8/1_Game/src/fs/Blob.h b/Chapter8/1_Game/src/fs/Blob.h index 762a305..e6f4e40 100644 --- a/Chapter8/1_Game/src/fs/Blob.h +++ b/Chapter8/1_Game/src/fs/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter8/1_Game/src/fs/FileSystem.cpp b/Chapter8/1_Game/src/fs/FileSystem.cpp index 8bf836c..4d758c5 100644 --- a/Chapter8/1_Game/src/fs/FileSystem.cpp +++ b/Chapter8/1_Game/src/fs/FileSystem.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FileSystem.h" #include "Files.h" #include "MountPoint.h" diff --git a/Chapter8/1_Game/src/fs/FileSystem.h b/Chapter8/1_Game/src/fs/FileSystem.h index f556a2b..bb71c58 100644 --- a/Chapter8/1_Game/src/fs/FileSystem.h +++ b/Chapter8/1_Game/src/fs/FileSystem.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Files.h" diff --git a/Chapter8/1_Game/src/fs/Files.h b/Chapter8/1_Game/src/fs/Files.h index fcb878c..f9a3d42 100644 --- a/Chapter8/1_Game/src/fs/Files.h +++ b/Chapter8/1_Game/src/fs/Files.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Streams.h" diff --git a/Chapter8/1_Game/src/fs/MountPoint.h b/Chapter8/1_Game/src/fs/MountPoint.h index e198879..56f7e75 100644 --- a/Chapter8/1_Game/src/fs/MountPoint.h +++ b/Chapter8/1_Game/src/fs/MountPoint.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Engine.h" diff --git a/Chapter8/1_Game/src/fs/Streams.h b/Chapter8/1_Game/src/fs/Streams.h index 0db9f1f..41c491c 100644 --- a/Chapter8/1_Game/src/fs/Streams.h +++ b/Chapter8/1_Game/src/fs/Streams.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iObject.h" diff --git a/Chapter8/1_Game/src/game/Field.h b/Chapter8/1_Game/src/game/Field.h index e90b5ad..5d2c110 100644 --- a/Chapter8/1_Game/src/game/Field.h +++ b/Chapter8/1_Game/src/game/Field.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Engine.h" diff --git a/Chapter8/1_Game/src/game/Globals.cpp b/Chapter8/1_Game/src/game/Globals.cpp index f71240d..bd76d95 100644 --- a/Chapter8/1_Game/src/game/Globals.cpp +++ b/Chapter8/1_Game/src/game/Globals.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Globals.h" #include "Shape.h" diff --git a/Chapter8/1_Game/src/game/Globals.h b/Chapter8/1_Game/src/game/Globals.h index 0ae3c8c..a29f920 100644 --- a/Chapter8/1_Game/src/game/Globals.h +++ b/Chapter8/1_Game/src/game/Globals.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Engine.h" diff --git a/Chapter8/1_Game/src/game/Pentomino.cpp b/Chapter8/1_Game/src/game/Pentomino.cpp index 49e3910..2b9380e 100644 --- a/Chapter8/1_Game/src/game/Pentomino.cpp +++ b/Chapter8/1_Game/src/game/Pentomino.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Pentomino.h" /** diff --git a/Chapter8/1_Game/src/game/Pentomino.h b/Chapter8/1_Game/src/game/Pentomino.h index 06b4a07..0257e6f 100644 --- a/Chapter8/1_Game/src/game/Pentomino.h +++ b/Chapter8/1_Game/src/game/Pentomino.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once static const int NUM_SHAPES = 22; diff --git a/Chapter8/1_Game/src/game/Shape.h b/Chapter8/1_Game/src/game/Shape.h index 2f31eb2..36cd759 100644 --- a/Chapter8/1_Game/src/game/Shape.h +++ b/Chapter8/1_Game/src/game/Shape.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Engine.h" diff --git a/Chapter8/1_Game/src/graphics/Bitmap.cpp b/Chapter8/1_Game/src/graphics/Bitmap.cpp index 3128dc4..911785f 100644 --- a/Chapter8/1_Game/src/graphics/Bitmap.cpp +++ b/Chapter8/1_Game/src/graphics/Bitmap.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Bitmap.h" #include diff --git a/Chapter8/1_Game/src/graphics/Bitmap.h b/Chapter8/1_Game/src/graphics/Bitmap.h index 6d6c4fe..895c9b8 100644 --- a/Chapter8/1_Game/src/graphics/Bitmap.h +++ b/Chapter8/1_Game/src/graphics/Bitmap.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter8/1_Game/src/graphics/Canvas.cpp b/Chapter8/1_Game/src/graphics/Canvas.cpp index 99f4701..d75b663 100644 --- a/Chapter8/1_Game/src/graphics/Canvas.cpp +++ b/Chapter8/1_Game/src/graphics/Canvas.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Canvas.h" #include "Geometry.h" #include "GLClasses.h" diff --git a/Chapter8/1_Game/src/graphics/Canvas.h b/Chapter8/1_Game/src/graphics/Canvas.h index 14a673e..3226d18 100644 --- a/Chapter8/1_Game/src/graphics/Canvas.h +++ b/Chapter8/1_Game/src/graphics/Canvas.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter8/1_Game/src/graphics/FI_SaveLoadFlags.h b/Chapter8/1_Game/src/graphics/FI_SaveLoadFlags.h index 3d3787d..5ebb248 100644 --- a/Chapter8/1_Game/src/graphics/FI_SaveLoadFlags.h +++ b/Chapter8/1_Game/src/graphics/FI_SaveLoadFlags.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #if defined( OS_ANDROID ) || defined( OS_MACOSX ) diff --git a/Chapter8/1_Game/src/graphics/FI_Utils.cpp b/Chapter8/1_Game/src/graphics/FI_Utils.cpp index ee385f3..45b4069 100644 --- a/Chapter8/1_Game/src/graphics/FI_Utils.cpp +++ b/Chapter8/1_Game/src/graphics/FI_Utils.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Platform.h" #include "fs/Streams.h" diff --git a/Chapter8/1_Game/src/graphics/FI_Utils.h b/Chapter8/1_Game/src/graphics/FI_Utils.h index 6ced612..b5706d3 100644 --- a/Chapter8/1_Game/src/graphics/FI_Utils.h +++ b/Chapter8/1_Game/src/graphics/FI_Utils.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iIntrusivePtr.h" diff --git a/Chapter8/1_Game/src/graphics/Geometry.cpp b/Chapter8/1_Game/src/graphics/Geometry.cpp index 3c6fc8f..2bf5dac 100644 --- a/Chapter8/1_Game/src/graphics/Geometry.cpp +++ b/Chapter8/1_Game/src/graphics/Geometry.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Geometry.h" clVertexAttribs::clVertexAttribs() diff --git a/Chapter8/1_Game/src/graphics/Geometry.h b/Chapter8/1_Game/src/graphics/Geometry.h index 82496c6..90b6d3e 100644 --- a/Chapter8/1_Game/src/graphics/Geometry.h +++ b/Chapter8/1_Game/src/graphics/Geometry.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter8/1_Game/src/graphics/Gestures.cpp b/Chapter8/1_Game/src/graphics/Gestures.cpp index 0c537a0..8be24c9 100644 --- a/Chapter8/1_Game/src/graphics/Gestures.cpp +++ b/Chapter8/1_Game/src/graphics/Gestures.cpp @@ -1,10 +1,35 @@ -/** - * \file Gestures.cpp - * \brief Gestures handling helpers implementation - * \version 0.6.01 - * \date 21/07/2011 - * \author Sergey Kosarevsky, 2011 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" diff --git a/Chapter8/1_Game/src/graphics/Gestures.h b/Chapter8/1_Game/src/graphics/Gestures.h index 7c320b5..53b0d17 100644 --- a/Chapter8/1_Game/src/graphics/Gestures.h +++ b/Chapter8/1_Game/src/graphics/Gestures.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" diff --git a/Chapter8/1_Game/src/graphics/Multitouch.cpp b/Chapter8/1_Game/src/graphics/Multitouch.cpp index b33ff15..2e62c3b 100644 --- a/Chapter8/1_Game/src/graphics/Multitouch.cpp +++ b/Chapter8/1_Game/src/graphics/Multitouch.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Multitouch.h" #include "Gestures.h" diff --git a/Chapter8/1_Game/src/graphics/Multitouch.h b/Chapter8/1_Game/src/graphics/Multitouch.h index 261136e..0b8043a 100644 --- a/Chapter8/1_Game/src/graphics/Multitouch.h +++ b/Chapter8/1_Game/src/graphics/Multitouch.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter8/1_Game/src/graphics/TextRenderer.cpp b/Chapter8/1_Game/src/graphics/TextRenderer.cpp index 243fc96..1800fdf 100644 --- a/Chapter8/1_Game/src/graphics/TextRenderer.cpp +++ b/Chapter8/1_Game/src/graphics/TextRenderer.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "TextRenderer.h" #include "Bitmap.h" diff --git a/Chapter8/1_Game/src/graphics/TextRenderer.h b/Chapter8/1_Game/src/graphics/TextRenderer.h index b1d42db..418c355 100644 --- a/Chapter8/1_Game/src/graphics/TextRenderer.h +++ b/Chapter8/1_Game/src/graphics/TextRenderer.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TextRenderer__h__included__ #define __TextRenderer__h__included__ diff --git a/Chapter8/1_Game/src/graphics/ft_load.cpp b/Chapter8/1_Game/src/graphics/ft_load.cpp index 7448f73..93ece95 100644 --- a/Chapter8/1_Game/src/graphics/ft_load.cpp +++ b/Chapter8/1_Game/src/graphics/ft_load.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "ft_load.h" #if defined(_WIN32) diff --git a/Chapter8/1_Game/src/graphics/ft_load.h b/Chapter8/1_Game/src/graphics/ft_load.h index fe5c608..3ccea31 100644 --- a/Chapter8/1_Game/src/graphics/ft_load.h +++ b/Chapter8/1_Game/src/graphics/ft_load.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #if defined(_WIN32) diff --git a/Chapter8/1_Game/src/sound/Audio.cpp b/Chapter8/1_Game/src/sound/Audio.cpp index c54c123..0dd98a5 100644 --- a/Chapter8/1_Game/src/sound/Audio.cpp +++ b/Chapter8/1_Game/src/sound/Audio.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Audio.h" extern clAudioThread g_Audio; diff --git a/Chapter8/1_Game/src/sound/Audio.h b/Chapter8/1_Game/src/sound/Audio.h index 1f3b30e..92d5d47 100644 --- a/Chapter8/1_Game/src/sound/Audio.h +++ b/Chapter8/1_Game/src/sound/Audio.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Engine.h" diff --git a/Chapter8/1_Game/src/sound/Decoders.cpp b/Chapter8/1_Game/src/sound/Decoders.cpp index b44c4c0..ebe44db 100644 --- a/Chapter8/1_Game/src/sound/Decoders.cpp +++ b/Chapter8/1_Game/src/sound/Decoders.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Decoders.h" #if defined(ANDROID) diff --git a/Chapter8/1_Game/src/sound/Decoders.h b/Chapter8/1_Game/src/sound/Decoders.h index 7ccecd1..a90427f 100644 --- a/Chapter8/1_Game/src/sound/Decoders.h +++ b/Chapter8/1_Game/src/sound/Decoders.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __OGG_inl__ #define __OGG_inl__ diff --git a/Chapter8/1_Game/src/sound/DecodingProvider.h b/Chapter8/1_Game/src/sound/DecodingProvider.h index 5c43f87..9be354b 100644 --- a/Chapter8/1_Game/src/sound/DecodingProvider.h +++ b/Chapter8/1_Game/src/sound/DecodingProvider.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Engine.h" diff --git a/Chapter8/1_Game/src/sound/MOD.h b/Chapter8/1_Game/src/sound/MOD.h index ca80bda..a0759ec 100644 --- a/Chapter8/1_Game/src/sound/MOD.h +++ b/Chapter8/1_Game/src/sound/MOD.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Decoders.h" diff --git a/Chapter8/1_Game/src/sound/OGG.h b/Chapter8/1_Game/src/sound/OGG.h index 2bf9c72..135f10c 100644 --- a/Chapter8/1_Game/src/sound/OGG.h +++ b/Chapter8/1_Game/src/sound/OGG.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Decoders.h" diff --git a/Chapter8/1_Game/src/threading/Event.cpp b/Chapter8/1_Game/src/threading/Event.cpp index b443707..b9fcf35 100644 --- a/Chapter8/1_Game/src/threading/Event.cpp +++ b/Chapter8/1_Game/src/threading/Event.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Event.h" #include diff --git a/Chapter8/1_Game/src/threading/Event.h b/Chapter8/1_Game/src/threading/Event.h index 6617fec..3ca5456 100644 --- a/Chapter8/1_Game/src/threading/Event.h +++ b/Chapter8/1_Game/src/threading/Event.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Event__h_ #define _Event__h_ diff --git a/Chapter8/1_Game/src/threading/Mutex.h b/Chapter8/1_Game/src/threading/Mutex.h index 0612b91..82f1cec 100644 --- a/Chapter8/1_Game/src/threading/Mutex.h +++ b/Chapter8/1_Game/src/threading/Mutex.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Mutex__h__included__ #define __Mutex__h__included__ diff --git a/Chapter8/1_Game/src/threading/Thread.cpp b/Chapter8/1_Game/src/threading/Thread.cpp index 27d9cd6..573f2a5 100644 --- a/Chapter8/1_Game/src/threading/Thread.cpp +++ b/Chapter8/1_Game/src/threading/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 @@ -103,8 +137,3 @@ native_thread_handle_t iThread::GetCurrentThread() return pthread_self(); #endif } - -/* - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter8/1_Game/src/threading/Thread.h b/Chapter8/1_Game/src/threading/Thread.h index bcf1b3e..ea185f8 100644 --- a/Chapter8/1_Game/src/threading/Thread.h +++ b/Chapter8/1_Game/src/threading/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ @@ -72,10 +96,3 @@ class iThread }; #endif - -/* - * 16/06/2010 - Linux port - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter8/1_Game/src/threading/WorkerThread.cpp b/Chapter8/1_Game/src/threading/WorkerThread.cpp index 91c26fb..a8f4d24 100644 --- a/Chapter8/1_Game/src/threading/WorkerThread.cpp +++ b/Chapter8/1_Game/src/threading/WorkerThread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "WorkerThread.h" #include @@ -122,8 +156,3 @@ void clWorkerThread::Run() FCurrentTask = NULL; } } - -/* - * 05/12/2012 - It's here -*/ diff --git a/Chapter8/1_Game/src/threading/WorkerThread.h b/Chapter8/1_Game/src/threading/WorkerThread.h index 9838000..5fe3e74 100644 --- a/Chapter8/1_Game/src/threading/WorkerThread.h +++ b/Chapter8/1_Game/src/threading/WorkerThread.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _WorkerThread_ #define _WorkerThread_ diff --git a/Chapter9/1_Carousel/jni/Wrappers.cpp b/Chapter9/1_Carousel/jni/Wrappers.cpp index d2a0308..76cb5aa 100644 --- a/Chapter9/1_Carousel/jni/Wrappers.cpp +++ b/Chapter9/1_Carousel/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter9/1_Carousel/jni/WrappersJNI.c b/Chapter9/1_Carousel/jni/WrappersJNI.c index a7c4778..6cdb668 100644 --- a/Chapter9/1_Carousel/jni/WrappersJNI.c +++ b/Chapter9/1_Carousel/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter9/1_Carousel/main.cpp b/Chapter9/1_Carousel/main.cpp index efd58d5..961c1af 100644 --- a/Chapter9/1_Carousel/main.cpp +++ b/Chapter9/1_Carousel/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" #include "Wrapper_Callbacks.h" #include "FileSystem.h" diff --git a/Chapter9/1_Carousel/src/Engine.cpp b/Chapter9/1_Carousel/src/Engine.cpp index 443df8e..fa18f13 100644 --- a/Chapter9/1_Carousel/src/Engine.cpp +++ b/Chapter9/1_Carousel/src/Engine.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Callbacks.h" #if defined( _WIN32 ) diff --git a/Chapter9/1_Carousel/src/Engine.h b/Chapter9/1_Carousel/src/Engine.h index 934f86f..e58ed11 100644 --- a/Chapter9/1_Carousel/src/Engine.h +++ b/Chapter9/1_Carousel/src/Engine.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Wrapper_Callbacks.h" diff --git a/Chapter9/1_Carousel/src/Gestures.cpp b/Chapter9/1_Carousel/src/Gestures.cpp index 4869d12..d1a9dc6 100644 --- a/Chapter9/1_Carousel/src/Gestures.cpp +++ b/Chapter9/1_Carousel/src/Gestures.cpp @@ -1,10 +1,35 @@ -/** - * \file Gestures.cpp - * \brief Gestures handling helpers implementation - * \version 0.6.01 - * \date 21/07/2011 - * \author Sergey Kosarevsky, 2011 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" diff --git a/Chapter9/1_Carousel/src/Gestures.h b/Chapter9/1_Carousel/src/Gestures.h index 7c320b5..53b0d17 100644 --- a/Chapter9/1_Carousel/src/Gestures.h +++ b/Chapter9/1_Carousel/src/Gestures.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" diff --git a/Chapter9/1_Carousel/src/Multitouch.cpp b/Chapter9/1_Carousel/src/Multitouch.cpp index c17d19e..d9660d3 100644 --- a/Chapter9/1_Carousel/src/Multitouch.cpp +++ b/Chapter9/1_Carousel/src/Multitouch.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Multitouch.h" #include "Gestures.h" diff --git a/Chapter9/1_Carousel/src/Multitouch.h b/Chapter9/1_Carousel/src/Multitouch.h index 2730f56..2e7e86c 100644 --- a/Chapter9/1_Carousel/src/Multitouch.h +++ b/Chapter9/1_Carousel/src/Multitouch.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter9/1_Carousel/src/Platform.h b/Chapter9/1_Carousel/src/Platform.h index 0959c50..b9596ec 100644 --- a/Chapter9/1_Carousel/src/Platform.h +++ b/Chapter9/1_Carousel/src/Platform.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter9/1_Carousel/src/Rendering.cpp b/Chapter9/1_Carousel/src/Rendering.cpp index 662cf66..a91d12d 100644 --- a/Chapter9/1_Carousel/src/Rendering.cpp +++ b/Chapter9/1_Carousel/src/Rendering.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Rendering.h" const int Width = ImageWidth; diff --git a/Chapter9/1_Carousel/src/Rendering.h b/Chapter9/1_Carousel/src/Rendering.h index 9491a00..1ddb21d 100644 --- a/Chapter9/1_Carousel/src/Rendering.h +++ b/Chapter9/1_Carousel/src/Rendering.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Wrapper_Callbacks.h" diff --git a/Chapter9/1_Carousel/src/VecMath.cpp b/Chapter9/1_Carousel/src/VecMath.cpp index d933a67..183755a 100644 --- a/Chapter9/1_Carousel/src/VecMath.cpp +++ b/Chapter9/1_Carousel/src/VecMath.cpp @@ -1,11 +1,36 @@ /* - (Part of Linderdaum Engine) - Version 0.5.72 - (12/03/2007) - (C) Kosarevsky Sergey, 2005-2007 - support@linderdaum.com - http://www.linderdaum.com -*/ + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ #include "VecMath.h" #include @@ -1556,14 +1581,3 @@ float LNoise::fBm( float* f, float Octaves ) return Math::Clamp( Value, -0.99999f, 0.99999f ); } - -/* - * 17/01/2011 - LookAtStereo() - PerspectiveStereo() - * 14/01/2010 - ProjectPointNDC() - UnProjectPointNDC() - * 28/02/2008 - It's here -*/ diff --git a/Chapter9/1_Carousel/src/VecMath.h b/Chapter9/1_Carousel/src/VecMath.h index 4c5c59e..d3f492f 100644 --- a/Chapter9/1_Carousel/src/VecMath.h +++ b/Chapter9/1_Carousel/src/VecMath.h @@ -1,11 +1,35 @@ -/** - * \file LTransform.h - * \brief Transformation - * \version 0.5.91 - * \date 22/08/2010 - * \author Viktor Latypov, 2009-2010 - * \author Setgey Kosarevsky, 2010 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __Transform__h__included__ @@ -2356,8 +2380,3 @@ class LRect }; #endif - -/* - * 01/03/2010 - Log section added -*/ diff --git a/Chapter9/1_Carousel/src/Wrapper_Android.h b/Chapter9/1_Carousel/src/Wrapper_Android.h index b6fe646..1b9c4e2 100644 --- a/Chapter9/1_Carousel/src/Wrapper_Android.h +++ b/Chapter9/1_Carousel/src/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Android_h_ #define _Wrapper_Android_h_ diff --git a/Chapter9/1_Carousel/src/Wrapper_Callbacks.h b/Chapter9/1_Carousel/src/Wrapper_Callbacks.h index e1fe6d3..40bd47f 100644 --- a/Chapter9/1_Carousel/src/Wrapper_Callbacks.h +++ b/Chapter9/1_Carousel/src/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Callbacks_h_ #define _Wrapper_Callbacks_h_ diff --git a/Chapter9/1_Carousel/src/Wrapper_Windows.cpp b/Chapter9/1_Carousel/src/Wrapper_Windows.cpp index bad27c5..f2ba38c 100644 --- a/Chapter9/1_Carousel/src/Wrapper_Windows.cpp +++ b/Chapter9/1_Carousel/src/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Windows.h" #include "Gestures.h" #include "VecMath.h" diff --git a/Chapter9/1_Carousel/src/Wrapper_Windows.h b/Chapter9/1_Carousel/src/Wrapper_Windows.h index 207bd96..c98b23d 100644 --- a/Chapter9/1_Carousel/src/Wrapper_Windows.h +++ b/Chapter9/1_Carousel/src/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Wrapper_Windows_h_ #define _Wrapper_Windows_h_ diff --git a/Chapter9/1_Carousel/src/carousel/Curve.h b/Chapter9/1_Carousel/src/carousel/Curve.h index f127120..a7c88f2 100644 --- a/Chapter9/1_Carousel/src/carousel/Curve.h +++ b/Chapter9/1_Carousel/src/carousel/Curve.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" #include diff --git a/Chapter9/1_Carousel/src/carousel/FlowFlinger.cpp b/Chapter9/1_Carousel/src/carousel/FlowFlinger.cpp index 445c994..0209b70 100644 --- a/Chapter9/1_Carousel/src/carousel/FlowFlinger.cpp +++ b/Chapter9/1_Carousel/src/carousel/FlowFlinger.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FlowUI.h" vec2 Env_GetMouse(); diff --git a/Chapter9/1_Carousel/src/carousel/FlowFlinger.h b/Chapter9/1_Carousel/src/carousel/FlowFlinger.h index 9c2df39..99b9405 100644 --- a/Chapter9/1_Carousel/src/carousel/FlowFlinger.h +++ b/Chapter9/1_Carousel/src/carousel/FlowFlinger.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iObject.h" #include "VecMath.h" diff --git a/Chapter9/1_Carousel/src/carousel/FlowUI.h b/Chapter9/1_Carousel/src/carousel/FlowUI.h index d85d31b..0aea476 100644 --- a/Chapter9/1_Carousel/src/carousel/FlowUI.h +++ b/Chapter9/1_Carousel/src/carousel/FlowUI.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "FlowFlinger.h" diff --git a/Chapter9/1_Carousel/src/com/packtpub/ndkcookbook/app13/App13Activity.java b/Chapter9/1_Carousel/src/com/packtpub/ndkcookbook/app13/App13Activity.java index 55865fb..8cafda3 100644 --- a/Chapter9/1_Carousel/src/com/packtpub/ndkcookbook/app13/App13Activity.java +++ b/Chapter9/1_Carousel/src/com/packtpub/ndkcookbook/app13/App13Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app13; import android.app.Activity; diff --git a/Chapter9/1_Carousel/src/com/packtpub/ndkcookbook/app13/GLView.java b/Chapter9/1_Carousel/src/com/packtpub/ndkcookbook/app13/GLView.java index 3f9a56b..fd2216d 100644 --- a/Chapter9/1_Carousel/src/com/packtpub/ndkcookbook/app13/GLView.java +++ b/Chapter9/1_Carousel/src/com/packtpub/ndkcookbook/app13/GLView.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.app13; import android.util.Log; diff --git a/Chapter9/1_Carousel/src/core/RingBuffer.h b/Chapter9/1_Carousel/src/core/RingBuffer.h index 191a992..1ef931f 100644 --- a/Chapter9/1_Carousel/src/core/RingBuffer.h +++ b/Chapter9/1_Carousel/src/core/RingBuffer.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter9/1_Carousel/src/core/iObject.h b/Chapter9/1_Carousel/src/core/iObject.h index cb0c6ec..05ca0a5 100644 --- a/Chapter9/1_Carousel/src/core/iObject.h +++ b/Chapter9/1_Carousel/src/core/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iObject_ #define _iObject_ diff --git a/Chapter9/1_Carousel/src/fs/Archive.cpp b/Chapter9/1_Carousel/src/fs/Archive.cpp index 492271c..73b4b31 100644 --- a/Chapter9/1_Carousel/src/fs/Archive.cpp +++ b/Chapter9/1_Carousel/src/fs/Archive.cpp @@ -1,8 +1,35 @@ -/** - * \file Archive.cpp - * \brief Archive reader - * \author Viktor Latypov, 2011-2012 - * \author viktor@linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/Chapter9/1_Carousel/src/fs/Archive.h b/Chapter9/1_Carousel/src/fs/Archive.h index 32ef8c6..e38ea9a 100644 --- a/Chapter9/1_Carousel/src/fs/Archive.h +++ b/Chapter9/1_Carousel/src/fs/Archive.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __archive__h__included__ #define __archive__h__included__ diff --git a/Chapter9/1_Carousel/src/fs/Blob.h b/Chapter9/1_Carousel/src/fs/Blob.h index 0e9a002..4a52bcb 100644 --- a/Chapter9/1_Carousel/src/fs/Blob.h +++ b/Chapter9/1_Carousel/src/fs/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TheBlob__h__included__ #define __TheBlob__h__included__ diff --git a/Chapter9/1_Carousel/src/fs/FileSystem.cpp b/Chapter9/1_Carousel/src/fs/FileSystem.cpp index b040e25..42b0f16 100644 --- a/Chapter9/1_Carousel/src/fs/FileSystem.cpp +++ b/Chapter9/1_Carousel/src/fs/FileSystem.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FileSystem.h" #include "Files.h" #include "MountPoint.h" diff --git a/Chapter9/1_Carousel/src/fs/FileSystem.h b/Chapter9/1_Carousel/src/fs/FileSystem.h index 0502389..0da94fc 100644 --- a/Chapter9/1_Carousel/src/fs/FileSystem.h +++ b/Chapter9/1_Carousel/src/fs/FileSystem.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _FileSystem_ #define _FileSystem_ diff --git a/Chapter9/1_Carousel/src/fs/Files.h b/Chapter9/1_Carousel/src/fs/Files.h index f7e86be..528203a 100644 --- a/Chapter9/1_Carousel/src/fs/Files.h +++ b/Chapter9/1_Carousel/src/fs/Files.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Files__h__included__ #define __Files__h__included__ diff --git a/Chapter9/1_Carousel/src/fs/MountPoint.h b/Chapter9/1_Carousel/src/fs/MountPoint.h index b6ad326..5fc8d8c 100644 --- a/Chapter9/1_Carousel/src/fs/MountPoint.h +++ b/Chapter9/1_Carousel/src/fs/MountPoint.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __MountPoints__h__included__ #define __MountPoints__h__included__ diff --git a/Chapter9/1_Carousel/src/fs/Streams.h b/Chapter9/1_Carousel/src/fs/Streams.h index fa64b47..1397bd8 100644 --- a/Chapter9/1_Carousel/src/fs/Streams.h +++ b/Chapter9/1_Carousel/src/fs/Streams.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _iOStream_ #define _iOStream_ diff --git a/Chapter9/1_Carousel/src/threading/Event.cpp b/Chapter9/1_Carousel/src/threading/Event.cpp index b443707..b9fcf35 100644 --- a/Chapter9/1_Carousel/src/threading/Event.cpp +++ b/Chapter9/1_Carousel/src/threading/Event.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Event.h" #include diff --git a/Chapter9/1_Carousel/src/threading/Event.h b/Chapter9/1_Carousel/src/threading/Event.h index 7d1ece7..b5e307b 100644 --- a/Chapter9/1_Carousel/src/threading/Event.h +++ b/Chapter9/1_Carousel/src/threading/Event.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Event__h_ #define _Event__h_ diff --git a/Chapter9/1_Carousel/src/threading/Mutex.h b/Chapter9/1_Carousel/src/threading/Mutex.h index 259e6ff..f4f49bf 100644 --- a/Chapter9/1_Carousel/src/threading/Mutex.h +++ b/Chapter9/1_Carousel/src/threading/Mutex.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Mutex__h__included__ #define __Mutex__h__included__ diff --git a/Chapter9/1_Carousel/src/threading/Thread.cpp b/Chapter9/1_Carousel/src/threading/Thread.cpp index 27d9cd6..573f2a5 100644 --- a/Chapter9/1_Carousel/src/threading/Thread.cpp +++ b/Chapter9/1_Carousel/src/threading/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 @@ -103,8 +137,3 @@ native_thread_handle_t iThread::GetCurrentThread() return pthread_self(); #endif } - -/* - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter9/1_Carousel/src/threading/Thread.h b/Chapter9/1_Carousel/src/threading/Thread.h index bcf1b3e..ea185f8 100644 --- a/Chapter9/1_Carousel/src/threading/Thread.h +++ b/Chapter9/1_Carousel/src/threading/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ @@ -72,10 +96,3 @@ class iThread }; #endif - -/* - * 16/06/2010 - Linux port - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter9/1_Carousel/src/threading/WorkerThread.cpp b/Chapter9/1_Carousel/src/threading/WorkerThread.cpp index 2e69c72..1405ba9 100644 --- a/Chapter9/1_Carousel/src/threading/WorkerThread.cpp +++ b/Chapter9/1_Carousel/src/threading/WorkerThread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "WorkerThread.h" #include @@ -122,8 +156,3 @@ void WorkerThread::Run() FCurrentTask = NULL; } } - -/* - * 05/12/2012 - It's here -*/ diff --git a/Chapter9/1_Carousel/src/threading/WorkerThread.h b/Chapter9/1_Carousel/src/threading/WorkerThread.h index f2317db..df3af4e 100644 --- a/Chapter9/1_Carousel/src/threading/WorkerThread.h +++ b/Chapter9/1_Carousel/src/threading/WorkerThread.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _WorkerThread_ #define _WorkerThread_ diff --git a/Chapter9/2_PuzzleProto/jni/Wrappers.cpp b/Chapter9/2_PuzzleProto/jni/Wrappers.cpp index a18f8d0..db72032 100644 --- a/Chapter9/2_PuzzleProto/jni/Wrappers.cpp +++ b/Chapter9/2_PuzzleProto/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter9/2_PuzzleProto/jni/WrappersJNI.c b/Chapter9/2_PuzzleProto/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter9/2_PuzzleProto/jni/WrappersJNI.c +++ b/Chapter9/2_PuzzleProto/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter9/2_PuzzleProto/main.cpp b/Chapter9/2_PuzzleProto/main.cpp index 63994cb..6d6a5ce 100644 --- a/Chapter9/2_PuzzleProto/main.cpp +++ b/Chapter9/2_PuzzleProto/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" #include "Game.h" diff --git a/Chapter9/2_PuzzleProto/src/com/packtpub/ndkcookbook/game1/GLView.java b/Chapter9/2_PuzzleProto/src/com/packtpub/ndkcookbook/game1/GLView.java index 5af9e0a..65a23f4 100644 --- a/Chapter9/2_PuzzleProto/src/com/packtpub/ndkcookbook/game1/GLView.java +++ b/Chapter9/2_PuzzleProto/src/com/packtpub/ndkcookbook/game1/GLView.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.game1; import android.util.Log; diff --git a/Chapter9/2_PuzzleProto/src/com/packtpub/ndkcookbook/game1/Game1Activity.java b/Chapter9/2_PuzzleProto/src/com/packtpub/ndkcookbook/game1/Game1Activity.java index 298c328..bf34e48 100644 --- a/Chapter9/2_PuzzleProto/src/com/packtpub/ndkcookbook/game1/Game1Activity.java +++ b/Chapter9/2_PuzzleProto/src/com/packtpub/ndkcookbook/game1/Game1Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.game1; import android.app.Activity; diff --git a/Chapter9/2_PuzzleProto/src/game/Game.cpp b/Chapter9/2_PuzzleProto/src/game/Game.cpp index 980719d..05a16b7 100644 --- a/Chapter9/2_PuzzleProto/src/game/Game.cpp +++ b/Chapter9/2_PuzzleProto/src/game/Game.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Game.h" void Puzzle::Retoss( int W, int H ) diff --git a/Chapter9/2_PuzzleProto/src/game/Game.h b/Chapter9/2_PuzzleProto/src/game/Game.h index 3da3ef4..cf3ae7a 100644 --- a/Chapter9/2_PuzzleProto/src/game/Game.h +++ b/Chapter9/2_PuzzleProto/src/game/Game.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Tile.h" #include diff --git a/Chapter9/2_PuzzleProto/src/game/Tile.h b/Chapter9/2_PuzzleProto/src/game/Tile.h index 1f24c27..74aa1cc 100644 --- a/Chapter9/2_PuzzleProto/src/game/Tile.h +++ b/Chapter9/2_PuzzleProto/src/game/Tile.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" diff --git a/Chapter9/3_UIPrototype/jni/Wrappers.cpp b/Chapter9/3_UIPrototype/jni/Wrappers.cpp index 798730f..d356bbe 100644 --- a/Chapter9/3_UIPrototype/jni/Wrappers.cpp +++ b/Chapter9/3_UIPrototype/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter9/3_UIPrototype/jni/WrappersJNI.c b/Chapter9/3_UIPrototype/jni/WrappersJNI.c index a7c4778..6cdb668 100644 --- a/Chapter9/3_UIPrototype/jni/WrappersJNI.c +++ b/Chapter9/3_UIPrototype/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter9/3_UIPrototype/main.cpp b/Chapter9/3_UIPrototype/main.cpp index 8e47e08..4e0c5ae 100644 --- a/Chapter9/3_UIPrototype/main.cpp +++ b/Chapter9/3_UIPrototype/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" #include "Game.h" diff --git a/Chapter9/3_UIPrototype/src/com/packtpub/ndkcookbook/game1/GLView.java b/Chapter9/3_UIPrototype/src/com/packtpub/ndkcookbook/game1/GLView.java index 5af9e0a..65a23f4 100644 --- a/Chapter9/3_UIPrototype/src/com/packtpub/ndkcookbook/game1/GLView.java +++ b/Chapter9/3_UIPrototype/src/com/packtpub/ndkcookbook/game1/GLView.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.game1; import android.util.Log; diff --git a/Chapter9/3_UIPrototype/src/com/packtpub/ndkcookbook/game1/Game1Activity.java b/Chapter9/3_UIPrototype/src/com/packtpub/ndkcookbook/game1/Game1Activity.java index 614d6e2..9391e59 100644 --- a/Chapter9/3_UIPrototype/src/com/packtpub/ndkcookbook/game1/Game1Activity.java +++ b/Chapter9/3_UIPrototype/src/com/packtpub/ndkcookbook/game1/Game1Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.game1; import android.app.Activity; diff --git a/Chapter9/3_UIPrototype/src/game/Game.cpp b/Chapter9/3_UIPrototype/src/game/Game.cpp index 81b8bfa..2ce1849 100644 --- a/Chapter9/3_UIPrototype/src/game/Game.cpp +++ b/Chapter9/3_UIPrototype/src/game/Game.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Game.h" void clPuzzle::Retoss( int W, int H ) diff --git a/Chapter9/3_UIPrototype/src/game/Game.h b/Chapter9/3_UIPrototype/src/game/Game.h index 91fb85a..efb114d 100644 --- a/Chapter9/3_UIPrototype/src/game/Game.h +++ b/Chapter9/3_UIPrototype/src/game/Game.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Tile.h" diff --git a/Chapter9/3_UIPrototype/src/game/Page_About.h b/Chapter9/3_UIPrototype/src/game/Page_About.h index c1d9ab5..0699f23 100644 --- a/Chapter9/3_UIPrototype/src/game/Page_About.h +++ b/Chapter9/3_UIPrototype/src/game/Page_About.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "GUI.h" diff --git a/Chapter9/3_UIPrototype/src/game/Page_Game.h b/Chapter9/3_UIPrototype/src/game/Page_Game.h index 14945c9..aaec907 100644 --- a/Chapter9/3_UIPrototype/src/game/Page_Game.h +++ b/Chapter9/3_UIPrototype/src/game/Page_Game.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "GUI.h" diff --git a/Chapter9/3_UIPrototype/src/game/Page_MainMenu.h b/Chapter9/3_UIPrototype/src/game/Page_MainMenu.h index 0f4c5e9..5d494c4 100644 --- a/Chapter9/3_UIPrototype/src/game/Page_MainMenu.h +++ b/Chapter9/3_UIPrototype/src/game/Page_MainMenu.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "GUI.h" diff --git a/Chapter9/3_UIPrototype/src/game/Tile.h b/Chapter9/3_UIPrototype/src/game/Tile.h index 1f24c27..74aa1cc 100644 --- a/Chapter9/3_UIPrototype/src/game/Tile.h +++ b/Chapter9/3_UIPrototype/src/game/Tile.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/jni/Wrappers.cpp b/Chapter9/4_CarouselWithOpenGLAndPicasa/jni/Wrappers.cpp index 339003c..6ce1e9c 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/jni/Wrappers.cpp +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/jni/WrappersJNI.c b/Chapter9/4_CarouselWithOpenGLAndPicasa/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/jni/WrappersJNI.c +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/main.cpp b/Chapter9/4_CarouselWithOpenGLAndPicasa/main.cpp index d1876f7..47ab3ce 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/main.cpp +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/main.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" #include diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/Curve.h b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/Curve.h index f127120..a7c88f2 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/Curve.h +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/Curve.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" #include diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/FlowFlinger.cpp b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/FlowFlinger.cpp index 445c994..0209b70 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/FlowFlinger.cpp +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/FlowFlinger.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FlowUI.h" vec2 Env_GetMouse(); diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/FlowFlinger.h b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/FlowFlinger.h index eba7af7..fc81756 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/FlowFlinger.h +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/FlowFlinger.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iIntrusivePtr.h" diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/FlowUI.h b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/FlowUI.h index e93d4fe..7fb522f 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/FlowUI.h +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/FlowUI.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "FlowFlinger.h" diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/GeomUtil.h b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/GeomUtil.h index 7bf8375..a303ea6 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/GeomUtil.h +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/carousel/GeomUtil.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/com/packtpub/ndkcookbook/app13/GLView.java b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/com/packtpub/ndkcookbook/app13/GLView.java index 5af9e0a..65a23f4 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/com/packtpub/ndkcookbook/app13/GLView.java +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/com/packtpub/ndkcookbook/app13/GLView.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.game1; import android.util.Log; diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/com/packtpub/ndkcookbook/app13/Game1Activity.java b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/com/packtpub/ndkcookbook/app13/Game1Activity.java index 298c328..bf34e48 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/com/packtpub/ndkcookbook/app13/Game1Activity.java +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/com/packtpub/ndkcookbook/app13/Game1Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.game1; import android.app.Activity; diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/GalleryTable.cpp b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/GalleryTable.cpp index 7a6820e..fb1cd9b 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/GalleryTable.cpp +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/GalleryTable.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "GalleryTable.h" #include "ImageTypes.h" diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/GalleryTable.h b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/GalleryTable.h index c8e770d..b6fb6b5 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/GalleryTable.h +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/GalleryTable.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iObject.h" diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/Globals.cpp b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/Globals.cpp index dab4008..fb54f21 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/Globals.cpp +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/Globals.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Globals.h" clPtr g_Downloader; diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/Globals.h b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/Globals.h index 8bbe361..b85f822 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/Globals.h +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/Globals.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Downloader.h" diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/ImageLoadTask.h b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/ImageLoadTask.h index d13f164..524e511 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/ImageLoadTask.h +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/ImageLoadTask.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iObject.h" diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/ImageTypes.cpp b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/ImageTypes.cpp index 6629368..3f51cb0 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/ImageTypes.cpp +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/ImageTypes.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "ImageTypes.h" #include "Globals.h" #include "ImageLoadTask.h" diff --git a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/ImageTypes.h b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/ImageTypes.h index f6ddee2..040c761 100644 --- a/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/ImageTypes.h +++ b/Chapter9/4_CarouselWithOpenGLAndPicasa/src/game/ImageTypes.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iObject.h" diff --git a/Chapter9/5_Puzzle/jni/Wrappers.cpp b/Chapter9/5_Puzzle/jni/Wrappers.cpp index e1fac5e..3ad3e45 100644 --- a/Chapter9/5_Puzzle/jni/Wrappers.cpp +++ b/Chapter9/5_Puzzle/jni/Wrappers.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include #include diff --git a/Chapter9/5_Puzzle/jni/WrappersJNI.c b/Chapter9/5_Puzzle/jni/WrappersJNI.c index 64b878e..34618c0 100644 --- a/Chapter9/5_Puzzle/jni/WrappersJNI.c +++ b/Chapter9/5_Puzzle/jni/WrappersJNI.c @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include #include diff --git a/Chapter9/5_Puzzle/main.cpp b/Chapter9/5_Puzzle/main.cpp index 69e09a0..2e4a262 100644 --- a/Chapter9/5_Puzzle/main.cpp +++ b/Chapter9/5_Puzzle/main.cpp @@ -1,3 +1,36 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" #include diff --git a/Chapter9/5_Puzzle/src/carousel/Curve.h b/Chapter9/5_Puzzle/src/carousel/Curve.h index f127120..a7c88f2 100644 --- a/Chapter9/5_Puzzle/src/carousel/Curve.h +++ b/Chapter9/5_Puzzle/src/carousel/Curve.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" #include diff --git a/Chapter9/5_Puzzle/src/carousel/FlowFlinger.cpp b/Chapter9/5_Puzzle/src/carousel/FlowFlinger.cpp index 445c994..0209b70 100644 --- a/Chapter9/5_Puzzle/src/carousel/FlowFlinger.cpp +++ b/Chapter9/5_Puzzle/src/carousel/FlowFlinger.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FlowUI.h" vec2 Env_GetMouse(); diff --git a/Chapter9/5_Puzzle/src/carousel/FlowFlinger.h b/Chapter9/5_Puzzle/src/carousel/FlowFlinger.h index 0e8c510..da73dde 100644 --- a/Chapter9/5_Puzzle/src/carousel/FlowFlinger.h +++ b/Chapter9/5_Puzzle/src/carousel/FlowFlinger.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iIntrusivePtr.h" diff --git a/Chapter9/5_Puzzle/src/carousel/FlowUI.h b/Chapter9/5_Puzzle/src/carousel/FlowUI.h index e93d4fe..7fb522f 100644 --- a/Chapter9/5_Puzzle/src/carousel/FlowUI.h +++ b/Chapter9/5_Puzzle/src/carousel/FlowUI.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "FlowFlinger.h" diff --git a/Chapter9/5_Puzzle/src/carousel/GeomUtil.h b/Chapter9/5_Puzzle/src/carousel/GeomUtil.h index 7bf8375..a303ea6 100644 --- a/Chapter9/5_Puzzle/src/carousel/GeomUtil.h +++ b/Chapter9/5_Puzzle/src/carousel/GeomUtil.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" diff --git a/Chapter9/5_Puzzle/src/com/packtpub/ndkcookbook/app13/GLView.java b/Chapter9/5_Puzzle/src/com/packtpub/ndkcookbook/app13/GLView.java index 5af9e0a..65a23f4 100644 --- a/Chapter9/5_Puzzle/src/com/packtpub/ndkcookbook/app13/GLView.java +++ b/Chapter9/5_Puzzle/src/com/packtpub/ndkcookbook/app13/GLView.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.game1; import android.util.Log; diff --git a/Chapter9/5_Puzzle/src/com/packtpub/ndkcookbook/app13/Game1Activity.java b/Chapter9/5_Puzzle/src/com/packtpub/ndkcookbook/app13/Game1Activity.java index 614d6e2..9391e59 100644 --- a/Chapter9/5_Puzzle/src/com/packtpub/ndkcookbook/app13/Game1Activity.java +++ b/Chapter9/5_Puzzle/src/com/packtpub/ndkcookbook/app13/Game1Activity.java @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + package com.packtpub.ndkcookbook.game1; import android.app.Activity; diff --git a/Chapter9/5_Puzzle/src/game/GalleryTable.cpp b/Chapter9/5_Puzzle/src/game/GalleryTable.cpp index 93661d5..7d723fc 100644 --- a/Chapter9/5_Puzzle/src/game/GalleryTable.cpp +++ b/Chapter9/5_Puzzle/src/game/GalleryTable.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Globals.h" #include "GalleryTable.h" diff --git a/Chapter9/5_Puzzle/src/game/GalleryTable.h b/Chapter9/5_Puzzle/src/game/GalleryTable.h index d757492..ffea55e 100644 --- a/Chapter9/5_Puzzle/src/game/GalleryTable.h +++ b/Chapter9/5_Puzzle/src/game/GalleryTable.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iObject.h" diff --git a/Chapter9/5_Puzzle/src/game/Game.cpp b/Chapter9/5_Puzzle/src/game/Game.cpp index 81b8bfa..2ce1849 100644 --- a/Chapter9/5_Puzzle/src/game/Game.cpp +++ b/Chapter9/5_Puzzle/src/game/Game.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Game.h" void clPuzzle::Retoss( int W, int H ) diff --git a/Chapter9/5_Puzzle/src/game/Game.h b/Chapter9/5_Puzzle/src/game/Game.h index 91fb85a..efb114d 100644 --- a/Chapter9/5_Puzzle/src/game/Game.h +++ b/Chapter9/5_Puzzle/src/game/Game.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Tile.h" diff --git a/Chapter9/5_Puzzle/src/game/Globals.cpp b/Chapter9/5_Puzzle/src/game/Globals.cpp index dab4008..fb54f21 100644 --- a/Chapter9/5_Puzzle/src/game/Globals.cpp +++ b/Chapter9/5_Puzzle/src/game/Globals.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Globals.h" clPtr g_Downloader; diff --git a/Chapter9/5_Puzzle/src/game/Globals.h b/Chapter9/5_Puzzle/src/game/Globals.h index d7672e1..2bec0fa 100644 --- a/Chapter9/5_Puzzle/src/game/Globals.h +++ b/Chapter9/5_Puzzle/src/game/Globals.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "GLClasses.h" diff --git a/Chapter9/5_Puzzle/src/game/ImageLoadTask.h b/Chapter9/5_Puzzle/src/game/ImageLoadTask.h index d13f164..524e511 100644 --- a/Chapter9/5_Puzzle/src/game/ImageLoadTask.h +++ b/Chapter9/5_Puzzle/src/game/ImageLoadTask.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iObject.h" diff --git a/Chapter9/5_Puzzle/src/game/ImageTypes.cpp b/Chapter9/5_Puzzle/src/game/ImageTypes.cpp index e596f3b..2907eaa 100644 --- a/Chapter9/5_Puzzle/src/game/ImageTypes.cpp +++ b/Chapter9/5_Puzzle/src/game/ImageTypes.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "ImageTypes.h" #include "Globals.h" #include "ImageLoadTask.h" diff --git a/Chapter9/5_Puzzle/src/game/ImageTypes.h b/Chapter9/5_Puzzle/src/game/ImageTypes.h index f6ddee2..040c761 100644 --- a/Chapter9/5_Puzzle/src/game/ImageTypes.h +++ b/Chapter9/5_Puzzle/src/game/ImageTypes.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iObject.h" diff --git a/Chapter9/5_Puzzle/src/game/Page_About.h b/Chapter9/5_Puzzle/src/game/Page_About.h index e909a48..c3f9dde 100644 --- a/Chapter9/5_Puzzle/src/game/Page_About.h +++ b/Chapter9/5_Puzzle/src/game/Page_About.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "GUI.h" diff --git a/Chapter9/5_Puzzle/src/game/Page_Gallery.h b/Chapter9/5_Puzzle/src/game/Page_Gallery.h index c99fd00..4d1a6c2 100644 --- a/Chapter9/5_Puzzle/src/game/Page_Gallery.h +++ b/Chapter9/5_Puzzle/src/game/Page_Gallery.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Globals.h" diff --git a/Chapter9/5_Puzzle/src/game/Page_Game.h b/Chapter9/5_Puzzle/src/game/Page_Game.h index 0a7f166..96cef4f 100644 --- a/Chapter9/5_Puzzle/src/game/Page_Game.h +++ b/Chapter9/5_Puzzle/src/game/Page_Game.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "GUI.h" diff --git a/Chapter9/5_Puzzle/src/game/Page_MainMenu.cpp b/Chapter9/5_Puzzle/src/game/Page_MainMenu.cpp index 1e1d6df..c9558a4 100644 --- a/Chapter9/5_Puzzle/src/game/Page_MainMenu.cpp +++ b/Chapter9/5_Puzzle/src/game/Page_MainMenu.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" #include "Globals.h" diff --git a/Chapter9/5_Puzzle/src/game/Page_MainMenu.h b/Chapter9/5_Puzzle/src/game/Page_MainMenu.h index e545838..258f2bb 100644 --- a/Chapter9/5_Puzzle/src/game/Page_MainMenu.h +++ b/Chapter9/5_Puzzle/src/game/Page_MainMenu.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "GUI.h" diff --git a/Chapter9/5_Puzzle/src/game/Tile.h b/Chapter9/5_Puzzle/src/game/Tile.h index 1f24c27..74aa1cc 100644 --- a/Chapter9/5_Puzzle/src/game/Tile.h +++ b/Chapter9/5_Puzzle/src/game/Tile.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" diff --git a/Chapter9/Engine/Engine.cpp b/Chapter9/Engine/Engine.cpp index 8f74cb4..d4322b6 100644 --- a/Chapter9/Engine/Engine.cpp +++ b/Chapter9/Engine/Engine.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Wrapper_Callbacks.h" #if defined( _WIN32 ) diff --git a/Chapter9/Engine/Engine.h b/Chapter9/Engine/Engine.h index 075c61c..1819a59 100644 --- a/Chapter9/Engine/Engine.h +++ b/Chapter9/Engine/Engine.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter9/Engine/LGL/GLClasses.cpp b/Chapter9/Engine/LGL/GLClasses.cpp index 4b5fcb4..ea938f2 100644 --- a/Chapter9/Engine/LGL/GLClasses.cpp +++ b/Chapter9/Engine/LGL/GLClasses.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" #include "GLClasses.h" diff --git a/Chapter9/Engine/LGL/GLClasses.h b/Chapter9/Engine/LGL/GLClasses.h index f2ae646..c30d788 100644 --- a/Chapter9/Engine/LGL/GLClasses.h +++ b/Chapter9/Engine/LGL/GLClasses.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter9/Engine/LGL/Platform.h b/Chapter9/Engine/LGL/Platform.h index 0959c50..b9596ec 100644 --- a/Chapter9/Engine/LGL/Platform.h +++ b/Chapter9/Engine/LGL/Platform.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter9/Engine/Wrapper_Android.h b/Chapter9/Engine/Wrapper_Android.h index 647480c..e405715 100644 --- a/Chapter9/Engine/Wrapper_Android.h +++ b/Chapter9/Engine/Wrapper_Android.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #ifndef LOGI diff --git a/Chapter9/Engine/Wrapper_Callbacks.h b/Chapter9/Engine/Wrapper_Callbacks.h index ad91873..362048b 100644 --- a/Chapter9/Engine/Wrapper_Callbacks.h +++ b/Chapter9/Engine/Wrapper_Callbacks.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" diff --git a/Chapter9/Engine/Wrapper_Windows.cpp b/Chapter9/Engine/Wrapper_Windows.cpp index ea03440..5e10d8e 100644 --- a/Chapter9/Engine/Wrapper_Windows.cpp +++ b/Chapter9/Engine/Wrapper_Windows.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Engine.h" #include diff --git a/Chapter9/Engine/Wrapper_Windows.h b/Chapter9/Engine/Wrapper_Windows.h index ba2a093..d3f3790 100644 --- a/Chapter9/Engine/Wrapper_Windows.h +++ b/Chapter9/Engine/Wrapper_Windows.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter9/Engine/core/RingBuffer.h b/Chapter9/Engine/core/RingBuffer.h index 191a992..1ef931f 100644 --- a/Chapter9/Engine/core/RingBuffer.h +++ b/Chapter9/Engine/core/RingBuffer.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter9/Engine/core/VecMath.cpp b/Chapter9/Engine/core/VecMath.cpp index 4cfd530..183755a 100644 --- a/Chapter9/Engine/core/VecMath.cpp +++ b/Chapter9/Engine/core/VecMath.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "VecMath.h" #include diff --git a/Chapter9/Engine/core/VecMath.h b/Chapter9/Engine/core/VecMath.h index 1080f1b..836e4af 100644 --- a/Chapter9/Engine/core/VecMath.h +++ b/Chapter9/Engine/core/VecMath.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter9/Engine/core/iIntrusivePtr.cpp b/Chapter9/Engine/core/iIntrusivePtr.cpp index 982407c..968b860 100644 --- a/Chapter9/Engine/core/iIntrusivePtr.cpp +++ b/Chapter9/Engine/core/iIntrusivePtr.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "iObject.h" namespace LPtr diff --git a/Chapter9/Engine/core/iIntrusivePtr.h b/Chapter9/Engine/core/iIntrusivePtr.h index 9a9816c..dd768a9 100644 --- a/Chapter9/Engine/core/iIntrusivePtr.h +++ b/Chapter9/Engine/core/iIntrusivePtr.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #ifndef NULL diff --git a/Chapter9/Engine/core/iObject.h b/Chapter9/Engine/core/iObject.h index 9ee9515..73e35d2 100644 --- a/Chapter9/Engine/core/iObject.h +++ b/Chapter9/Engine/core/iObject.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #if defined(_WIN32) diff --git a/Chapter9/Engine/fs/Archive.cpp b/Chapter9/Engine/fs/Archive.cpp index 3d6d044..011f9fc 100644 --- a/Chapter9/Engine/fs/Archive.cpp +++ b/Chapter9/Engine/fs/Archive.cpp @@ -1,8 +1,35 @@ -/** - * \file Archive.cpp - * \brief Archive reader - * \author Viktor Latypov, 2011-2012 - * \author viktor@linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/Chapter9/Engine/fs/Archive.h b/Chapter9/Engine/fs/Archive.h index 51a25ef..a94cd35 100644 --- a/Chapter9/Engine/fs/Archive.h +++ b/Chapter9/Engine/fs/Archive.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Streams.h" diff --git a/Chapter9/Engine/fs/Blob.h b/Chapter9/Engine/fs/Blob.h index 762a305..e6f4e40 100644 --- a/Chapter9/Engine/fs/Blob.h +++ b/Chapter9/Engine/fs/Blob.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter9/Engine/fs/FileSystem.cpp b/Chapter9/Engine/fs/FileSystem.cpp index 8bf836c..4d758c5 100644 --- a/Chapter9/Engine/fs/FileSystem.cpp +++ b/Chapter9/Engine/fs/FileSystem.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "FileSystem.h" #include "Files.h" #include "MountPoint.h" diff --git a/Chapter9/Engine/fs/FileSystem.h b/Chapter9/Engine/fs/FileSystem.h index f556a2b..bb71c58 100644 --- a/Chapter9/Engine/fs/FileSystem.h +++ b/Chapter9/Engine/fs/FileSystem.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Files.h" diff --git a/Chapter9/Engine/fs/Files.h b/Chapter9/Engine/fs/Files.h index fcb878c..f9a3d42 100644 --- a/Chapter9/Engine/fs/Files.h +++ b/Chapter9/Engine/fs/Files.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Streams.h" diff --git a/Chapter9/Engine/fs/MountPoint.h b/Chapter9/Engine/fs/MountPoint.h index e198879..56f7e75 100644 --- a/Chapter9/Engine/fs/MountPoint.h +++ b/Chapter9/Engine/fs/MountPoint.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Engine.h" diff --git a/Chapter9/Engine/fs/Streams.h b/Chapter9/Engine/fs/Streams.h index 0db9f1f..41c491c 100644 --- a/Chapter9/Engine/fs/Streams.h +++ b/Chapter9/Engine/fs/Streams.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iObject.h" diff --git a/Chapter9/Engine/graphics/Bitmap.cpp b/Chapter9/Engine/graphics/Bitmap.cpp index 3128dc4..911785f 100644 --- a/Chapter9/Engine/graphics/Bitmap.cpp +++ b/Chapter9/Engine/graphics/Bitmap.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Bitmap.h" #include diff --git a/Chapter9/Engine/graphics/Bitmap.h b/Chapter9/Engine/graphics/Bitmap.h index 6d6c4fe..895c9b8 100644 --- a/Chapter9/Engine/graphics/Bitmap.h +++ b/Chapter9/Engine/graphics/Bitmap.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter9/Engine/graphics/Canvas.cpp b/Chapter9/Engine/graphics/Canvas.cpp index 99f4701..d75b663 100644 --- a/Chapter9/Engine/graphics/Canvas.cpp +++ b/Chapter9/Engine/graphics/Canvas.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Canvas.h" #include "Geometry.h" #include "GLClasses.h" diff --git a/Chapter9/Engine/graphics/Canvas.h b/Chapter9/Engine/graphics/Canvas.h index 14a673e..3226d18 100644 --- a/Chapter9/Engine/graphics/Canvas.h +++ b/Chapter9/Engine/graphics/Canvas.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter9/Engine/graphics/FI_SaveLoadFlags.h b/Chapter9/Engine/graphics/FI_SaveLoadFlags.h index b6f5320..c4774ce 100644 --- a/Chapter9/Engine/graphics/FI_SaveLoadFlags.h +++ b/Chapter9/Engine/graphics/FI_SaveLoadFlags.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #if defined( OS_ANDROID ) || defined( OS_MACOSX ) diff --git a/Chapter9/Engine/graphics/FI_Utils.cpp b/Chapter9/Engine/graphics/FI_Utils.cpp index dff2a41..886f061 100644 --- a/Chapter9/Engine/graphics/FI_Utils.cpp +++ b/Chapter9/Engine/graphics/FI_Utils.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Platform.h" #include "fs/Streams.h" diff --git a/Chapter9/Engine/graphics/FI_Utils.h b/Chapter9/Engine/graphics/FI_Utils.h index 6ced612..b5706d3 100644 --- a/Chapter9/Engine/graphics/FI_Utils.h +++ b/Chapter9/Engine/graphics/FI_Utils.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iIntrusivePtr.h" diff --git a/Chapter9/Engine/graphics/GUI.cpp b/Chapter9/Engine/graphics/GUI.cpp index db835b1..2e7ad21 100644 --- a/Chapter9/Engine/graphics/GUI.cpp +++ b/Chapter9/Engine/graphics/GUI.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "GUI.h" #include "Canvas.h" #include "Wrapper_Callbacks.h" diff --git a/Chapter9/Engine/graphics/GUI.h b/Chapter9/Engine/graphics/GUI.h index 016e27e..7e646c1 100644 --- a/Chapter9/Engine/graphics/GUI.h +++ b/Chapter9/Engine/graphics/GUI.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "iObject.h" diff --git a/Chapter9/Engine/graphics/Geometry.cpp b/Chapter9/Engine/graphics/Geometry.cpp index 3c6fc8f..2bf5dac 100644 --- a/Chapter9/Engine/graphics/Geometry.cpp +++ b/Chapter9/Engine/graphics/Geometry.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Geometry.h" clVertexAttribs::clVertexAttribs() diff --git a/Chapter9/Engine/graphics/Geometry.h b/Chapter9/Engine/graphics/Geometry.h index 82496c6..90b6d3e 100644 --- a/Chapter9/Engine/graphics/Geometry.h +++ b/Chapter9/Engine/graphics/Geometry.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Platform.h" diff --git a/Chapter9/Engine/graphics/Gestures.cpp b/Chapter9/Engine/graphics/Gestures.cpp index 0c537a0..8be24c9 100644 --- a/Chapter9/Engine/graphics/Gestures.cpp +++ b/Chapter9/Engine/graphics/Gestures.cpp @@ -1,10 +1,35 @@ -/** - * \file Gestures.cpp - * \brief Gestures handling helpers implementation - * \version 0.6.01 - * \date 21/07/2011 - * \author Sergey Kosarevsky, 2011 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include "iObject.h" diff --git a/Chapter9/Engine/graphics/Gestures.h b/Chapter9/Engine/graphics/Gestures.h index 7c320b5..53b0d17 100644 --- a/Chapter9/Engine/graphics/Gestures.h +++ b/Chapter9/Engine/graphics/Gestures.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "VecMath.h" diff --git a/Chapter9/Engine/graphics/Multitouch.cpp b/Chapter9/Engine/graphics/Multitouch.cpp index b33ff15..2e62c3b 100644 --- a/Chapter9/Engine/graphics/Multitouch.cpp +++ b/Chapter9/Engine/graphics/Multitouch.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Multitouch.h" #include "Gestures.h" diff --git a/Chapter9/Engine/graphics/Multitouch.h b/Chapter9/Engine/graphics/Multitouch.h index 261136e..0b8043a 100644 --- a/Chapter9/Engine/graphics/Multitouch.h +++ b/Chapter9/Engine/graphics/Multitouch.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter9/Engine/graphics/TextRenderer.cpp b/Chapter9/Engine/graphics/TextRenderer.cpp index 243fc96..1800fdf 100644 --- a/Chapter9/Engine/graphics/TextRenderer.cpp +++ b/Chapter9/Engine/graphics/TextRenderer.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "TextRenderer.h" #include "Bitmap.h" diff --git a/Chapter9/Engine/graphics/TextRenderer.h b/Chapter9/Engine/graphics/TextRenderer.h index b1d42db..418c355 100644 --- a/Chapter9/Engine/graphics/TextRenderer.h +++ b/Chapter9/Engine/graphics/TextRenderer.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __TextRenderer__h__included__ #define __TextRenderer__h__included__ diff --git a/Chapter9/Engine/network/CurlWrap.cpp b/Chapter9/Engine/network/CurlWrap.cpp index 285128a..f46bea2 100644 --- a/Chapter9/Engine/network/CurlWrap.cpp +++ b/Chapter9/Engine/network/CurlWrap.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "CurlWrap.h" #define GetCurlProc(Name) \ diff --git a/Chapter9/Engine/network/CurlWrap.h b/Chapter9/Engine/network/CurlWrap.h index 007fdd7..80bdc5d 100644 --- a/Chapter9/Engine/network/CurlWrap.h +++ b/Chapter9/Engine/network/CurlWrap.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __CurlWrap__h__included__ #define __CurlWrap__h__included__ diff --git a/Chapter9/Engine/network/DownloadTask.cpp b/Chapter9/Engine/network/DownloadTask.cpp index 09694aa..ad3a3e7 100644 --- a/Chapter9/Engine/network/DownloadTask.cpp +++ b/Chapter9/Engine/network/DownloadTask.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "DownloadTask.h" #include "Downloader.h" diff --git a/Chapter9/Engine/network/DownloadTask.h b/Chapter9/Engine/network/DownloadTask.h index d971bf6..82d07b3 100644 --- a/Chapter9/Engine/network/DownloadTask.h +++ b/Chapter9/Engine/network/DownloadTask.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _DownloadTask #define _DownloadTask diff --git a/Chapter9/Engine/network/Downloader.cpp b/Chapter9/Engine/network/Downloader.cpp index 0fc753c..16f0758 100644 --- a/Chapter9/Engine/network/Downloader.cpp +++ b/Chapter9/Engine/network/Downloader.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Downloader.h" #include "Blob.h" diff --git a/Chapter9/Engine/network/Downloader.h b/Chapter9/Engine/network/Downloader.h index 64f93d4..5f5d83f 100644 --- a/Chapter9/Engine/network/Downloader.h +++ b/Chapter9/Engine/network/Downloader.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Downloader #define _Downloader diff --git a/Chapter9/Engine/network/Picasa.cpp b/Chapter9/Engine/network/Picasa.cpp index 0fcb356..b674fd4 100644 --- a/Chapter9/Engine/network/Picasa.cpp +++ b/Chapter9/Engine/network/Picasa.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Picasa.h" #include "ImageTypes.h" diff --git a/Chapter9/Engine/network/Picasa.h b/Chapter9/Engine/network/Picasa.h index 525cf53..bfc0a72 100644 --- a/Chapter9/Engine/network/Picasa.h +++ b/Chapter9/Engine/network/Picasa.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include diff --git a/Chapter9/Engine/sound/Audio.cpp b/Chapter9/Engine/sound/Audio.cpp index c54c123..0dd98a5 100644 --- a/Chapter9/Engine/sound/Audio.cpp +++ b/Chapter9/Engine/sound/Audio.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Audio.h" extern clAudioThread g_Audio; diff --git a/Chapter9/Engine/sound/Audio.h b/Chapter9/Engine/sound/Audio.h index 1f3b30e..92d5d47 100644 --- a/Chapter9/Engine/sound/Audio.h +++ b/Chapter9/Engine/sound/Audio.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Engine.h" diff --git a/Chapter9/Engine/sound/Decoders.cpp b/Chapter9/Engine/sound/Decoders.cpp index b44c4c0..ebe44db 100644 --- a/Chapter9/Engine/sound/Decoders.cpp +++ b/Chapter9/Engine/sound/Decoders.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Decoders.h" #if defined(ANDROID) diff --git a/Chapter9/Engine/sound/Decoders.h b/Chapter9/Engine/sound/Decoders.h index 7ccecd1..a90427f 100644 --- a/Chapter9/Engine/sound/Decoders.h +++ b/Chapter9/Engine/sound/Decoders.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __OGG_inl__ #define __OGG_inl__ diff --git a/Chapter9/Engine/sound/DecodingProvider.h b/Chapter9/Engine/sound/DecodingProvider.h index 5c43f87..9be354b 100644 --- a/Chapter9/Engine/sound/DecodingProvider.h +++ b/Chapter9/Engine/sound/DecodingProvider.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Engine.h" diff --git a/Chapter9/Engine/sound/MOD.h b/Chapter9/Engine/sound/MOD.h index ca80bda..a0759ec 100644 --- a/Chapter9/Engine/sound/MOD.h +++ b/Chapter9/Engine/sound/MOD.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Decoders.h" diff --git a/Chapter9/Engine/sound/OGG.h b/Chapter9/Engine/sound/OGG.h index 2bf9c72..135f10c 100644 --- a/Chapter9/Engine/sound/OGG.h +++ b/Chapter9/Engine/sound/OGG.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #pragma once #include "Decoders.h" diff --git a/Chapter9/Engine/threading/Event.cpp b/Chapter9/Engine/threading/Event.cpp index b443707..b9fcf35 100644 --- a/Chapter9/Engine/threading/Event.cpp +++ b/Chapter9/Engine/threading/Event.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Event.h" #include diff --git a/Chapter9/Engine/threading/Event.h b/Chapter9/Engine/threading/Event.h index 6617fec..3ca5456 100644 --- a/Chapter9/Engine/threading/Event.h +++ b/Chapter9/Engine/threading/Event.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _Event__h_ #define _Event__h_ diff --git a/Chapter9/Engine/threading/Mutex.h b/Chapter9/Engine/threading/Mutex.h index 0612b91..82f1cec 100644 --- a/Chapter9/Engine/threading/Mutex.h +++ b/Chapter9/Engine/threading/Mutex.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef __Mutex__h__included__ #define __Mutex__h__included__ diff --git a/Chapter9/Engine/threading/Thread.cpp b/Chapter9/Engine/threading/Thread.cpp index 27d9cd6..573f2a5 100644 --- a/Chapter9/Engine/threading/Thread.cpp +++ b/Chapter9/Engine/threading/Thread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "Thread.h" #ifdef _WIN32 @@ -103,8 +137,3 @@ native_thread_handle_t iThread::GetCurrentThread() return pthread_self(); #endif } - -/* - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter9/Engine/threading/Thread.h b/Chapter9/Engine/threading/Thread.h index bcf1b3e..ea185f8 100644 --- a/Chapter9/Engine/threading/Thread.h +++ b/Chapter9/Engine/threading/Thread.h @@ -1,11 +1,35 @@ -/** - * \file Thread.h - * \brief POSIX thread - * \version 0.6.24 - * \date 05/12/2012 - * \author Viktor Latypov, 2009-2010 - * \author Sergey Kosarevsky, 2010-2012 - * \author support@linderdaum.com http://www.linderdaum.com +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef __iThread__h__included__ @@ -72,10 +96,3 @@ class iThread }; #endif - -/* - * 16/06/2010 - Linux port - * 06/04/2009 - Initial implementation -*/ diff --git a/Chapter9/Engine/threading/WorkerThread.cpp b/Chapter9/Engine/threading/WorkerThread.cpp index 91c26fb..a8f4d24 100644 --- a/Chapter9/Engine/threading/WorkerThread.cpp +++ b/Chapter9/Engine/threading/WorkerThread.cpp @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #include "WorkerThread.h" #include @@ -122,8 +156,3 @@ void clWorkerThread::Run() FCurrentTask = NULL; } } - -/* - * 05/12/2012 - It's here -*/ diff --git a/Chapter9/Engine/threading/WorkerThread.h b/Chapter9/Engine/threading/WorkerThread.h index 9838000..5fe3e74 100644 --- a/Chapter9/Engine/threading/WorkerThread.h +++ b/Chapter9/Engine/threading/WorkerThread.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Sergey Kosarevsky (sk@linderdaum.com) + * Copyright (C) 2013 Viktor Latypov (vl@linderdaum.com) + * Based on Linderdaum Engine http://www.linderdaum.com + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must display the names 'Sergey Kosarevsky' and + * 'Viktor Latypov'in the credits of the application, if such credits exist. + * The authors of this work must be notified via email (sk@linderdaum.com) in + * this case of redistribution. + * + * 3. Neither the name of copyright holders nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS + * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef _WorkerThread_ #define _WorkerThread_ diff --git a/LICENSE b/LICENSE index 7e89514..67f6022 100644 --- a/LICENSE +++ b/LICENSE @@ -12,6 +12,11 @@ subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +Redistributions in binary form must display the names 'Sergey Kosarevsky' and +'Viktor Latypov' in the credits of the application, if such credits exist. +The authors of this work must be notified via email (sk@linderdaum.com) in +this case of redistribution. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR diff --git a/stylize.py b/stylize.py new file mode 100644 index 0000000..d12fbd8 --- /dev/null +++ b/stylize.py @@ -0,0 +1,15 @@ +#! /usr/bin/python + +import os + +os.system("AStyle --options=AStyleConfig.cfg Chapter1/*.cpp Chapter1/*.h Chapter1/*.c Chapter1/*.java") +os.system("AStyle --options=AStyleConfig.cfg Chapter2/*.cpp Chapter2/*.h Chapter2/*.c Chapter2/*.java") +os.system("AStyle --options=AStyleConfig.cfg Chapter3/*.cpp Chapter3/*.h Chapter3/*.c Chapter3/*.java") +os.system("AStyle --options=AStyleConfig.cfg Chapter4/*.cpp Chapter4/*.h Chapter4/*.c Chapter4/*.java") +os.system("AStyle --options=AStyleConfig.cfg Chapter5/*.cpp Chapter5/*.h Chapter5/*.c Chapter5/*.java") +os.system("AStyle --options=AStyleConfig.cfg Chapter6/*.cpp Chapter6/*.h Chapter6/*.c Chapter6/*.java") +os.system("AStyle --options=AStyleConfig.cfg Chapter7/*.cpp Chapter7/*.h Chapter7/*.c Chapter7/*.java") +os.system("AStyle --options=AStyleConfig.cfg Chapter8/*.cpp Chapter8/*.h Chapter8/*.c Chapter8/*.java") +os.system("AStyle --options=AStyleConfig.cfg Chapter9/*.cpp Chapter9/*.h Chapter9/*.c Chapter9/*.java") + +