Skip to content

Commit

Permalink
example3: replace old stb_image 1.18 with stb_image 2.30 and stb_imag…
Browse files Browse the repository at this point in the history
…e_write 1.16

Pulled from https://github.com/nothings/stb
Commit 013ac3beddff3dbffafd5177e7972067cd2b5083
  • Loading branch information
illwieckz committed Jun 25, 2024
1 parent b8af4d2 commit 1ef2742
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4,204 deletions.
1 change: 0 additions & 1 deletion example3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ include_directories(
# Defines the source code for the library
set(EXAMPLE3_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/example3.cpp
${CMAKE_CURRENT_SOURCE_DIR}/stb_image.h
)

add_executable(example3 ${EXAMPLE3_SRCS})
Expand Down
6 changes: 6 additions & 0 deletions example3/example3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@
#pragma warning(disable : 4100) // unreferenced formal parameter
#pragma warning(disable : 4127) // conditional expression is constant
#endif

#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"

using namespace crnlib;

typedef unsigned int uint;

const uint cDXTBlockSize = 4;

static int print_usage() {
Expand Down
Loading

0 comments on commit 1ef2742

Please sign in to comment.