Uses of Class
zombie.core.utils.WrappedBuffer
Packages that use WrappedBuffer
-
Uses of WrappedBuffer in zombie.core.textures
Fields in zombie.core.textures declared as WrappedBufferMethods in zombie.core.textures that return WrappedBufferModifier and TypeMethodDescriptionSmartTexture.getData()Description copied from class: TextureTexture.getData()returns the texture's pixel in a ByteBuffer EXAMPLE: ByteBuffer bb = getData(); byte r, g, b; bb.rewind(); //invalid input: '<'-- IMPORTANT!! try { while (true) { bb.mark(); r = bb.get(); g = bb.get(); b = bb.get(); bb.reset(); bb.put((byte)(r+red)); bb.put((byte)(g+green)); bb.put((byte)(b+blue)); bb.get(); // alpha catch (Exception e) { setData(bb);TextureID.getData()Methods in zombie.core.textures with parameters of type WrappedBufferConstructors in zombie.core.textures with parameters of type WrappedBufferModifierConstructorDescriptionImageData(int width, int height, WrappedBuffer data) ImageData(TextureID texture, WrappedBuffer bb) MipMapLevel(int width, int height, WrappedBuffer data) -
Uses of WrappedBuffer in zombie.core.utils
Methods in zombie.core.utils that return WrappedBuffer -
Uses of WrappedBuffer in zombie.interfaces
Methods in zombie.interfaces that return WrappedBufferModifier and TypeMethodDescriptionITexture.getData()returns the texture's pixel in a ByteBuffer EXAMPLE: ByteBuffer bb = getData(); byte r, g, b; bb.rewind(); //invalid input: '<'-- IMPORTANT!! try { while (true) { bb.mark(); r = bb.get(); g = bb.get(); b = bb.get(); bb.reset(); bb.put((byte)(r+red)); bb.put((byte)(g+green)); bb.put((byte)(b+blue)); bb.get(); // alpha } } catch (Exception e) { } setData(bb);