Uses of Class
zombie.core.utils.WrappedBuffer

Packages that use WrappedBuffer
zombie.core.textures   
zombie.core.utils   
zombie.interfaces   
 

Uses of WrappedBuffer in zombie.core.textures
 

Fields in zombie.core.textures declared as WrappedBuffer
static WrappedBuffer ImageData.data
          the data of image
 

Methods in zombie.core.textures that return WrappedBuffer
 WrappedBuffer TextureID.getData()
           
 WrappedBuffer Texture.getData()
          returns the texture's pixel in a ByteBuffer EXAMPLE:
ByteBuffer bb = getData();
byte r, g, b;
bb.rewind(); //<-- 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);
 WrappedBuffer ImageData.getData()
           
 

Methods in zombie.core.textures with parameters of type WrappedBuffer
 void Texture.createMask(WrappedBuffer buf)
           
 

Constructors in zombie.core.textures with parameters of type WrappedBuffer
ImageData(TextureID texture, WrappedBuffer bb)
           
 

Uses of WrappedBuffer in zombie.core.utils
 

Methods in zombie.core.utils that return WrappedBuffer
static WrappedBuffer DirectBufferAllocator.allocate(int size)
           
 

Uses of WrappedBuffer in zombie.interfaces
 

Methods in zombie.interfaces that return WrappedBuffer
 WrappedBuffer ITexture.getData()
          returns the texture's pixel in a ByteBuffer EXAMPLE:
ByteBuffer bb = getData();
byte r, g, b;
bb.rewind(); //<-- 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);