Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
imgui_impl_win32.cpp File Reference
#include "../imgui.h"
#include "imgui_impl_win32.h"
#include <windows.h>
#include <Xinput.h>
#include <tchar.h>
+ Include dependency graph for imgui_impl_win32.cpp:

Macros

#define WIN32_LEAN_AND_MEAN
 
#define MAP_BUTTON(NAV_NO, BUTTON_ENUM)   { io.NavInputs[NAV_NO] = (gamepad.wButtons & BUTTON_ENUM) ? 1.0f : 0.0f; }
 
#define MAP_ANALOG(NAV_NO, VALUE, V0, V1)   { float vn = (float)(VALUE - V0) / (float)(V1 - V0); if (vn > 1.0f) vn = 1.0f; if (vn > 0.0f && io.NavInputs[NAV_NO] < vn) io.NavInputs[NAV_NO] = vn; }
 
#define WM_MOUSEHWHEEL   0x020E
 
#define DBT_DEVNODES_CHANGED   0x0007
 

Functions

bool ImGui_ImplWin32_Init (void *hwnd)
 
void ImGui_ImplWin32_Shutdown ()
 
void ImGui_ImplWin32_NewFrame ()
 
IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
 

Macro Definition Documentation

◆ DBT_DEVNODES_CHANGED

#define DBT_DEVNODES_CHANGED   0x0007

◆ MAP_ANALOG

#define MAP_ANALOG (   NAV_NO,
  VALUE,
  V0,
  V1 
)    { float vn = (float)(VALUE - V0) / (float)(V1 - V0); if (vn > 1.0f) vn = 1.0f; if (vn > 0.0f && io.NavInputs[NAV_NO] < vn) io.NavInputs[NAV_NO] = vn; }

◆ MAP_BUTTON

#define MAP_BUTTON (   NAV_NO,
  BUTTON_ENUM 
)    { io.NavInputs[NAV_NO] = (gamepad.wButtons & BUTTON_ENUM) ? 1.0f : 0.0f; }

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

◆ WM_MOUSEHWHEEL

#define WM_MOUSEHWHEEL   0x020E

Function Documentation

◆ ImGui_ImplWin32_Init()

bool ImGui_ImplWin32_Init ( void *  hwnd)

◆ ImGui_ImplWin32_NewFrame()

void ImGui_ImplWin32_NewFrame ( )
+ Here is the call graph for this function:

◆ ImGui_ImplWin32_Shutdown()

void ImGui_ImplWin32_Shutdown ( )

◆ ImGui_ImplWin32_WndProcHandler()

IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler ( HWND  hwnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)
+ Here is the call graph for this function: