Michael_J Posted June 24, 2015 Posted June 24, 2015 I know of the methods to add title bars and what not, but I don't BELIEVE there is a way to create a border-less window. I have many users that like to use windowed mode, and prefer to not have the border (and I've seen this done in many games for this reason). Thanks... Quote --"There is no spoon"
macklebee Posted June 24, 2015 Posted June 24, 2015 Just don't pick a style that includes a titlebar. example code: window = Window:Create("borderless window", 0,0,400,300,window.Center) context = Context:Create(window) world = World:Create() camera = Camera:Create() camera:Move(0,0,-3) light = DirectionalLight:Create() light:SetRotation(35,35,0) model = Model:Box() model:SetColor(1.0,0.5,0.0) while window:KeyDown(Key.Escape)==false do if window:Closed() then break end model:Turn(0,Time:GetSpeed(),0) Time:Update() world:Update() world:Render() context:Sync(true) end Note that the style 'window.Center' begins with a capital 'W' - for some reason the forum always makes this lowercase... 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
Michael_J Posted June 24, 2015 Author Posted June 24, 2015 Damn, you know, I could SWEAR I tried this before and I still got a border... :S Okay--that works a treat. This can be closed--sorry for the brain-fart... Quote --"There is no spoon"
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.