Skip to content

Commit 6e3122b

Browse files
committed
Convert to Apache 2.0 license.
1 parent 2a6a9b5 commit 6e3122b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+704
-1197
lines changed

LICENSE.md

+58-41
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,20 @@
1-
License {#license}
2-
=======
1+
License and Attribution Notices {#license}
2+
=======================
33

4-
LibKTX contains code
5-
6-
* © 2010 & © 2013 The Khronos Group Inc.
7-
* © 2008 and © 2010 HI Corporation
8-
* © 2005 Ericsson AB
9-
* © 2003-2010, Troy D. Hanson
10-
* © 2015-2018 Mark Callow
11-
* © 2016 Oculus VR, LLC.
4+
-----------------
125

13-
The KTX load tests contain code
6+
This file has two names: LICENSE.md and NOTICE.md. The former to tell GiHub users this
7+
is the license. The latter to tell creators of derived works that they need to distribute this
8+
with or make it available in a display generated by any Derivative Works, except for any
9+
parts that do not pertain to the Derivative Work, in accordance with clause 4d of the
10+
Apache 2.0 license, i.e. this is the "NOTICE" file.
1411

15-
* © 2013 The Khronos Group Inc.
16-
* © 2008 and © 2010 HI Corporation
17-
* © 1997-2014 Sam Lantinga
18-
* © 2016 Sascha Willems
19-
* © 2015-2018 Mark Callow
12+
-----------------
2013

21-
Default License
22-
---------------
14+
## Default License
2315

2416
With the exception of the files listed explicitly below, the source
25-
files are made available the Apache License, Version 2.0 (the "License");
17+
is made available under the Apache License, Version 2.0 (the "License");
2618
you may not use these files except in compliance with the License.
2719
You may obtain a copy of the License at
2820

@@ -34,14 +26,35 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3426
See the License for the specific language governing permissions and
3527
limitations under the License.
3628

29+
libKTX is the work of Mark Callow based on work by Georg Kolling, Jacob
30+
Ström, Troy Hanson and Johannes van Waveren. The source contains
31+
code
32+
33+
© 2010 & © 2013 The Khronos Group Inc.
34+
© 2008 and © 2010 HI Corporation
35+
© 2005 Ericsson AB
36+
© 2003-2010, Troy D. Hanson
37+
© 2015-2018 Mark Callow
38+
© 2016 Oculus VR, LLC.
39+
40+
The KTX load tests are the work of Mark Callow with a few small portions taken from
41+
Sascha Willems' Vulkan examples and use Sam Lantinga's libSDL for portability. The
42+
source contains code
43+
44+
© 2013 The Khronos Group Inc.
45+
© 2008 and © 2010 HI Corporation
46+
© 1997-2018 Sam Lantinga
47+
© 2016 Sascha Willems
48+
© 2015-2018 Mark Callow
49+
3750
-----------------
3851

3952
**IMPORTANT:** Due to GitHub Markdown limitations license text has
4053
been copied into this file from the files named below. In the event
4154
of a discrepancy, the licenses in the files shall be deemed correct.
4255

43-
etcdec.cxx
44-
----------
56+
## libktx Exceptions
57+
### etcdec.cxx
4558

4659
etcdec.cxx is made available under the terms and conditions of the following
4760
License Agreement.
@@ -154,18 +167,7 @@ dispute, controversy or claim arising out of or in connection with
154167
this SLA, or the breach, termination or invalidity thereof, shall be
155168
submitted to the exclusive jurisdiction of the Swedish Courts.
156169

157-
158-
hi_mark{,_sq}.ktx
159-
-----------------
160-
161-
The HI logo textures are © & ™ HI Corporation and are
162-
provided for use only in testing the KTX loader. Any other use requires
163-
specific prior written permission from HI. Furthermore the name HI may
164-
not be used to endorse or promote products derived from this software
165-
without specific prior written permission.
166-
167-
uthash.h
168-
--------
170+
### uthash.h
169171

170172
uthash.h is made available under the following revised BSD license.
171173

@@ -190,22 +192,37 @@ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
190192
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
191193
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
192194

193-
include/SDL2/*
194-
--------------
195+
## Load Tests Exceptions
196+
197+
### icons/{ios/CommonIcons*,mac,win}/ktx_{app,document}.*
198+
199+
These KTX application and document icons are © & ™ The Khronos Group, Inc.
200+
and may not be used without specific prior written permission from The Khronos Group,
201+
except that the ktx_app icon may be distributed in a Derived Work as the icon for
202+
the `glloadtests` and `vkloadtests` applications.
203+
204+
### other_include/SDL2/*
195205

196206
These files are part of the SDL2 source distributed by the [SDL project]
197207
(http://libsdl.org) under the terms of the [zlib license]
198208
(http://www.zlib.net/zlib_license.html).
199209

200-
{VulkanMeshLoader,vulkantextoverlay}.hpp, vulkandebug.*
201-
-------------------------------------------------------
210+
### other_include/glm
211+
212+
OpenGL Mathematics is licensed under the [Happy Bunny (Modified MIT) License](https://github.com/g-truc/glm/blob/master/manual.md#section0)
213+
214+
### testimages/hi_mark{,_sq}.ktx
215+
216+
The HI logo textures are © & ™ HI Corporation and are
217+
provided for use only in testing the KTX loader. Any other use requires
218+
specific prior written permission from HI. Furthermore the name HI may
219+
not be used to endorse or promote products derived from this software
220+
without specific prior written permission.
221+
222+
### {VulkanMeshLoader,vulkantextoverlay}.hpp, vulkandebug.*
202223

203224
Copyright © 2016 Sascha Willems - www.saschawillems.de
204225

205226
{VulkanMeshLoader,vulkantextoverlay}.hpp and vulkandebug.* are licensed
206227
under the [MIT license](http://opensource.org/licenses/MIT)
207228

208-
OpenGL Mathematics (GLM)
209-
-----------------------------------
210-
211-
OpenGL Mathematics is licensed under the [Happy Bunny (Modified MIT) License](https://github.com/g-truc/glm/blob/master/manual.md#section0)

NOTICE.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LICENSE.md

include/ktxvulkan.h

+16
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@
44
#ifndef KTX_H_C54B42AEE39611E68E1E4FF8C51D1C66
55
#define KTX_H_C54B42AEE39611E68E1E4FF8C51D1C66
66

7+
/*
8+
* ©2017 Mark Callow.
9+
*
10+
* Licensed under the Apache License, Version 2.0 (the "License");
11+
* you may not use this file except in compliance with the License.
12+
* You may obtain a copy of the License at
13+
*
14+
* http://www.apache.org/licenses/LICENSE-2.0
15+
*
16+
* Unless required by applicable law or agreed to in writing, software
17+
* distributed under the License is distributed on an "AS IS" BASIS,
18+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19+
* See the License for the specific language governing permissions and
20+
* limitations under the License.
21+
*/
22+
723
/**
824
* @internal
925
* @file

lib/checkheader.c

+16-29
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33

44
/* $Id$ */
55

6+
/*
7+
* ©2010-2018 The khronos Group, Inc.
8+
*
9+
* Licensed under the Apache License, Version 2.0 (the "License");
10+
* you may not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS,
17+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
*/
21+
622
/**
723
* @internal
824
* @file checkheader.c
@@ -13,35 +29,6 @@
1329
* @author Mark Callow, HI Corporation
1430
*/
1531

16-
/*
17-
Copyright (c) 2010 The Khronos Group Inc.
18-
19-
Permission is hereby granted, free of charge, to any person obtaining a
20-
copy of this software and/or associated documentation files (the
21-
"Materials"), to deal in the Materials without restriction, including
22-
without limitation the rights to use, copy, modify, merge, publish,
23-
distribute, sublicense, and/or sell copies of the Materials, and to
24-
permit persons to whom the Materials are furnished to do so, subject to
25-
the following conditions:
26-
27-
The above copyright notice and this permission notice shall be included
28-
unaltered in all copies or substantial portions of the Materials.
29-
Any additions, deletions, or changes to the original source files
30-
must be clearly indicated in accompanying documentation.
31-
32-
If only executable code is distributed, then the accompanying
33-
documentation must state that "this software is based in part on the
34-
work of the Khronos Group."
35-
36-
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
38-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
39-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
40-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
41-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
42-
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
43-
*/
44-
4532
/*
4633
* Author: Georg Kolling, Imagination Technology with modifications
4734
* by Mark Callow, HI Corporation.

lib/errstr.c

+16-29
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33

44
/* $Id$ */
55

6+
/*
7+
* ©2010-2018 The khronos Group, Inc.
8+
*
9+
* Licensed under the Apache License, Version 2.0 (the "License");
10+
* you may not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS,
17+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
*/
21+
622
/**
723
* @file errstr.c
824
* @~English
@@ -12,35 +28,6 @@
1228
* @author Mark Callow, HI Corporation
1329
*/
1430

15-
/*
16-
Copyright (c) 2010 The Khronos Group Inc.
17-
18-
Permission is hereby granted, free of charge, to any person obtaining a
19-
copy of this software and/or associated documentation files (the
20-
"Materials"), to deal in the Materials without restriction, including
21-
without limitation the rights to use, copy, modify, merge, publish,
22-
distribute, sublicense, and/or sell copies of the Materials, and to
23-
permit persons to whom the Materials are furnished to do so, subject to
24-
the following conditions:
25-
26-
The above copyright notice and this permission notice shall be included
27-
unaltered in all copies or substantial portions of the Materials.
28-
Any additions, deletions, or changes to the original source files
29-
must be clearly indicated in accompanying documentation.
30-
31-
If only executable code is distributed, then the accompanying
32-
documentation must state that "this software is based in part on the
33-
work of the Khronos Group."
34-
35-
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
37-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
38-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
39-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
40-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
41-
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
42-
*/
43-
4431
#include "ktx.h"
4532

4633
static const char* const errorStrings[] = {

lib/etcunpack.cxx

+16-29
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33

44
/* $Id$ */
55

6+
/*
7+
* ©2010 The khronos Group, Inc.
8+
*
9+
* Licensed under the Apache License, Version 2.0 (the "License");
10+
* you may not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS,
17+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
*/
21+
622
/* @internal
723
* @~English
824
* @file
@@ -12,35 +28,6 @@
1228
* @author Mark Callow, HI Corporation.
1329
*/
1430

15-
/*
16-
Copyright (c) 2010 The Khronos Group Inc.
17-
18-
Permission is hereby granted, free of charge, to any person obtaining a
19-
copy of this software and/or associated documentation files (the
20-
"Materials"), to deal in the Materials without restriction, including
21-
without limitation the rights to use, copy, modify, merge, publish,
22-
distribute, sublicense, and/or sell copies of the Materials, and to
23-
permit persons to whom the Materials are furnished to do so, subject to
24-
the following conditions:
25-
26-
The above copyright notice and this permission notice shall be included
27-
unaltered in all copies or substantial portions of the Materials.
28-
Any additions, deletions, or changes to the original source files
29-
must be clearly indicated in accompanying documentation.
30-
31-
If only executable code is distributed, then the accompanying
32-
documentation must state that "this software is based in part on the
33-
work of the Khronos Group."
34-
35-
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
37-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
38-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
39-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
40-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
41-
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
42-
*/
43-
4431
#include <assert.h>
4532
#include <stdlib.h>
4633

0 commit comments

Comments
 (0)