immediate-mode

immediate mode GUI performance

偶尔善良 提交于 2020-01-24 22:13:26
问题 I am currently working on a standard windows desktop application (standard meaning no fancy stuff, just buttons, text, sliders and stuff) and have decided to write the gui-framework on my own, after looking into some GUI-Frameworks and beeing repelled by all of them. Since it's a hobby project I am also willing to experiment, and decided to make the GUI immediate mode, not retained, since I really like the way it simplifies the code. Here is the question: What are the performance implications

immediate mode GUI performance

旧城冷巷雨未停 提交于 2020-01-24 22:13:10
问题 I am currently working on a standard windows desktop application (standard meaning no fancy stuff, just buttons, text, sliders and stuff) and have decided to write the gui-framework on my own, after looking into some GUI-Frameworks and beeing repelled by all of them. Since it's a hobby project I am also willing to experiment, and decided to make the GUI immediate mode, not retained, since I really like the way it simplifies the code. Here is the question: What are the performance implications

How to include .swift file from other .swift file in an immediate mode?

别说谁变了你拦得住时间么 提交于 2019-12-17 15:46:14
问题 Having a file with function definition bar.swift : func bar() { println("bar") } And a script to be run in immediate mode foo.swift : #!/usr/bin/xcrun swift -i bar() How do you import bar.swift 's bar() function from foo.swift ? 回答1: I think the answer right now is that you can't split code across multiple files unless you compile the code. Executing with #!/usr/bin/swift is only possible for single file scripts. It's obviously a good idea to file an enhancement request at http://bugreport

What is the modern OpenGL equivalent to glBegin/glEnd

巧了我就是萌 提交于 2019-12-07 17:29:46
问题 I'm building a graphics API for OpenGL, which is based off the basic call-to-draw graphics style. Basically, instead of storing the data into the GPU, and call it using it's handle, give the info to draw what it should be drawing each update. I know it's slow, but it's simple and it's for non-performance critical applications. Anyway, is there any modern equivalent to glBegin/glEnd? It doesn't have to a call for every vertex, but a way where I can send the data each update, without storing

How to include .swift file from other .swift file in an immediate mode?

三世轮回 提交于 2019-11-27 20:08:49
Having a file with function definition bar.swift : func bar() { println("bar") } And a script to be run in immediate mode foo.swift : #!/usr/bin/xcrun swift -i bar() How do you import bar.swift 's bar() function from foo.swift ? I think the answer right now is that you can't split code across multiple files unless you compile the code. Executing with #!/usr/bin/swift is only possible for single file scripts. It's obviously a good idea to file an enhancement request at http://bugreport.apple.com/ , but in the mean time you're going to have to compile the code before executing it. Also, your foo