Questions tagged [immediate-mode]
22 questions
186
votes
1 answer
What are the performance implications of using an immediate-mode GUI compared to a retained-mode GUI?
I am currently working on a standard Windows desktop application (standard meaning no fancy stuff: just buttons, text, sliders, etc.), and have decided to write a GUI framework on my own, after looking into some GUI frameworks and being repelled by…

pulp_user
- 2,454
- 3
- 14
- 18
24
votes
2 answers
How to include .swift file from other .swift file in an immediate mode?
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?

Mirek Rusin
- 18,820
- 3
- 43
- 36
10
votes
2 answers
Examples of Custom Control Flow Compiling Words
Forth famously allows users to alter the language by defining new words for control flow (beyond those given by the standard: DO, LOOP, BEGIN, UNTIL, WHILE, REPEAT, LEAVE IF, THEN, ELSE, CASE, ENDCASE, etc.)
Are there common examples of people…

Raymond Hettinger
- 216,523
- 63
- 388
- 485
4
votes
2 answers
What is the modern OpenGL equivalent to glBegin/glEnd
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…

user2896590
- 45
- 1
- 1
- 4
3
votes
2 answers
Render a 3D model with the same size regardless of camera position
I've got a particular model that acts as controls in the viewer. The user can click on different parts of it to perform transformations on another model in the viewer (like controls/handles in applications like Unity or Blender).
We'd like the…

Boumbles
- 2,473
- 3
- 24
- 42
3
votes
1 answer
OpenGL: Why Lighting changing when Object Rotates?
The below code rotates a pyramid and a cube around their local axis (I believe). Why do both objects go light and dark with this code? Surely the light would come from one fixed position (like the sun) and the objects themselves would not go dark…

SparkyNZ
- 6,266
- 7
- 39
- 80
2
votes
0 answers
ImGUI vs RmGUI technical comparison
I am trying to figure out what really Immediate Mode GUI is in opposite to Retained one.
As it is described in Dear ImGui docs (https://github.com/ocornut/imgui):
"An IMGUI tries to minimize superfluous state duplication, state synchronization and…

user9002532
- 21
- 2
1
vote
1 answer
Can't access class members of Word class in immediate mode
I am writing a vb.net desktop application which automates ms-word. Defining variables of types taken from the word object model, I cannot access member elements of those classes in immediate mode, when debugging. I CAN access them from my code, when…

Chris Kurz
- 55
- 5
0
votes
0 answers
Switch windows in immediate gui
I have 2 structs that represent different windows. Each have its own implementation where window layout described. How to make window switch on button click? I am using EGui but if you have experience with other ui's, like Dear ImGui, I will also…

Mbroo
- 29
- 5
0
votes
1 answer
Is Direct2D's 'immediate mode' nature impacting performance due to inevitable CPU load?
An (if I may say) unconventional aspect of Direct2D compared to high level UI frameworks is it's "immediateness".
Learning about that, I was considering this as an potentially serious problem for performance: CPU load per frame is increased for…

Reizo
- 1,374
- 12
- 17
0
votes
0 answers
Is immediate mode OpenGL guaranteed to work on modern hardware, even though it's deprecated?
I'm maintaining a legacy application which uses OpenGL for rendering.
The application works well on each workstation even though it relies on the deprecated immediate mode. However, should the workstations' hardware be replaced with modern…

sklopec
- 63
- 3
0
votes
1 answer
OpenGL blending: Remove pixels being drawn over (immediate mode)
What I'd like to achieve is a blend where I draw two quads over eachother, both transparent, and the quad drawn last will cancel the colour of the previous quad completely, as if it was never there. However, it may not affect anything behind it…

086
- 197
- 13
0
votes
1 answer
Immediate mode not drawing alpha texture correctly
As the title says, whenever i enable blending like this:
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
I cannot draw any texture using immediate mode. It is an RGBA texture. I confirmed that image loading and generating…

tubberd
- 540
- 5
- 15
0
votes
0 answers
OpenGL immediate mode in window coordinates
As the title says, I'm trying to draw stuff in immediate mode in window coordinates - which is probably the wrong term. That is, the coordinate system that has its origin in the top left corner of the window, with its Y axis expanding downwards the…

tubberd
- 540
- 5
- 15
0
votes
1 answer
OpenGL Immediate Mode textures not working
I am attempting to build a simple project using immediate mode textures.
Unfortunately, when I render, the GL color shows up rather than the texture. I've searched around for solutions, but found no meaningful difference between online examples and…

Martin Wickham
- 442
- 4
- 9