class Platform3D
extends java.lang.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 | Class and Description |
---|---|
(package private) class |
Platform3D.ClearingThread |
Modifier and Type | Field and Description |
---|---|
(package private) ApiPlatform |
apiPlatform |
private static boolean |
backgroundTransparent |
(package private) java.lang.Object |
bufferedImage |
(package private) int |
bufferHeight |
(package private) int |
bufferSize |
(package private) int |
bufferSizeT |
(package private) int |
bufferWidth |
private Platform3D.ClearingThread |
clearingThread |
(package private) static boolean |
desireClearingThread |
(package private) java.lang.Object |
graphicsForTextOrImage |
(package private) int |
heightOffscreen |
(package private) java.lang.Object |
offscreenImage |
(package private) int[] |
pBuffer |
(package private) int[] |
pBufferT |
(package private) boolean |
useClearingThread |
(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(ApiPlatform apiPlatform) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
allocateBuffers(int width,
int height,
boolean antialias,
boolean isImageWrite) |
private java.lang.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) java.lang.Object |
getGraphicsForMetrics() |
(package private) java.lang.Object |
getGraphicsForTextOrImage(int width,
int height) |
(package private) boolean |
hasContent() |
(package private) void |
initialize(boolean useClearingThread) |
(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
java.lang.Object bufferedImage
int[] pBuffer
int[] pBufferT
int[] zBuffer
int[] zBufferT
int widthOffscreen
int heightOffscreen
java.lang.Object offscreenImage
java.lang.Object graphicsForTextOrImage
static final boolean desireClearingThread
boolean useClearingThread
private Platform3D.ClearingThread clearingThread
ApiPlatform apiPlatform
private static boolean backgroundTransparent
Platform3D(ApiPlatform apiPlatform)
java.lang.Object getGraphicsForMetrics()
final void initialize(boolean useClearingThread)
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()
java.lang.Object getGraphicsForTextOrImage(int width, int height)
private java.lang.Object allocateOffscreenImage(int width, int height)
void setBackgroundTransparent(boolean tf)