SpiderPig Posted May 5, 2022 Share Posted May 5, 2022 How can a texture be drawn to the screen? Does it first need to be converted into a pixmap and set onto a widget? Quote Link to comment Share on other sites More sharing options...
Josh Posted May 5, 2022 Share Posted May 5, 2022 In UAK? Create a panel and use SetPixmap to apply the image to the panel. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
SpiderPig Posted May 5, 2022 Author Share Posted May 5, 2022 I'm using Ultra - trying to do something like this. //Setup auto texture = CreateTextureBuffer(512, 512); auto cam2 = CreateCamera(world); cam2->SetRenderTarget(texture); auto panel = CreatePanel(0,0,512,512,ui); //Loop auto pixmap = ConvertToPixmap(texture->GetColorBuffer());??? panel->setPixmap(pixmap); Quote Link to comment Share on other sites More sharing options...
Josh Posted May 5, 2022 Share Posted May 5, 2022 How can you be using it? It has not been released yet. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
SpiderPig Posted May 5, 2022 Author Share Posted May 5, 2022 I have a steam copy you gave access too ages ago. Quote Link to comment Share on other sites More sharing options...
Josh Posted May 5, 2022 Share Posted May 5, 2022 It may have changed, but you would call CreateRect() and apply a material to it, together with a camera with orthographic projection. There's no 2D drawing commands, just persistent objects and orthographic projection. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
SpiderPig Posted May 5, 2022 Author Share Posted May 5, 2022 That did the trick, thankyou. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.