MCPcopy Create free account
hub / github.com/benfry/processing4 / validateFramebuffer

Method validateFramebuffer

core/src/processing/opengl/PGL.java:2113–2141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2111
2112
2113 protected int validateFramebuffer() {
2114 int status = checkFramebufferStatus(FRAMEBUFFER);
2115 if (status == FRAMEBUFFER_COMPLETE) {
2116 return 0;
2117 } else if (status == FRAMEBUFFER_UNDEFINED) {
2118 System.err.printf((FRAMEBUFFER_ERROR) + "%n", "framebuffer undefined");
2119 } else if (status == FRAMEBUFFER_INCOMPLETE_ATTACHMENT) {
2120 System.err.printf((FRAMEBUFFER_ERROR) + "%n", "incomplete attachment");
2121 } else if (status == FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT) {
2122 System.err.printf((FRAMEBUFFER_ERROR) + "%n", "incomplete missing attachment");
2123 } else if (status == FRAMEBUFFER_INCOMPLETE_DIMENSIONS) {
2124 System.err.printf((FRAMEBUFFER_ERROR) + "%n", "incomplete dimensions");
2125 } else if (status == FRAMEBUFFER_INCOMPLETE_FORMATS) {
2126 System.err.printf((FRAMEBUFFER_ERROR) + "%n", "incomplete formats");
2127 } else if (status == FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER) {
2128 System.err.printf((FRAMEBUFFER_ERROR) + "%n", "incomplete draw buffer");
2129 } else if (status == FRAMEBUFFER_INCOMPLETE_READ_BUFFER) {
2130 System.err.printf((FRAMEBUFFER_ERROR) + "%n", "incomplete read buffer");
2131 } else if (status == FRAMEBUFFER_UNSUPPORTED) {
2132 System.err.printf((FRAMEBUFFER_ERROR) + "%n", "framebuffer unsupported");
2133 } else if (status == FRAMEBUFFER_INCOMPLETE_MULTISAMPLE) {
2134 System.err.printf((FRAMEBUFFER_ERROR) + "%n", "incomplete multisample buffer");
2135 } else if (status == FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS) {
2136 System.err.printf((FRAMEBUFFER_ERROR) + "%n", "incomplete layer targets");
2137 } else {
2138 System.err.printf((FRAMEBUFFER_ERROR) + "%n", "unknown error " + status);
2139 }
2140 return status;
2141 }
2142
2143 protected boolean isES() {
2144 return getString(VERSION).trim().toLowerCase().contains("opengl es");

Callers 3

createFBOLayerMethod · 0.95
setColorBuffersMethod · 0.80
swapColorBuffersMethod · 0.80

Calls 1

Tested by

no test coverage detected