Nuklear Orx draw image

Drawing images in nuklear through orx



orxTEXTURE* tex = orxTexture_CreateFromFile("lunarMapResized.png", true);
nk_command_buffer* commandBuffer = nk_window_get_canvas(m_nkCtx);
orxBITMAP* bitmap = orxTexture_GetBitmap(tex);
struct nk_image imgLoc = nk_image_ptr(bitmap);
nk_draw_image(commandBuffer, nk_rect(messagesWindowWidth, 0.0f, mapWidth, mapHeight), &imgLoc, nk_rgba(255, 255, 255, 255));

Comments