IDirect3DTexture9* test_image = nullptr;
if (test_image == nullptr)D3DXCreateTextureFromFileInMemoryEx(device
,&you_array_bytes, sizeof(you_array_bytes),
width_texture, heigh_texture, D3DX_DEFAULT, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 0, NULL, NULL, &test_image );
ImGui::Image(test_image, ImVec2(Ширина, Высота));
Весь код покажи,а не ошибки 0_o
IDirect3DTexture9* logo1 = logo;
if (logo == nullptr)D3DXCreateTextureFromFileInMemoryEx(device
, &logo, sizeof(logo),
60, 60, D3DX_DEFAULT, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 0, NULL, NULL, &logo1
ImGui::Image(logo, ImVec2(50, 25));
plagueware просто хочу туда засунуть лого, я знаю что я клоунПотом менюшку скинь посмотреть
IDirect3DTexture9* logo1 = logo;
IDirect3DTexture9* logo = nulltpr;
if (logo == nullptr)D3DXCreateTextureFromFileInMemoryEx(device
, &image_bytes, sizeof(image_bytes),
60, 60, D3DX_DEFAULT, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 0, NULL, NULL, &logo
ImGui::Image(logo, ImVec2(50, 25));
[/QUOTE]C++:IDirect3DTexture9* logo1 = logo;
Этот код в корне не правильный:
Пример :
Global vars / Menu class:
C++:IDirect3DTexture9* logo = nulltpr;
Present hook:
C++:if (logo == nullptr)D3DXCreateTextureFromFileInMemoryEx(device , &image_bytes, sizeof(image_bytes), 60, 60, D3DX_DEFAULT, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 0, NULL, NULL, &logo
Menu:
C++:ImGui::Image(logo, ImVec2(50, 25));