Rick Posted December 17, 2016 Share Posted December 17, 2016 I have the below in a script in a scene and it does not draw a rounded rectangle. It makes a line at the top of the rect to the top left of the screen. function Script:PostRender(context) context:SetBlendMode(Blend.Alpha) context:SetColor(Vec4(1)) context:DrawRect(100, 100, 100, 100, 0, 2) end 1 Quote Link to comment Share on other sites More sharing options...
macklebee Posted December 17, 2016 Share Posted December 17, 2016 Agree. Either applying the gradient or adding a radius will draw the rectangle incorrectly. window=Window:Create("example",0,0,600,400,window.Titlebar+window.Center) context=Context:Create(window,4) world=World:Create() camera = Camera:Create() while window:KeyDown(Key.Escape)==false do if window:Closed() then break end Time:Update() world:Update() world:Render() context:SetBlendMode(Blend.Alpha) context:SetColor(1,0,0,1,0) context:SetColor(1,1,0,1,1) context:DrawRect(100,100,400,200,0,5) context:SetGradientMode(true) context:SetBlendMode(Blend.Solid) context:Sync(true) end And if doing gradient only: 1 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
macklebee Posted December 17, 2016 Share Posted December 17, 2016 I even tried to get the original GUI example to work and it fails to draw the button: http://www.leadwerks.com/werkspace/blog/1/entry-1714-leadwerks-gui/ Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Josh Posted December 17, 2016 Share Posted December 17, 2016 Not supported 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...
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.