mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
Examples: disable GL related warnings on Mac + amend to ignore list.
This commit is contained in:
parent
a725db17b7
commit
73efcec564
3
.gitignore
vendored
3
.gitignore
vendored
@ -45,9 +45,12 @@ examples/example_emscripten_wgpu/web/*
|
|||||||
cmake-build-*
|
cmake-build-*
|
||||||
|
|
||||||
## Unix executables from our example Makefiles
|
## Unix executables from our example Makefiles
|
||||||
|
examples/example_glfw_metal/example_glfw_metal
|
||||||
examples/example_glfw_opengl2/example_glfw_opengl2
|
examples/example_glfw_opengl2/example_glfw_opengl2
|
||||||
examples/example_glfw_opengl3/example_glfw_opengl3
|
examples/example_glfw_opengl3/example_glfw_opengl3
|
||||||
examples/example_glut_opengl2/example_glut_opengl2
|
examples/example_glut_opengl2/example_glut_opengl2
|
||||||
examples/example_null/example_null
|
examples/example_null/example_null
|
||||||
|
examples/example_sdl_metal/example_sdl_metal
|
||||||
examples/example_sdl_opengl2/example_sdl_opengl2
|
examples/example_sdl_opengl2/example_sdl_opengl2
|
||||||
examples/example_sdl_opengl3/example_sdl_opengl3
|
examples/example_sdl_opengl3/example_sdl_opengl3
|
||||||
|
examples/example_sdl_sdlrenderer/example_sdl_sdlrenderer
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
#include "imgui.h"
|
#include "imgui.h"
|
||||||
#include "imgui_impl_glut.h"
|
#include "imgui_impl_glut.h"
|
||||||
|
#define GL_SILENCE_DEPRECATION
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <GLUT/glut.h>
|
#include <GLUT/glut.h>
|
||||||
#else
|
#else
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#include "imgui_impl_glfw.h"
|
#include "imgui_impl_glfw.h"
|
||||||
#include "imgui_impl_opengl3.h"
|
#include "imgui_impl_opengl3.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#define GL_SILENCE_DEPRECATION
|
||||||
#if defined(IMGUI_IMPL_OPENGL_ES2)
|
#if defined(IMGUI_IMPL_OPENGL_ES2)
|
||||||
#include <GLES2/gl2.h>
|
#include <GLES2/gl2.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
#include "imgui.h"
|
#include "imgui.h"
|
||||||
#include "imgui_impl_glut.h"
|
#include "imgui_impl_glut.h"
|
||||||
#include "imgui_impl_opengl2.h"
|
#include "imgui_impl_opengl2.h"
|
||||||
|
#define GL_SILENCE_DEPRECATION
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <GLUT/glut.h>
|
#include <GLUT/glut.h>
|
||||||
#else
|
#else
|
||||||
|
@ -38,7 +38,7 @@ int main(int, char**)
|
|||||||
if (renderer == NULL)
|
if (renderer == NULL)
|
||||||
{
|
{
|
||||||
SDL_Log("Error creating SDL_Renderer!");
|
SDL_Log("Error creating SDL_Renderer!");
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
//SDL_RendererInfo info;
|
//SDL_RendererInfo info;
|
||||||
//SDL_GetRendererInfo(renderer, &info);
|
//SDL_GetRendererInfo(renderer, &info);
|
||||||
|
Loading…
Reference in New Issue
Block a user