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)
| 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 | /** |
no test coverage detected