From a333d463b449e32300d9672bc8a61abac600c3b4 Mon Sep 17 00:00:00 2001 From: Dan Ginsburg Date: Sat, 5 Oct 2013 15:47:26 -0400 Subject: [PATCH] Add LICENSE file and update header comment for all files --- Chapter_10/MultiTexture/MultiTexture.c | 35 +++++++++++++---- Chapter_14/Instancing/Instancing.c | 35 +++++++++++++---- Chapter_14/Noise3D/Noise3D.c | 35 +++++++++++++---- Chapter_14/ParticleSystem/ParticleSystem.c | 35 +++++++++++++---- .../ParticleSystemTransformFeedback/Noise3D.c | 35 +++++++++++++---- .../ParticleSystemTransformFeedback/Noise3D.h | 35 +++++++++++++---- .../ParticleSystemTransformFeedback.c | 35 +++++++++++++---- Chapter_2/Hello_Triangle/Hello_Triangle.c | 35 +++++++++++++---- Chapter_6/Example_6_3/Example_6_3.c | 35 +++++++++++++---- Chapter_6/Example_6_6/Example_6_6.c | 35 +++++++++++++---- Chapter_6/MapBuffers/MapBuffers.c | 35 +++++++++++++---- .../VertexArrayObjects/VertexArrayObjects.c | 35 +++++++++++++---- .../VertexBufferObjects/VertexBufferObjects.c | 35 +++++++++++++---- .../Simple_VertexShader/Simple_VertexShader.c | 35 +++++++++++++---- Chapter_9/MipMap2D/MipMap2D.c | 35 +++++++++++++---- Chapter_9/Simple_Texture2D/Simple_Texture2D.c | 35 +++++++++++++---- .../Simple_TextureCubemap.c | 35 +++++++++++++---- Chapter_9/TextureWrap/TextureWrap.c | 35 +++++++++++++---- Common/Include/esUtil.h | 37 ++++++++++++++---- Common/Include/esUtil_win.h | 35 +++++++++++++---- Common/Source/Android/esUtil_Android.c | 36 +++++++++++++---- Common/Source/Win32/esUtil_win32.c | 38 ++++++++++++++---- Common/Source/esShader.c | 35 +++++++++++++---- Common/Source/esShapes.c | 35 +++++++++++++---- Common/Source/esTransform.c | 35 +++++++++++++---- Common/Source/esUtil.c | 39 ++++++++++++++----- Common/Source/iOS/AppDelegate.h | 37 ++++++++++++++---- Common/Source/iOS/AppDelegate.m | 34 +++++++++++++--- Common/Source/iOS/FileWrapper.h | 37 ++++++++++++++---- Common/Source/iOS/FileWrapper.m | 34 +++++++++++++--- Common/Source/iOS/ViewController.h | 37 ++++++++++++++---- Common/Source/iOS/ViewController.m | 34 +++++++++++++--- Common/Source/iOS/main.m | 36 +++++++++++++---- LICENSE | 21 ++++++++++ 34 files changed, 955 insertions(+), 235 deletions(-) create mode 100644 LICENSE diff --git a/Chapter_10/MultiTexture/MultiTexture.c b/Chapter_10/MultiTexture/MultiTexture.c index 4b3bf1f..58c8f65 100644 --- a/Chapter_10/MultiTexture/MultiTexture.c +++ b/Chapter_10/MultiTexture/MultiTexture.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // MultiTexture.c // // This is an example that draws a quad with a basemap and diff --git a/Chapter_14/Instancing/Instancing.c b/Chapter_14/Instancing/Instancing.c index 4c9db39..c2e7143 100644 --- a/Chapter_14/Instancing/Instancing.c +++ b/Chapter_14/Instancing/Instancing.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // Instancing.c // // Demonstrates drawing multiple objects in a single draw call with diff --git a/Chapter_14/Noise3D/Noise3D.c b/Chapter_14/Noise3D/Noise3D.c index 530f0e6..f711b70 100644 --- a/Chapter_14/Noise3D/Noise3D.c +++ b/Chapter_14/Noise3D/Noise3D.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // ParticleSystem.c // // This is an example that demonstrates generating and using diff --git a/Chapter_14/ParticleSystem/ParticleSystem.c b/Chapter_14/ParticleSystem/ParticleSystem.c index 90c341e..2c40bf8 100644 --- a/Chapter_14/ParticleSystem/ParticleSystem.c +++ b/Chapter_14/ParticleSystem/ParticleSystem.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // ParticleSystem.c // // This is an example that demonstrates rendering a particle system diff --git a/Chapter_14/ParticleSystemTransformFeedback/Noise3D.c b/Chapter_14/ParticleSystemTransformFeedback/Noise3D.c index c002287..0a43c4e 100644 --- a/Chapter_14/ParticleSystemTransformFeedback/Noise3D.c +++ b/Chapter_14/ParticleSystemTransformFeedback/Noise3D.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // ParticleSystem.c // // This is an example that demonstrates generating and using diff --git a/Chapter_14/ParticleSystemTransformFeedback/Noise3D.h b/Chapter_14/ParticleSystemTransformFeedback/Noise3D.h index e1dfdc2..7ecf558 100644 --- a/Chapter_14/ParticleSystemTransformFeedback/Noise3D.h +++ b/Chapter_14/ParticleSystemTransformFeedback/Noise3D.h @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // Noise3D.h // // Generates a 3D noise diff --git a/Chapter_14/ParticleSystemTransformFeedback/ParticleSystemTransformFeedback.c b/Chapter_14/ParticleSystemTransformFeedback/ParticleSystemTransformFeedback.c index 71b58d0..80a49ee 100644 --- a/Chapter_14/ParticleSystemTransformFeedback/ParticleSystemTransformFeedback.c +++ b/Chapter_14/ParticleSystemTransformFeedback/ParticleSystemTransformFeedback.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // ParticleSystemTransformFeedback.c // // This is an example that demonstrates a particle system diff --git a/Chapter_2/Hello_Triangle/Hello_Triangle.c b/Chapter_2/Hello_Triangle/Hello_Triangle.c index 13a163d..a5ad8af 100644 --- a/Chapter_2/Hello_Triangle/Hello_Triangle.c +++ b/Chapter_2/Hello_Triangle/Hello_Triangle.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // Hello_Triangle.c // // This is a simple example that draws a single triangle with diff --git a/Chapter_6/Example_6_3/Example_6_3.c b/Chapter_6/Example_6_3/Example_6_3.c index 30165f4..ea0ec5b 100644 --- a/Chapter_6/Example_6_3/Example_6_3.c +++ b/Chapter_6/Example_6_3/Example_6_3.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // Example_6_3.c // // This example demonstrates using client-side vertex arrays diff --git a/Chapter_6/Example_6_6/Example_6_6.c b/Chapter_6/Example_6_6/Example_6_6.c index 002b718..4d76fc8 100644 --- a/Chapter_6/Example_6_6/Example_6_6.c +++ b/Chapter_6/Example_6_6/Example_6_6.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // Example_6_6.c // // This example demonstrates drawing a primitive with diff --git a/Chapter_6/MapBuffers/MapBuffers.c b/Chapter_6/MapBuffers/MapBuffers.c index 062067c..a8880e2 100644 --- a/Chapter_6/MapBuffers/MapBuffers.c +++ b/Chapter_6/MapBuffers/MapBuffers.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // VertexBufferObjects.c // // This example demonstrates mapping buffer objects diff --git a/Chapter_6/VertexArrayObjects/VertexArrayObjects.c b/Chapter_6/VertexArrayObjects/VertexArrayObjects.c index 403e0de..8343775 100644 --- a/Chapter_6/VertexArrayObjects/VertexArrayObjects.c +++ b/Chapter_6/VertexArrayObjects/VertexArrayObjects.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // VertexArraybjects.c // // This example demonstrates drawing a primitive with diff --git a/Chapter_6/VertexBufferObjects/VertexBufferObjects.c b/Chapter_6/VertexBufferObjects/VertexBufferObjects.c index f0be9a1..1c507c0 100644 --- a/Chapter_6/VertexBufferObjects/VertexBufferObjects.c +++ b/Chapter_6/VertexBufferObjects/VertexBufferObjects.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // VertexBufferObjects.c // // This example demonstrates drawing a primitive with diff --git a/Chapter_8/Simple_VertexShader/Simple_VertexShader.c b/Chapter_8/Simple_VertexShader/Simple_VertexShader.c index a428318..8148614 100644 --- a/Chapter_8/Simple_VertexShader/Simple_VertexShader.c +++ b/Chapter_8/Simple_VertexShader/Simple_VertexShader.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // Simple_VertexShader.c // // This is a simple example that draws a rotating cube in perspective diff --git a/Chapter_9/MipMap2D/MipMap2D.c b/Chapter_9/MipMap2D/MipMap2D.c index d05ecf7..6d30101 100644 --- a/Chapter_9/MipMap2D/MipMap2D.c +++ b/Chapter_9/MipMap2D/MipMap2D.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // MipMap2D.c // // This is a simple example that demonstrates generating a mipmap chain diff --git a/Chapter_9/Simple_Texture2D/Simple_Texture2D.c b/Chapter_9/Simple_Texture2D/Simple_Texture2D.c index 30081cf..97dd5b4 100644 --- a/Chapter_9/Simple_Texture2D/Simple_Texture2D.c +++ b/Chapter_9/Simple_Texture2D/Simple_Texture2D.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // Simple_Texture2D.c // // This is a simple example that draws a quad with a 2D diff --git a/Chapter_9/Simple_TextureCubemap/Simple_TextureCubemap.c b/Chapter_9/Simple_TextureCubemap/Simple_TextureCubemap.c index a40eaa7..a50cc9d 100644 --- a/Chapter_9/Simple_TextureCubemap/Simple_TextureCubemap.c +++ b/Chapter_9/Simple_TextureCubemap/Simple_TextureCubemap.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // Simple_TextureCubemap.c // // This is a simple example that draws a sphere with a cubemap image applied. diff --git a/Chapter_9/TextureWrap/TextureWrap.c b/Chapter_9/TextureWrap/TextureWrap.c index 3b06278..f41ce90 100644 --- a/Chapter_9/TextureWrap/TextureWrap.c +++ b/Chapter_9/TextureWrap/TextureWrap.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // TextureWrap.c // // This is an example that demonstrates the three texture diff --git a/Common/Include/esUtil.h b/Common/Include/esUtil.h index 5a0a274..3b7aa5c 100644 --- a/Common/Include/esUtil.h +++ b/Common/Include/esUtil.h @@ -1,13 +1,34 @@ -// -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 +// The MIT License (MIT) +// +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. +// +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 // Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 // - // /// \file ESUtil.h /// \brief A utility library for OpenGL ES. This library provides a diff --git a/Common/Include/esUtil_win.h b/Common/Include/esUtil_win.h index 46eff59..d8a3beb 100644 --- a/Common/Include/esUtil_win.h +++ b/Common/Include/esUtil_win.h @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // esUtil_win.h // // API-neutral interface for creating windows. Implementation needs to be provided per-platform. diff --git a/Common/Source/Android/esUtil_Android.c b/Common/Source/Android/esUtil_Android.c index b0130a1..616fc9e 100644 --- a/Common/Source/Android/esUtil_Android.c +++ b/Common/Source/Android/esUtil_Android.c @@ -1,12 +1,34 @@ -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 +// The MIT License (MIT) +// +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. +// +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 // Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 // - // esUtil_Android.c // // This file contains the Android implementation of the windowing functions. diff --git a/Common/Source/Win32/esUtil_win32.c b/Common/Source/Win32/esUtil_win32.c index 570e9ab..086e04e 100644 --- a/Common/Source/Win32/esUtil_win32.c +++ b/Common/Source/Win32/esUtil_win32.c @@ -1,12 +1,34 @@ -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// The MIT License (MIT) +// +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. +// +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 // - // esUtil_win32.c // // This file contains the Win32 implementation of the windowing functions. diff --git a/Common/Source/esShader.c b/Common/Source/esShader.c index cdb4bb6..5f2b4a6 100644 --- a/Common/Source/esShader.c +++ b/Common/Source/esShader.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // ESShader.c // // Utility functions for loading shaders and creating program objects. diff --git a/Common/Source/esShapes.c b/Common/Source/esShapes.c index 37b1e68..8b5457b 100644 --- a/Common/Source/esShapes.c +++ b/Common/Source/esShapes.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // ESShapes.c // // Utility functions for generating shapes diff --git a/Common/Source/esTransform.c b/Common/Source/esTransform.c index 39f662b..0aa6bb8 100644 --- a/Common/Source/esTransform.c +++ b/Common/Source/esTransform.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. // +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +// // ESUtil.c // // A utility library for OpenGL ES. This library provides a diff --git a/Common/Source/esUtil.c b/Common/Source/esUtil.c index fb9be90..cdaad28 100644 --- a/Common/Source/esUtil.c +++ b/Common/Source/esUtil.c @@ -1,13 +1,34 @@ +// The MIT License (MIT) +// +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. +// +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com -// - // ESUtil.c // // A utility library for OpenGL ES. This library provides a diff --git a/Common/Source/iOS/AppDelegate.h b/Common/Source/iOS/AppDelegate.h index 90b29cb..e95280d 100644 --- a/Common/Source/iOS/AppDelegate.h +++ b/Common/Source/iOS/AppDelegate.h @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. +// +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. -#import +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +//#import @interface AppDelegate : UIResponder diff --git a/Common/Source/iOS/AppDelegate.m b/Common/Source/iOS/AppDelegate.m index f026ea5..ff103a8 100644 --- a/Common/Source/iOS/AppDelegate.m +++ b/Common/Source/iOS/AppDelegate.m @@ -1,11 +1,33 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. +// +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 // Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 #import "AppDelegate.h" diff --git a/Common/Source/iOS/FileWrapper.h b/Common/Source/iOS/FileWrapper.h index 1fd4ca4..bd93f2a 100644 --- a/Common/Source/iOS/FileWrapper.h +++ b/Common/Source/iOS/FileWrapper.h @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. +// +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. -/// +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +///// /// \brief Given a fileName, convert into a path that can be used to open from /// the mainBundle /// \param fileName Name of file to convert to mainBundle path diff --git a/Common/Source/iOS/FileWrapper.m b/Common/Source/iOS/FileWrapper.m index e0e641a..34fed1e 100644 --- a/Common/Source/iOS/FileWrapper.m +++ b/Common/Source/iOS/FileWrapper.m @@ -1,11 +1,33 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. +// +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 // Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 #import "FileWrapper.h" #import diff --git a/Common/Source/iOS/ViewController.h b/Common/Source/iOS/ViewController.h index 685b014..24de8dd 100644 --- a/Common/Source/iOS/ViewController.h +++ b/Common/Source/iOS/ViewController.h @@ -1,13 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. +// +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. -#import +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 +//#import #import @interface ViewController : GLKViewController diff --git a/Common/Source/iOS/ViewController.m b/Common/Source/iOS/ViewController.m index a06cfb3..50b9fca 100644 --- a/Common/Source/iOS/ViewController.m +++ b/Common/Source/iOS/ViewController.m @@ -1,11 +1,33 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. +// +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 // Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 // // ViewController.m diff --git a/Common/Source/iOS/main.m b/Common/Source/iOS/main.m index f1a8d7d..c64b7f7 100644 --- a/Common/Source/iOS/main.m +++ b/Common/Source/iOS/main.m @@ -1,12 +1,34 @@ +// The MIT License (MIT) // -// Book: OpenGL(R) ES 2.0 Programming Guide -// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner -// ISBN-10: 0321502795 -// ISBN-13: 9780321502797 -// Publisher: Addison-Wesley Professional -// URLs: http://safari.informit.com/9780321563835 -// http://www.opengles-book.com +// Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, 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. +// +// 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +// +// Book: OpenGL(R) ES 3.0 Programming Guide, 2nd Edition +// Authors: Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner, Aaftab Munshi +// ISBN-10: 0-321-93388-5 +// ISBN-13: 978-0-321-93388-1 +// Publisher: Addison-Wesley Professional +// URLs: http://www.opengles-book.com +// http://my.safaribooksonline.com/book/animation-and-3d/9780133440133 + #import diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7c2cca0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2013 Dan Ginsburg, Budirijanto Purnomo + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, 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. + +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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file