if (init_textura == nullptr) {
D3DXCreateTextureFromFileInMemoryEx(
device,
&tvoya_textura , sizeof(tvoya_textura ),
500, 500,//razmer texturi
D3DX_DEFAULT, 0, D3DFMT_UNKNOWN, D3DPOOL_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, NULL, NULL, &init_textura );
}