| Modifier and Type | Field and Description |
|---|---|
| private RectBounds | |
| private Rectangle | |
| private DirtyRegionContainer | |
| private DirtyRegionPool | |
| private RectBounds | |
| protected ResourceFactory | |
| protected boolean | |
| private int | |
| private NGNode | overlayRoot
root is the root node of the scene. |
| protected int | |
| protected int | |
| protected Presentable | |
| private GeneralTransform3D | |
| protected static final ReentrantLock | |
| private NGNode | root
root is the root node of the scene. |
| private static NodePath[] | ROOT_PATHS
An array of initially empty ROOT_PATHS. |
| private Affine3D | |
| private RTTexture | sceneBuffer
This is used for drawing dirty regions and overdraw rectangles in cases where we are not drawing the entire scene every time (specifically, when depth buffer is disabled). |
| protected final SceneState | |
| private Affine3D | |
| protected int | |
| private GeneralTransform3D | |
| protected int | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected void | |
| private void | |
| protected float | |
| protected float | |
| private static NodePath | |
| protected void | |
| private void | paintOverdraw(final Graphics g, final Rectangle clip)
Utility method for painting the overdraw rectangles. |
| protected final void | |
| protected final void | |
| protected boolean |
| clip | back to summary |
|---|---|
| private RectBounds clip | |
| dirtyRect | back to summary |
|---|---|
| private Rectangle dirtyRect | |
| dirtyRegionContainer | back to summary |
|---|---|
| private DirtyRegionContainer dirtyRegionContainer | |
| dirtyRegionPool | back to summary |
|---|---|
| private DirtyRegionPool dirtyRegionPool | |
| dirtyRegionTemp | back to summary |
|---|---|
| private RectBounds dirtyRegionTemp | |
| factory | back to summary |
|---|---|
| protected ResourceFactory factory | |
| freshBackBuffer | back to summary |
|---|---|
| protected boolean freshBackBuffer | |
| height | back to summary |
|---|---|
| private int height | |
| overlayRoot | back to summary |
|---|---|
| private NGNode overlayRoot root is the root node of the scene. overlayRoot is the root node of any overlay which may be present (such as used for full screen overlay). | |
| penHeight | back to summary |
|---|---|
| protected int penHeight | |
| penWidth | back to summary |
|---|---|
| protected int penWidth | |
| presentable | back to summary |
|---|---|
| protected Presentable presentable | |
| projTx | back to summary |
|---|---|
| private GeneralTransform3D projTx | |
| renderLock | back to summary |
|---|---|
| protected static final ReentrantLock renderLock | |
| root | back to summary |
|---|---|
| private NGNode root root is the root node of the scene. overlayRoot is the root node of any overlay which may be present (such as used for full screen overlay). | |
| ROOT_PATHS | back to summary |
|---|---|
| private static NodePath[] ROOT_PATHS An array of initially empty ROOT_PATHS. They are created on demand as needed. Each path is associated with a different dirty region. We have up to PrismSettings.dirtyRegionCount max dirty regions | |
| scaleTx | back to summary |
|---|---|
| private Affine3D scaleTx | |
| sceneBuffer | back to summary |
|---|---|
| private RTTexture sceneBuffer This is used for drawing dirty regions and overdraw rectangles in cases where we are not drawing the entire scene every time (specifically, when depth buffer is disabled). In those cases we will draw the scene to the sceneBuffer, clear the actual back buffer, blit the sceneBuffer into the back buffer, and then scribble on top of the back buffer with the dirty regions and/or overdraw rectangles. When the depthBuffer is enabled on a scene, we always end up drawing the entire scene anyway, so we don't bother with this sceneBuffer in that case. Of course, if dirty region / overdraw rectangle drawing is turned off, then we don't use this. Thus, only when you are doing some kind of debugging would this field be used and the extra buffer copy incurred. | |
| sceneState | back to summary |
|---|---|
| protected final SceneState sceneState | |
| tx | back to summary |
|---|---|
| private Affine3D tx | |
| viewHeight | back to summary |
|---|---|
| protected int viewHeight | |
| viewProjTx | back to summary |
|---|---|
| private GeneralTransform3D viewProjTx | |
| viewWidth | back to summary |
|---|---|
| protected int viewWidth | |
| width | back to summary |
|---|---|
| private int width | |
| ViewPainter | back to summary |
|---|---|
| protected ViewPainter(GlassScene gs) | |
| adjustPerspective | back to summary |
|---|---|
| private void adjustPerspective(NGCamera camera) | |
| disposePresentable | back to summary |
|---|---|
| protected void disposePresentable() | |
| doPaint | back to summary |
|---|---|
| private void doPaint(Graphics g, NodePath renderRootPath) | |
| getPixelScaleFactorX | back to summary |
|---|---|
| protected float getPixelScaleFactorX() | |
| getPixelScaleFactorY | back to summary |
|---|---|
| protected float getPixelScaleFactorY() | |
| getRootPath | back to summary |
|---|---|
| private static NodePath getRootPath(int i) | |
| paintImpl | back to summary |
|---|---|
| protected void paintImpl(final Graphics backBufferGraphics) | |
| paintOverdraw | back to summary |
|---|---|
| private void paintOverdraw(final Graphics g, final Rectangle clip) Utility method for painting the overdraw rectangles. Right now we're using a computationally intensive approach of having an array of integers (image data) that we then write to in the NGNodes, recording how many times each pixel position has been touched (well, technically, we're just recording the bounds of drawn objects, so some pixels might be "red" but actually were never drawn). | |
| setOverlayRoot | back to summary |
|---|---|
| protected final void setOverlayRoot(NGNode node) | |
| setRoot | back to summary |
|---|---|
| protected final void setRoot(NGNode node) | |
| validateStageGraphics | back to summary |
|---|---|
| protected boolean validateStageGraphics() | |