9 |
import java.util.*; |
import java.util.*; |
10 |
import java.util.zip.*; |
import java.util.zip.*; |
11 |
|
|
12 |
/** An object that associates a mipzip file and an indirect texture. |
/** An object that represents a texture to be incrementally loaded from |
13 |
|
* the disk or re-forgotten. |
14 |
|
* The texture on disk is represented by a Mipzip file, |
15 |
|
* and in memory by a GL.IndirectTexture object that will point |
16 |
|
* to the texture where the image is currently loaded to. |
17 |
*/ |
*/ |
18 |
|
|
19 |
public class VirtualTexture { |
public class VirtualTexture { |
20 |
|
public VirtualTexture(MipzipFile mipzipFile) { |
21 |
|
this.indirectTexture = GL.createIndirectTexture(); |
22 |
|
this.mipzipFile = mipzipFile; |
23 |
|
} |
24 |
public VirtualTexture(GL.IndirectTexture indirectTexture, |
public VirtualTexture(GL.IndirectTexture indirectTexture, |
25 |
MipzipFile mipzipFile) { |
MipzipFile mipzipFile) { |
26 |
this.indirectTexture = indirectTexture; |
this.indirectTexture = indirectTexture; |