| 1296 | |
| 1297 | |
| 1298 | protected void copyObject(Texture src) { |
| 1299 | // The OpenGL texture of this object is replaced with the one from the |
| 1300 | // source object, so we delete the former to avoid resource wasting. |
| 1301 | dispose(); |
| 1302 | |
| 1303 | width = src.width; |
| 1304 | height = src.height; |
| 1305 | |
| 1306 | glName = src.glName; |
| 1307 | glTarget = src.glTarget; |
| 1308 | glFormat = src.glFormat; |
| 1309 | glMinFilter = src.glMinFilter; |
| 1310 | glMagFilter = src.glMagFilter; |
| 1311 | |
| 1312 | glWidth= src.glWidth; |
| 1313 | glHeight = src.glHeight; |
| 1314 | |
| 1315 | usingMipmaps = src.usingMipmaps; |
| 1316 | usingRepeat = src.usingRepeat; |
| 1317 | maxTexcoordU = src.maxTexcoordU; |
| 1318 | maxTexcoordV = src.maxTexcoordV; |
| 1319 | |
| 1320 | invertedX = src.invertedX; |
| 1321 | invertedY = src.invertedY; |
| 1322 | } |
| 1323 | |
| 1324 | |
| 1325 | // Releases the memory used by pixelBuffer either if the buffer hasn't been |