tjheldna Posted May 27, 2014 Posted May 27, 2014 I don't think you can but it won't hurt to ask. Is it possible to tile an image using DrawImage? I've created a speech dialog box in which I want a header image, footer image and the body image which the height is variable depending on how much text is displayed. Obviously I could create a series of smaller body images to match the size of the dialog windos text, but if the above was possible it would be a lot nicer. Also is it possible to clip a drawn image? I remember doing something like this in 2.5 with buffers, but not sure how to do it in 3.1. Quote
gamecreator Posted May 27, 2014 Posted May 27, 2014 I hope there's an easier way but the only thing I can think of is creating your own texture on the fly http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/texture/texturecreate-r340 There's also SetShader but I don't know if that's helpful in any way http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/context/contextsetshader-r729 1 Quote
tjheldna Posted May 27, 2014 Author Posted May 27, 2014 Texture::Create looks interesting, I'll look into it some more tonight and see what I can come up with. I could also see uses for progress bars that are made from images not rectangles. Thanks Quote
Josh Posted May 27, 2014 Posted May 27, 2014 See GraphicsDriver::TileImage() and bear in mind that you are using unofficial features. Quote My job is to make tools you love, with the features you want, and performance you can't live without.
tjheldna Posted May 27, 2014 Author Posted May 27, 2014 Yep it's there, I'll give it a try (unofficially that is ) Quote
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.