mirror of
https://github.com/Drezil/imgui.git
synced 2025-01-05 14:06:35 +00:00
Examples: Added STB_IMAGE_STATIC in examples to avoid conflicting implementation. Relate to #109
This commit is contained in:
parent
98a38e24ab
commit
1c657564ac
@ -1,6 +1,7 @@
|
|||||||
// ImGui - standalone example application for DirectX 11
|
// ImGui - standalone example application for DirectX 11
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#define STB_IMAGE_STATIC
|
||||||
#define STB_IMAGE_IMPLEMENTATION
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
#include "../shared/stb_image.h" // for .png loading
|
#include "../shared/stb_image.h" // for .png loading
|
||||||
#include "../../imgui.h"
|
#include "../../imgui.h"
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../imgui.h"
|
#include "../../imgui.h"
|
||||||
|
#define STB_IMAGE_STATIC
|
||||||
#define STB_IMAGE_IMPLEMENTATION
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
#include "../shared/stb_image.h" // stb_image.h for PNG loading
|
#include "../shared/stb_image.h" // stb_image.h for PNG loading
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../imgui.h"
|
#include "../../imgui.h"
|
||||||
|
#define STB_IMAGE_STATIC
|
||||||
#define STB_IMAGE_IMPLEMENTATION
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
#include "../shared/stb_image.h" // stb_image.h for PNG loading
|
#include "../shared/stb_image.h" // stb_image.h for PNG loading
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user