mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-12 02:00:58 +01:00
Missing includes for imgui_draw.cpp (#219)
This commit is contained in:
parent
52a74701f5
commit
e32f0931e8
17
imgui.cpp
17
imgui.cpp
@ -473,11 +473,6 @@
|
|||||||
#include <math.h> // sqrtf, fabsf, fmodf, powf, cosf, sinf, floorf, ceilf
|
#include <math.h> // sqrtf, fabsf, fmodf, powf, cosf, sinf, floorf, ceilf
|
||||||
#include <stdio.h> // vsnprintf, sscanf, printf
|
#include <stdio.h> // vsnprintf, sscanf, printf
|
||||||
#include <new> // new (ptr)
|
#include <new> // new (ptr)
|
||||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
|
||||||
#include <malloc.h> // alloca
|
|
||||||
#else
|
|
||||||
#include <alloca.h> // alloca
|
|
||||||
#endif
|
|
||||||
#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier
|
#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier
|
||||||
#include <stddef.h> // intptr_t
|
#include <stddef.h> // intptr_t
|
||||||
#else
|
#else
|
||||||
@ -609,9 +604,9 @@ static bool InputIntN(const char* label, int* v, int components, ImG
|
|||||||
// Platform dependent default implementations
|
// Platform dependent default implementations
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
static const char* GetClipboardTextFn_DefaultImpl();
|
static const char* GetClipboardTextFn_DefaultImpl();
|
||||||
static void SetClipboardTextFn_DefaultImpl(const char* text);
|
static void SetClipboardTextFn_DefaultImpl(const char* text);
|
||||||
static void ImeSetInputScreenPosFn_DefaultImpl(int x, int y);
|
static void ImeSetInputScreenPosFn_DefaultImpl(int x, int y);
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Context
|
// Context
|
||||||
@ -619,12 +614,12 @@ static void ImeSetInputScreenPosFn_DefaultImpl(int x, int y);
|
|||||||
|
|
||||||
// We access everything through this pointer (always assumed to be != NULL)
|
// We access everything through this pointer (always assumed to be != NULL)
|
||||||
// You can swap the pointer to a different context by calling ImGui::SetInternalState()
|
// You can swap the pointer to a different context by calling ImGui::SetInternalState()
|
||||||
static ImGuiState GImDefaultState;
|
static ImGuiState GImDefaultState;
|
||||||
ImGuiState* GImGui = &GImDefaultState;
|
ImGuiState* GImGui = &GImDefaultState;
|
||||||
|
|
||||||
// Statically allocated default font atlas. This is merely a maneuver to keep ImFontAtlas definition at the bottom of the .h file (otherwise it'd be inside ImGuiIO)
|
// Statically allocated default font atlas. This is merely a maneuver to keep ImFontAtlas definition at the bottom of the .h file (otherwise it'd be inside ImGuiIO)
|
||||||
// Also we wouldn't be able to new() one at this point, before users may define IO.MemAllocFn.
|
// Also we wouldn't be able to new() one at this point, before users may define IO.MemAllocFn.
|
||||||
static ImFontAtlas GImDefaultFontAtlas;
|
static ImFontAtlas GImDefaultFontAtlas;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// User facing structures
|
// User facing structures
|
||||||
|
@ -19,6 +19,11 @@
|
|||||||
#include "imgui_internal.h"
|
#include "imgui_internal.h"
|
||||||
#include <stdio.h> // vsnprintf, sscanf, printf
|
#include <stdio.h> // vsnprintf, sscanf, printf
|
||||||
#include <new> // new (ptr)
|
#include <new> // new (ptr)
|
||||||
|
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||||
|
#include <malloc.h> // alloca
|
||||||
|
#else
|
||||||
|
#include <alloca.h> // alloca
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff)
|
#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff)
|
||||||
|
Loading…
Reference in New Issue
Block a user