Apply a texture from a HBITMAP to a wall in the sample DirectX11 room
Hi,
is it possible using the code from the sample OculusTinyRoom(DX11) to apply a texture to a solid from a HBITMAP?
The sample code is
TriangleSet walls;
walls.AddSolidColorBox(-10.1f, 0.0f, -20.0f, -10.0f, 4.0f, 20.0f, 0xff808080); // Left Wall
Add(new Model(&walls, Vector3f(0, 0, 0), new Material(new Texture(false, Sizei(256, 256), Texture::AUTO_WALL))));
Let's say that I want apply a HBITMAP texture on this wall, how can I do it in a simple way?
Thanks
is it possible using the code from the sample OculusTinyRoom(DX11) to apply a texture to a solid from a HBITMAP?
The sample code is
TriangleSet walls;
walls.AddSolidColorBox(-10.1f, 0.0f, -20.0f, -10.0f, 4.0f, 20.0f, 0xff808080); // Left Wall
Add(new Model(&walls, Vector3f(0, 0, 0), new Material(new Texture(false, Sizei(256, 256), Texture::AUTO_WALL))));
Let's say that I want apply a HBITMAP texture on this wall, how can I do it in a simple way?
Thanks
