class Platform3D extends Object
Specifies the API to an underlying int[] buffer of ARGB values that can be converted into an Image object and a short[] for z-buffer depth.
Modifier and Type | Field and Description |
---|---|
(package private) javajs.api.GenericPlatform |
apiPlatform |
private static boolean |
backgroundTransparent |
(package private) Object |
bufferedImage |
(package private) int |
bufferHeight |
(package private) int |
bufferSize |
(package private) int |
bufferSizeT |
(package private) int |
bufferWidth |
(package private) Object |
graphicsForTextOrImage |
(package private) int |
heightOffscreen |
(package private) Object |
offscreenImage |
(package private) int[] |
pBuffer |
(package private) int[] |
pBufferT |
(package private) int |
widthOffscreen |
(package private) int |
windowHeight |
(package private) int |
windowSize |
(package private) int |
windowWidth |
(package private) int[] |
zBuffer |
(package private) int[] |
zBufferT |
Constructor and Description |
---|
Platform3D(javajs.api.GenericPlatform apiPlatform) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
allocateBuffers(int width,
int height,
boolean antialias,
boolean isImageWrite) |
private Object |
allocateOffscreenImage(int width,
int height) |
(package private) void |
allocateTBuffers(boolean antialiasTranslucent) |
(package private) void |
clearBuffer() |
(package private) void |
clearScreenBuffer() |
(package private) void |
clearScreenBufferThreaded() |
(package private) void |
clearTBuffer() |
(package private) Object |
getGraphicsForMetrics() |
(package private) Object |
getGraphicsForTextOrImage(int width,
int height) |
(package private) boolean |
hasContent() |
(package private) void |
notifyEndOfRendering() |
(package private) void |
releaseBuffers() |
(package private) void |
setBackgroundColor(int bgColor) |
(package private) void |
setBackgroundTransparent(boolean tf) |
int windowWidth
int windowHeight
int windowSize
int bufferWidth
int bufferHeight
int bufferSize
int bufferSizeT
Object bufferedImage
int[] pBuffer
int[] pBufferT
int[] zBuffer
int[] zBufferT
int widthOffscreen
int heightOffscreen
Object offscreenImage
Object graphicsForTextOrImage
javajs.api.GenericPlatform apiPlatform
private static boolean backgroundTransparent
Object getGraphicsForMetrics()
void allocateTBuffers(boolean antialiasTranslucent)
void allocateBuffers(int width, int height, boolean antialias, boolean isImageWrite)
width
- height
- antialias
- isImageWrite
- void releaseBuffers()
boolean hasContent()
void clearScreenBuffer()
void setBackgroundColor(int bgColor)
void clearTBuffer()
final void clearBuffer()
final void clearScreenBufferThreaded()
void notifyEndOfRendering()
Object getGraphicsForTextOrImage(int width, int height)
private Object allocateOffscreenImage(int width, int height)
void setBackgroundTransparent(boolean tf)