Skip to content

Commit 52aa6aa

Browse files
committed
License bits
1 parent 20d0de6 commit 52aa6aa

6 files changed

+64
-3
lines changed

license.txt

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Aras Pranckevičius
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+
23+
---- OR ----
24+
25+
This is free and unencumbered software released into the public domain.
26+
27+
Anyone is free to copy, modify, publish, use, compile, sell, or
28+
distribute this software, either in source code form or as a compiled
29+
binary, for any purpose, commercial or non-commercial, and by any
30+
means.
31+
32+
In jurisdictions that recognize copyright laws, the author or authors
33+
of this software dedicate any and all copyright interest in the
34+
software to the public domain. We make this dedication for the benefit
35+
of the public at large and to the detriment of our heirs and
36+
successors. We intend this dedication to be an overt act of
37+
relinquishment in perpetuity of all present and future rights to this
38+
software under copyright law.
39+
40+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
42+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
43+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
44+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
45+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46+
OTHER DEALINGS IN THE SOFTWARE.
47+
48+
For more information, please refer to <https://unlicense.org>

readme.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ load the text based .cube files too, and takes 55ms to load the Khronos PBR Neut
4747
is even slower at loading this file: 302ms). However the load time can go down to 2ms for a .smcube half precision
4848
format. (the times are for loading the file *and* creating a GPU 3D texture with that data, on D3D11).
4949

50-
5150
### smol-cube C++ library
5251

5352
The library itself is written in C++, and requires C++ 17 or later. It provides functions for:
@@ -61,6 +60,8 @@ The library itself is written in C++, and requires C++ 17 or later. It provides
6160

6261
In order to use the library, compile `src/smol_cube.cpp` in your project, and include `src/smol_cube.h`.
6362

63+
License is either MIT or Unlicense, whichever is more convenient for you.
64+
6465
### smol-cube-conv command line tool
6566

6667
`smol-cube-conv` command line utility converts Resolve/Adobe `.cube` files into `.smcube` binary format.

src/smol_cube.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#include "smol_cube.h"
1+
// SPDX-License-Identifier: MIT OR Unlicense
2+
// smol-cube: https://github.com/aras-p/smol-cube
3+
4+
#include "smol_cube.h"
25
#include <assert.h>
36
#include <stdio.h>
47
#include <string.h>

src/smol_cube.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#pragma once
1+
// SPDX-License-Identifier: MIT OR Unlicense
2+
// smol-cube: https://github.com/aras-p/smol-cube
3+
4+
#pragma once
25

36
#include <stddef.h>
47
#include <stdint.h>

src/smol_cube_conv_app.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT OR Unlicense
2+
// smol-cube: https://github.com/aras-p/smol-cube
3+
14
#include "smol_cube.h"
25

36
#include "../libs/argh/argh.h"

src/smol_cube_viewer_app.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT OR Unlicense
2+
// smol-cube: https://github.com/aras-p/smol-cube
3+
14
#include "smol_cube.h"
25
#include <string>
36
#include <filesystem>

0 commit comments

Comments
 (0)