class SceneState extends PresentableState
| Modifier and Type | Field and Description |
|---|---|
private NGCamera |
camera |
private Color |
clearColor |
private Paint |
currentPaint |
(package private) GlassScene |
scene |
hasWindowManager, isClosed, isWindowMinimized, isWindowVisible, nativeFrameBuffer, nativeView, nativeWindowHandle, outputHeight, outputScale, outputWidth, pixelFormat, renderHeight, renderScale, renderWidth, screenHeight, screenWidth, view, viewHeight, viewWidth, window, windowAlpha, windowX, windowY| Constructor and Description |
|---|
SceneState(GlassScene vs)
Create the View State
.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) NGCamera |
getCamera() |
(package private) Color |
getClearColor() |
(package private) Paint |
getCurrentPaint() |
GlassScene |
getScene()
Returns the glass scene for the view state
.
|
boolean |
isMSAA() |
boolean |
isValid()
Drawing can occur in a Glass view if the view exists
(is not null), the window exists (is not null) and
the view is attached to a window (ie.
|
void |
update()
Updates the state of this object based on the current
state of the glass scene.
|
void |
uploadPixels(PixelSource source)
Put the pixels on the screen.
|
getAlpha, getHeight, getNativeFrameBuffer, getNativeView, getNativeWindow, getOutputHeight, getOutputScale, getOutputWidth, getPixelFormat, getRenderHeight, getRenderScale, getRenderWidth, getScreenHeight, getScreenWidth, getView, getWidth, getWindow, getWindowX, getWindowY, hasWindowManager, isViewClosed, isWindowMinimized, isWindowVisible, lock, unlock, updatefinal GlassScene scene
private Color clearColor
private Paint currentPaint
private NGCamera camera
public SceneState(GlassScene vs)
public boolean isMSAA()
isMSAA in class PresentableStatepublic GlassScene getScene()
public boolean isValid()
public void update()
update in class PresentableStatepublic void uploadPixels(PixelSource source)
uploadPixels in class PresentableStatesource - - the source for the Pixels object to be uploadedColor getClearColor()
Paint getCurrentPaint()
NGCamera getCamera()