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 |
|
|
5 |
|
from gfx.libutil.texture import printTex |
6 |
|
|
7 |
scroll = gzz.media.impl.PageImageScroll(None, gzz.mediaserver.Mediaserver.Id( |
scroll = gzz.media.impl.PageImageScroll(None, gzz.mediaserver.Mediaserver.Id( |
8 |
"0000000008000000E9573F43E00004CB42D4BEFEBAA27C20403F7D57693141B9E4D9A46329AC9C")) |
"0000000008000000E9573F43E00004CB42D4BEFEBAA27C20403F7D57693141B9E4D9A46329AC9C")) |
9 |
|
|
10 |
rect = GLSpans.getRect(scroll.getCurrent()) |
rect = GLSpans.getRect(scroll.getCurrent()) |
11 |
|
|
|
def printTex(id): |
|
|
for i in range(0,1): |
|
|
for p in ( |
|
|
# "TEXTURE_WIDTH", |
|
|
# "TEXTURE_HEIGHT", |
|
|
"TEXTURE_RED_SIZE", |
|
|
"TEXTURE_GREEN_SIZE", |
|
|
"TEXTURE_BLUE_SIZE", |
|
|
"TEXTURE_ALPHA_SIZE", |
|
|
"TEXTURE_LUMINANCE_SIZE", |
|
|
"TEXTURE_INTENSITY_SIZE", |
|
|
): |
|
|
print "p:\t",p,"\t", GL.getGLTexLevelParameterFloat("TEXTURE_2D", id, i, p) |
|
|
print "if:\t",GL.getGLTokenString( |
|
|
int(GL.getGLTexLevelParameterFloat("TEXTURE_2D", id, i, |
|
|
"TEXTURE_INTERNAL_FORMAT")[0])) |
|
|
|
|
12 |
print "PageImageScroll\n" |
print "PageImageScroll\n" |
13 |
printTex(rect.texId) |
printTex(rect.texId) |
14 |
|
|