final ByteBuffer data = up.getData(); Assert.assertEquals(512L * 512L * 4L, (long) data.capacity()); for (int index = 0; index < data.capacity(); ++index) {
Assert.assertEquals(expected_area, up.getArea()); final ByteBuffer data = up.getData(); final long expected_size = 128L * 128L; Assert.assertEquals(expected_size, (long) data.capacity());
final ByteBuffer data = up.getData(); Assert.assertEquals(512L * 512L * 2L, (long) data.capacity()); for (int index = 0; index < data.capacity(); ++index) {
Assert.assertEquals(expected_area, up.getArea()); final ByteBuffer data = up.getData(); final long expected_size = 128L * 128L * 4L; Assert.assertEquals(expected_size, (long) data.capacity());
final ByteBuffer data = up.getData(); Assert.assertEquals(512L * 512L * 3L, (long) data.capacity()); for (int index = 0; index < data.capacity(); ++index) {
final ByteBuffer data = up.getData(); for (int index = 0; index < data.capacity(); ++index) { data.put(index, (byte) 0xff);
@Override public JCGLTextureCubeUpdateType getTextureUpdateCube( final JCGLTextureCubeUsableType t, final JCGLTLTextureDataType data) { final JCGLTextureCubeUpdateType u = JCGLTextureUpdates.newUpdateReplacingAllCube(t); final int tw = (int) t.textureGetWidth(); final long dw = data.getWidth(); RangeCheck.checkGreaterEqualLong( (long) tw, "Texture size", dw, "Data size"); JCGLTLTextureUpdateProvider.populate( t.textureGetFormat(), data, u.getData(), tw, tw); return u; }
final ByteBuffer data = up.getData(); Assert.assertEquals(512L * 512L * 2L, (long) data.capacity()); for (int index = 0; index < data.capacity(); ++index) { final ByteBuffer data = up.getData(); Assert.assertEquals(128L * 128L * 2L, (long) data.capacity()); for (int index = 0; index < data.capacity(); index += 2) {
final ByteBuffer data = up.getData(); Assert.assertEquals(512L * 512L * 3L, (long) data.capacity()); for (int index = 0; index < data.capacity(); ++index) { final ByteBuffer data = up.getData(); Assert.assertEquals(128L * 128L * 3L, (long) data.capacity()); for (int index = 0; index < data.capacity(); index += 3) {
final ByteBuffer data = up.getData(); Assert.assertEquals(512L * 512L * 4L, (long) data.capacity()); for (int index = 0; index < data.capacity(); ++index) { final ByteBuffer data = up.getData(); Assert.assertEquals(128L * 128L * 4L, (long) data.capacity()); for (int index = 0; index < data.capacity(); index += 4) {
final JCGLTextureCubeUpdateType up = JCGLTextureUpdates.newUpdateReplacingAllCube(t); final ByteBuffer d = up.getData(); final JPRACursor2DType<JCGLRGB8Type> c = JPRACursor2DByteBufferedUnchecked.newCursor(
final long source_min_y = source_range_y.getLower(); final long source_height = source_range_y.getInterval(); final ByteBuffer source_data = data.getData();
final JCGLTextureFormat format = texture.textureGetFormat(); final LWJGL3TextureSpec spec = LWJGL3TextureSpecs.getTextureSpec(format); final ByteBuffer buffer = data.getData(); final int gface = LWJGL3TypeConversions.cubeFaceToGL(face);