File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 275
275
| :sl:`Update the display surface to the window.`
276
276
| :sg:`flip() -> None`
277
277
278
- Update content from the display surface to the window. This is the Window
278
+ Update pixel data from memory to be displayed in the window. This is the Window
279
279
class equivalent of :func: `pygame.display.flip `.
280
280
281
- This method allows software rendering (classic pygame rendering) on top
282
- of the Window API. This method should not be called when using hardware
283
- rendering (coming soon) .
281
+ With `` get_surface() `` this method allows software rendering (classic pygame rendering) flipping pixel data
282
+ from an associated surface in memory to be displayed in the window. Alternatively, when this window has an
283
+ associated OpenGL context, this method will instead perform a GL buffer swap to the window .
284
284
285
285
Here is a runnable example of using ``get_surface `` and ``flip ``:
286
286
You can’t perform that action at this time.
0 commit comments