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

Method init

core/src/processing/opengl/Texture.java:187–198  ·  view source on GitHub ↗

Sets the size of the image and texture to width x height. If the texture is already initialized, it first destroys the current OpenGL texture object and then creates a new one with the specified size. @param width int @param height int

(int width, int height)

Source from the content-addressed store, hash-verified

185 * @param height int
186 */
187 public void init(int width, int height) {
188 Parameters params;
189 if (0 < glName) {
190 // Re-initializing a pre-existing texture.
191 // We use the current parameters as default:
192 params = getParameters();
193 } else {
194 // Just built-in default parameters otherwise:
195 params = new Parameters();
196 }
197 init(width, height, params);
198 }
199
200
201 /**

Callers 4

getTextureMethod · 0.95
TextureMethod · 0.95
getBufferPixelsMethod · 0.95
bufferUpdateMethod · 0.95

Calls 4

getParametersMethod · 0.95
setParametersMethod · 0.95
setSizeMethod · 0.95
allocateMethod · 0.95

Tested by

no test coverage detected