Rick Posted April 5, 2013 Share Posted April 5, 2013 http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/window/windowcreate-r462 What are the constants for Lua for the last param? I tried just 1-5 (since the constants are just numbers I assume) and I can't seem to get fullscreen. I would get 2 values that wouldn't produce a border, which is one of the values, but they both were not taking up the fullscreen. Just what I defined as the resolution (say 1024x768) but my monitor is higher than that. I would expect it to convert my monitor to that resolution and then take up the entire screen. What am I missing? Link to comment Share on other sites More sharing options...
Josh Posted April 5, 2013 Share Posted April 5, 2013 Window.FullScreen should do it. 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...
Rick Posted April 5, 2013 Author Share Posted April 5, 2013 Using that I can see it's trying to make the fullscreen. It stays black and crashes shortly after. Link to comment Share on other sites More sharing options...
Josh Posted April 5, 2013 Share Posted April 5, 2013 I don't think it crashes, I think it switches out of that window. function App:Start() --Create a window self.window = Window:Create("",0,0,1024,768,Window.FullScreen) self.context = Context:Create(self.window) self.world = World:Create() local camera = Camera:Create() camera:Move(0,0,-3) local light = DirectionalLight:Create() light:SetRotation(35,35,0) self.model = Model:Box() self.model:SetColor(0.0,0.0,1.0) return true end function App:Loop() if self.window:Closed() or self.window:KeyHit(Key.Escape) then return false end self.model:Turn(0,Time:GetSpeed(),0) Time:Update() self.world:Update() self.world:Render() self.context:Sync(false) return true end 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...
Rick Posted April 5, 2013 Author Share Posted April 5, 2013 It does that also, but yeah it crashes as well. I get the "ProgramName as stopped working" msg after a bunch of stuff gets loaded (I can see via the dos window that gets created). Without Window.FullScreen everything works. Link to comment Share on other sites More sharing options...
Josh Posted April 5, 2013 Share Posted April 5, 2013 The Mac problem is caused by changes Apple made in OSX 10.8: http://lists.apple.com/archives/mac-opengl/2012/Jul/msg00049.html It's like building a house on quicksand sometimes. Okay, fixed now, will upload a new build this weekend. 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