class Framebuffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
address |
private java.nio.ByteBuffer |
bb |
private int |
byteDepth |
private java.nio.ByteBuffer |
clearBuffer |
private int |
height |
private java.nio.ByteBuffer |
lineByteBuffer |
private java.nio.Buffer |
linePixelBuffer |
private boolean |
receivedData |
private int |
width |
Constructor and Description |
---|
Framebuffer(java.nio.ByteBuffer bb,
int width,
int height,
int depth,
boolean clear) |
Modifier and Type | Method and Description |
---|---|
private static int |
blend32(int src,
int dst,
int alphaMultiplier) |
(package private) void |
clearBufferContents() |
(package private) void |
composePixels(java.nio.Buffer src,
int pX,
int pY,
int pW,
int pH,
float alpha) |
(package private) void |
copyToBuffer(java.nio.ByteBuffer out) |
(package private) java.nio.ByteBuffer |
getBuffer() |
(package private) boolean |
hasReceivedData() |
(package private) void |
reset() |
(package private) void |
setStartAddress(int address) |
(package private) void |
write(java.nio.channels.WritableByteChannel out) |
private java.nio.ByteBuffer bb
private int width
private int height
private int byteDepth
private boolean receivedData
private java.nio.ByteBuffer clearBuffer
private java.nio.ByteBuffer lineByteBuffer
private java.nio.Buffer linePixelBuffer
private int address
Framebuffer(java.nio.ByteBuffer bb, int width, int height, int depth, boolean clear)
java.nio.ByteBuffer getBuffer()
void reset()
void setStartAddress(int address)
void clearBufferContents()
boolean hasReceivedData()
void composePixels(java.nio.Buffer src, int pX, int pY, int pW, int pH, float alpha)
private static int blend32(int src, int dst, int alphaMultiplier)
void write(java.nio.channels.WritableByteChannel out) throws java.io.IOException
java.io.IOException
void copyToBuffer(java.nio.ByteBuffer out)