7 |
and discard mipmap levels. |
and discard mipmap levels. |
8 |
|
|
9 |
The Mipzip file format is simple: a zip file with a single entry |
The Mipzip file format is simple: a zip file with a single entry |
10 |
for each mipmap level, and some metadata entries. |
for each mipmap level, and a metadata entry "texformat". |
11 |
|
The metadata is stored in comments so that unzip -l will show it. |
12 |
|
The format is stored as an callGL-accepted OpenGL token, e.g. |
13 |
|
``COMPRESSED_RGB_S3TC_DXT1_EXT``. |
14 |
|
|
15 |
|
.. UML:: mipzipformat |
16 |
|
|
17 |
|
class MipzipFile |
18 |
|
assoc compos - multi(1) FormatData |
19 |
|
assoc compos - multi(n) LevelData |
20 |
|
|
21 |
|
class FormatData |
22 |
|
fields |
23 |
|
name: "texformat" |
24 |
|
comment: texformatname |
25 |
|
|
26 |
|
class LevelData |
27 |
|
fields |
28 |
|
name: "i" |
29 |
|
comment: resolution |
30 |
|
content: data |
31 |
|
|
32 |
|
--- |
33 |
|
|
34 |
|
horizontally(80, foo, FormatData, LevelData); |
35 |
|
vertically(80, bar, MipzipFile, foo); |
36 |
|
|
37 |
Due to the requirements of memory handling and GL threads, |
Due to the requirements of memory handling and GL threads, |
38 |
we need to separate loading the mipmap level and teximaging |
we need to separate loading the mipmap level and teximaging |