[QUOTE = "Redgy, post: 2030526, member: 215589"]
Convert png to bytes (.h file) using GenerateCode Author: [USER = 238] @ Chrysler [/ USER]
Add .h file to project, change unsigned char to BYTE
Include it where you render
Copy the text after BYTE (byte name, let's say logobyte)
[CODE = cpp] render.cpp:
IDirect3DTexture9 * logo = nullptr;
if (logo == nullptr)
D3DXCreateTextureFromFileInMemoryEx (g_D3DDevice9, & logobyte, sizeof (logobyte), 64, 64, D3DX_DEFAULT, D3DUSAGE_DYNAMIC, D3DFMT_UNKNULL, D3DPOOL_DEFXDULT;,
render.h:
extern IDirect3DTexture9 * logo; [/ CODE]
In the menu where you want to add an icon, turn on render.h and draw a picture in the menu:
[CODE = cpp] ImGui :: Image (logo, ImVec2 (64, 64)); [/ CODE]
[/ QUOTE]
Okay mate, thank you.