(int wide, int high)
| 246 | |
| 247 | |
| 248 | public void resize(int wide, int high) { |
| 249 | // Disposing current resources. |
| 250 | dispose(); |
| 251 | |
| 252 | // Creating new texture with the appropriate size. |
| 253 | Texture tex = new Texture(pg, wide, high, getParameters()); |
| 254 | |
| 255 | // Copying the contents of this texture into tex. |
| 256 | tex.set(this); |
| 257 | |
| 258 | // Now, overwriting "this" with tex. |
| 259 | copyObject(tex); |
| 260 | |
| 261 | // Nullifying some utility objects so they are recreated with the |
| 262 | // appropriate size when needed. |
| 263 | tempFbo = null; |
| 264 | } |
| 265 | |
| 266 | |
| 267 | /** |
nothing calls this directly
no test coverage detected