Browse Source

Examples: Using #include "imgui.h" instead of <imgui.h> appear correct-er as per standard? xcode+clang are very nitpicky there.

pull/1594/head
omar 7 years ago
parent
commit
6a25a8720a
  1. 2
      examples/allegro5_example/imgui_impl_a5.cpp
  2. 2
      examples/allegro5_example/main.cpp
  3. 2
      examples/directx10_example/main.cpp
  4. 2
      examples/directx11_example/imgui_impl_dx11.cpp
  5. 2
      examples/directx11_example/main.cpp
  6. 2
      examples/directx9_example/imgui_impl_dx9.cpp
  7. 2
      examples/directx9_example/main.cpp
  8. 2
      examples/marmalade_example/imgui_impl_marmalade.cpp
  9. 2
      examples/marmalade_example/main.cpp
  10. 2
      examples/null_example/main.cpp
  11. 2
      examples/opengl2_example/imgui_impl_glfw_gl2.cpp
  12. 2
      examples/opengl2_example/main.cpp
  13. 2
      examples/opengl3_example/imgui_impl_glfw_gl3.cpp
  14. 2
      examples/opengl3_example/main.cpp
  15. 2
      examples/sdl_opengl2_example/imgui_impl_sdl_gl2.cpp
  16. 2
      examples/sdl_opengl2_example/main.cpp
  17. 2
      examples/sdl_opengl3_example/main.cpp
  18. 5
      examples/vulkan_example/imgui_impl_glfw_vulkan.cpp
  19. 5
      examples/vulkan_example/main.cpp

2
examples/allegro5_example/imgui_impl_a5.cpp

@ -12,7 +12,7 @@
#include <stdint.h> // uint64_t #include <stdint.h> // uint64_t
#include <cstring> // memcpy #include <cstring> // memcpy
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_a5.h" #include "imgui_impl_a5.h"
#include <allegro5/allegro.h> #include <allegro5/allegro.h>
#include <allegro5/allegro_primitives.h> #include <allegro5/allegro_primitives.h>

2
examples/allegro5_example/main.cpp

@ -4,7 +4,7 @@
#include <stdint.h> #include <stdint.h>
#include <allegro5/allegro.h> #include <allegro5/allegro.h>
#include <allegro5/allegro_primitives.h> #include <allegro5/allegro_primitives.h>
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_a5.h" #include "imgui_impl_a5.h"
int main(int, char**) int main(int, char**)

2
examples/directx10_example/main.cpp

@ -1,7 +1,7 @@
// ImGui - standalone example application for DirectX 10 // ImGui - standalone example application for DirectX 10
// If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp.
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_dx10.h" #include "imgui_impl_dx10.h"
#include <d3d10_1.h> #include <d3d10_1.h>
#include <d3d10.h> #include <d3d10.h>

2
examples/directx11_example/imgui_impl_dx11.cpp

@ -6,7 +6,7 @@
// If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp.
// https://github.com/ocornut/imgui // https://github.com/ocornut/imgui
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_dx11.h" #include "imgui_impl_dx11.h"
// DirectX // DirectX

2
examples/directx11_example/main.cpp

@ -1,7 +1,7 @@
// ImGui - standalone example application for DirectX 11 // ImGui - standalone example application for DirectX 11
// If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp.
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_dx11.h" #include "imgui_impl_dx11.h"
#include <d3d11.h> #include <d3d11.h>
#define DIRECTINPUT_VERSION 0x0800 #define DIRECTINPUT_VERSION 0x0800

2
examples/directx9_example/imgui_impl_dx9.cpp

@ -6,7 +6,7 @@
// If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp.
// https://github.com/ocornut/imgui // https://github.com/ocornut/imgui
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_dx9.h" #include "imgui_impl_dx9.h"
// DirectX // DirectX

2
examples/directx9_example/main.cpp

@ -1,7 +1,7 @@
// ImGui - standalone example application for DirectX 9 // ImGui - standalone example application for DirectX 9
// If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp.
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_dx9.h" #include "imgui_impl_dx9.h"
#include <d3d9.h> #include <d3d9.h>
#define DIRECTINPUT_VERSION 0x0800 #define DIRECTINPUT_VERSION 0x0800

2
examples/marmalade_example/imgui_impl_marmalade.cpp

@ -9,7 +9,7 @@
// Copyright (C) 2015 by Giovanni Zito // Copyright (C) 2015 by Giovanni Zito
// This file is part of ImGui // This file is part of ImGui
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_marmalade.h" #include "imgui_impl_marmalade.h"
#include <s3eClipboard.h> #include <s3eClipboard.h>

2
examples/marmalade_example/main.cpp

@ -4,7 +4,7 @@
// Copyright (C) 2015 by Giovanni Zito // Copyright (C) 2015 by Giovanni Zito
// This file is part of ImGui // This file is part of ImGui
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_marmalade.h" #include "imgui_impl_marmalade.h"
#include <stdio.h> #include <stdio.h>

2
examples/null_example/main.cpp

@ -1,5 +1,5 @@
// ImGui - null/dummy example application (compile and link imgui with no inputs, no outputs) // ImGui - null/dummy example application (compile and link imgui with no inputs, no outputs)
#include <imgui.h> #include "imgui.h"
#include <stdio.h> #include <stdio.h>
int main(int, char**) int main(int, char**)

2
examples/opengl2_example/imgui_impl_glfw_gl2.cpp

@ -15,7 +15,7 @@
// If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp.
// https://github.com/ocornut/imgui // https://github.com/ocornut/imgui
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_glfw_gl2.h" #include "imgui_impl_glfw_gl2.h"
// GLFW // GLFW

2
examples/opengl2_example/main.cpp

@ -6,7 +6,7 @@
// **Prefer using the code in the opengl3_example/ folder** // **Prefer using the code in the opengl3_example/ folder**
// See imgui_impl_glfw.cpp for details. // See imgui_impl_glfw.cpp for details.
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_glfw_gl2.h" #include "imgui_impl_glfw_gl2.h"
#include <stdio.h> #include <stdio.h>
#include <GLFW/glfw3.h> #include <GLFW/glfw3.h>

2
examples/opengl3_example/imgui_impl_glfw_gl3.cpp

@ -8,7 +8,7 @@
// If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp.
// https://github.com/ocornut/imgui // https://github.com/ocornut/imgui
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_glfw_gl3.h" #include "imgui_impl_glfw_gl3.h"
// GL3W/GLFW // GL3W/GLFW

2
examples/opengl3_example/main.cpp

@ -3,7 +3,7 @@
// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) // (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.)
// (GL3W is a helper library to access OpenGL functions since there is no standard header to access modern OpenGL functions easily. Alternatives are GLEW, Glad, etc.) // (GL3W is a helper library to access OpenGL functions since there is no standard header to access modern OpenGL functions easily. Alternatives are GLEW, Glad, etc.)
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_glfw_gl3.h" #include "imgui_impl_glfw_gl3.h"
#include <stdio.h> #include <stdio.h>
#include <GL/gl3w.h> // This example is using gl3w to access OpenGL functions (because it is small). You may use glew/glad/glLoadGen/etc. whatever already works for you. #include <GL/gl3w.h> // This example is using gl3w to access OpenGL functions (because it is small). You may use glew/glad/glLoadGen/etc. whatever already works for you.

2
examples/sdl_opengl2_example/imgui_impl_sdl_gl2.cpp

@ -18,7 +18,7 @@
#include <SDL.h> #include <SDL.h>
#include <SDL_syswm.h> #include <SDL_syswm.h>
#include <SDL_opengl.h> #include <SDL_opengl.h>
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_sdl_gl2.h" #include "imgui_impl_sdl_gl2.h"
// Data // Data

2
examples/sdl_opengl2_example/main.cpp

@ -6,7 +6,7 @@
// **Prefer using the code in the sdl_opengl3_example/ folder** // **Prefer using the code in the sdl_opengl3_example/ folder**
// See imgui_impl_sdl.cpp for details. // See imgui_impl_sdl.cpp for details.
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_sdl_gl2.h" #include "imgui_impl_sdl_gl2.h"
#include <stdio.h> #include <stdio.h>
#include <SDL.h> #include <SDL.h>

2
examples/sdl_opengl3_example/main.cpp

@ -3,7 +3,7 @@
// (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) // (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.)
// (GL3W is a helper library to access OpenGL functions since there is no standard header to access modern OpenGL functions easily. Alternatives are GLEW, Glad, etc.) // (GL3W is a helper library to access OpenGL functions since there is no standard header to access modern OpenGL functions easily. Alternatives are GLEW, Glad, etc.)
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_sdl_gl3.h" #include "imgui_impl_sdl_gl3.h"
#include <stdio.h> #include <stdio.h>
#include <GL/gl3w.h> // This example is using gl3w to access OpenGL functions (because it is small). You may use glew/glad/glLoadGen/etc. whatever already works for you. #include <GL/gl3w.h> // This example is using gl3w to access OpenGL functions (because it is small). You may use glew/glad/glLoadGen/etc. whatever already works for you.

5
examples/vulkan_example/imgui_impl_glfw_vulkan.cpp

@ -6,7 +6,8 @@
// If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp.
// https://github.com/ocornut/imgui // https://github.com/ocornut/imgui
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_glfw_vulkan.h"
// GLFW // GLFW
#define GLFW_INCLUDE_NONE #define GLFW_INCLUDE_NONE
@ -19,8 +20,6 @@
#include <GLFW/glfw3native.h> #include <GLFW/glfw3native.h>
#endif #endif
#include "imgui_impl_glfw_vulkan.h"
// GLFW Data // GLFW Data
static GLFWwindow* g_Window = NULL; static GLFWwindow* g_Window = NULL;
static double g_Time = 0.0f; static double g_Time = 0.0f;

5
examples/vulkan_example/main.cpp

@ -1,7 +1,8 @@
// ImGui - standalone example application for Glfw + Vulkan, using programmable pipeline // ImGui - standalone example application for Glfw + Vulkan, using programmable pipeline
// If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp.
#include <imgui.h> #include "imgui.h"
#include "imgui_impl_glfw_vulkan.h"
#include <stdio.h> // printf, fprintf #include <stdio.h> // printf, fprintf
#include <stdlib.h> // abort #include <stdlib.h> // abort
@ -9,8 +10,6 @@
#define GLFW_INCLUDE_VULKAN #define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h> #include <GLFW/glfw3.h>
#include "imgui_impl_glfw_vulkan.h"
#define IMGUI_MAX_POSSIBLE_BACK_BUFFERS 16 #define IMGUI_MAX_POSSIBLE_BACK_BUFFERS 16
#define IMGUI_UNLIMITED_FRAME_RATE #define IMGUI_UNLIMITED_FRAME_RATE
//#ifdef _DEBUG //#ifdef _DEBUG

Loading…
Cancel
Save