2 |
# We're using VERY large textures for the PDF stuff and it's |
# We're using VERY large textures for the PDF stuff and it's |
3 |
# vital that we understand what they get stored as. |
# vital that we understand what they get stored as. |
4 |
|
|
|
from gzz.gfx.gl import GZZGL,GLSpans,Paper |
|
|
|
|
5 |
scroll = gzz.media.impl.PageImageScroll(None, gzz.mediaserver.Mediaserver.Id( |
scroll = gzz.media.impl.PageImageScroll(None, gzz.mediaserver.Mediaserver.Id( |
6 |
"0000000008000000E9573F43E00004CB42D4BEFEBAA27C20403F7D57693141B9E4D9A46329AC9C")) |
"0000000008000000E9573F43E00004CB42D4BEFEBAA27C20403F7D57693141B9E4D9A46329AC9C")) |
7 |
|
|
19 |
"TEXTURE_LUMINANCE_SIZE", |
"TEXTURE_LUMINANCE_SIZE", |
20 |
"TEXTURE_INTENSITY_SIZE", |
"TEXTURE_INTENSITY_SIZE", |
21 |
): |
): |
22 |
print "p:\t",p,"\t", GZZGL.getGLTexLevelParameterFloat("TEXTURE_2D", id, i, p) |
print "p:\t",p,"\t", GL.getGLTexLevelParameterFloat("TEXTURE_2D", id, i, p) |
23 |
print "if:\t",GZZGL.getGLTokenString( |
print "if:\t",GL.getGLTokenString( |
24 |
int(GZZGL.getGLTexLevelParameterFloat("TEXTURE_2D", id, i, |
int(GL.getGLTexLevelParameterFloat("TEXTURE_2D", id, i, |
25 |
"TEXTURE_INTERNAL_FORMAT")[0])) |
"TEXTURE_INTERNAL_FORMAT")[0])) |
26 |
|
|
27 |
print "PageImageScroll\n" |
print "PageImageScroll\n" |
72 |
("COMPRESSED_RGBA_S3TC_DXT3_EXT", "RGBA", "4"), |
("COMPRESSED_RGBA_S3TC_DXT3_EXT", "RGBA", "4"), |
73 |
("COMPRESSED_RGBA_S3TC_DXT5_EXT", "RGBA", "4"), |
("COMPRESSED_RGBA_S3TC_DXT5_EXT", "RGBA", "4"), |
74 |
): |
): |
75 |
tex = GZZGL.createTexture() |
tex = GL.createTexture() |
76 |
print "Now: ",inter |
print "Now: ",inter |
77 |
tex.shade(64, 64, 0, int(ncomps), inter, exter, "noise", ()) |
tex.shade(64, 64, 0, int(ncomps), inter, exter, "noise", ()) |
78 |
printTex(tex.getTexId()) |
printTex(tex.getTexId()) |