Skip to content

Commit

Permalink
[Extern/stb] Added stb_image 2.29 as an external
Browse files Browse the repository at this point in the history
- Only stb_image (image format loading) has been added for now; stb_image_write and probably stb_truetype will be added later
  - It supports JPEG, PNG, TGA, BMP, PSD, GIF, HDR, PIC, PPM & PGM
  • Loading branch information
Razakhel committed Dec 18, 2023
1 parent 53a064f commit 8bda1f9
Show file tree
Hide file tree
Showing 4 changed files with 8,015 additions and 0 deletions.
1 change: 1 addition & 0 deletions extern/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ if (RAZ_USE_LUA)
endif ()

include(fastgltf)
include(stb)
13 changes: 13 additions & 0 deletions extern/stb.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#######
# stb #
#######

project(stb)

add_library(stb INTERFACE)

file(GLOB STB_FILES stb/*.h)

target_sources(stb INTERFACE ${STB_FILES})

target_include_directories(stb SYSTEM INTERFACE stb)
16 changes: 16 additions & 0 deletions extern/stb/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Copyright (c) 2017 Sean Barrett
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.
Loading

0 comments on commit 8bda1f9

Please sign in to comment.