MCPcopy Index your code
hub / github.com/processing/processing / hasFBOs

Method hasFBOs

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

Source from the content-addressed store, hash-verified

2149
2150
2151 protected boolean hasFBOs() {
2152 // FBOs might still be available through extensions.
2153 int major = getGLVersion()[0];
2154 if (major < 2) {
2155 String ext = getString(EXTENSIONS);
2156 return ext.indexOf("_framebuffer_object") != -1 &&
2157 ext.indexOf("_vertex_shader") != -1 &&
2158 ext.indexOf("_shader_objects") != -1 &&
2159 ext.indexOf("_shading_language") != -1;
2160 } else {
2161 return true;
2162 }
2163 }
2164
2165
2166 protected boolean hasShaders() {

Callers

nothing calls this directly

Calls 2

getGLVersionMethod · 0.95
getStringMethod · 0.95

Tested by

no test coverage detected