From dfbee835b5a50b1c6219bd53e15823ea83d73dd6 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 3 Feb 2005 23:15:59 +0000 Subject: Fixed build problems after integration of GKW's Java port of GLU mipmap code git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@208 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/impl/mipmap/Image.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/net/java/games/jogl/impl/mipmap/Image.java') diff --git a/src/net/java/games/jogl/impl/mipmap/Image.java b/src/net/java/games/jogl/impl/mipmap/Image.java index 173603aeb..b0d54bfc0 100644 --- a/src/net/java/games/jogl/impl/mipmap/Image.java +++ b/src/net/java/games/jogl/impl/mipmap/Image.java @@ -130,7 +130,7 @@ public class Image { } myswap_bytes = psm.getUnpackSwapBytes(); - components = GLU.mipmap.Mipmap.elements_per_group( format, type ); + components = Mipmap.elements_per_group( format, type ); if( psm.getUnpackRowLength() > 0 ) { groups_per_line = psm.getUnpackRowLength(); } else { @@ -184,7 +184,7 @@ public class Image { start += rowsize; } } else { - element_size = GLU.mipmap.Mipmap.bytes_per_element( type ); + element_size = Mipmap.bytes_per_element( type ); group_size = element_size * components; if( element_size == 1 ) { myswap_bytes = false; @@ -355,10 +355,10 @@ public class Image { } // for i // iterators should be one byte past end - if( !GLU.mipmap.Mipmap.isTypePackedPixel( type ) ) { + if( !Mipmap.isTypePackedPixel( type ) ) { assert( iter2 == ( width * height * components ) ); } else { - assert( iter2 == ( width * height * GLU.mipmap.Mipmap.elements_per_group( format, 0 ) ) ); + assert( iter2 == ( width * height * Mipmap.elements_per_group( format, 0 ) ) ); } assert( iter == ( rowsize * height + psm.getUnpackSkipRows() * rowsize + psm.getUnpackSkipPixels() * group_size ) ); } @@ -428,7 +428,7 @@ public class Image { } myswap_bytes = psm.getPackSwapBytes(); - components = GLU.mipmap.Mipmap.elements_per_group( format, type ); + components = Mipmap.elements_per_group( format, type ); if( psm.getPackRowLength() > 0 ) { groups_per_line = psm.getPackRowLength(); } else { @@ -490,7 +490,7 @@ public class Image { } else { float shoveComponents[] = new float[4]; - element_size = GLU.mipmap.Mipmap.bytes_per_element( type ); + element_size = Mipmap.bytes_per_element( type ); group_size = element_size * components; if( element_size == 1 ) { myswap_bytes = false; @@ -780,10 +780,10 @@ public class Image { iter = start; } // for i // iterators should be one byte past end - if( !GLU.mipmap.Mipmap.isTypePackedPixel( type ) ) { + if( !Mipmap.isTypePackedPixel( type ) ) { assert( iter2 == width * height * components ); } else { - assert( iter2 == width * height * GLU.mipmap.Mipmap.elements_per_group( format, 0 ) ); + assert( iter2 == width * height * Mipmap.elements_per_group( format, 0 ) ); } assert( iter == rowsize * height + psm.getPackSkipRows() * rowsize + psm.getPackSkipPixels() * group_size ); } -- cgit v1.2.3