MCPcopy Create free account
hub / github.com/SpaiR/imgui-java / clearBuffer

Method clearBuffer

imgui-app/src/main/java/imgui/app/WindowGlfw.java:166–169  ·  view source on GitHub ↗

Method used to clear the OpenGL buffer.

()

Source from the content-addressed store, hash-verified

164 * Method used to clear the OpenGL buffer.
165 */
166 private void clearBuffer() {
167 GL32.glClearColor(colorBg.getRed(), colorBg.getGreen(), colorBg.getBlue(), colorBg.getAlpha());
168 GL32.glClear(GL32.GL_COLOR_BUFFER_BIT | GL32.GL_DEPTH_BUFFER_BIT);
169 }
170
171 /**
172 * Method called at the beginning of the main cycle.

Callers 2

initWindowMethod · 0.95
startFrameMethod · 0.95

Calls 4

getRedMethod · 0.80
getGreenMethod · 0.80
getBlueMethod · 0.80
getAlphaMethod · 0.45

Tested by

no test coverage detected