| Modifier and Type | Field and Description |
|---|---|
| private Vec3d | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private final D3DResourceFactory | |
| private boolean | |
| public static final int | |
| private final long | |
| private GeneralTransform3D | |
| private static final Affine3D | |
| private static GeneralTransform3D | |
| private BaseShaderContext. | |
| private int | |
| private int | |
| private static double[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private GeneralTransform3D | adjustClipSpace(GeneralTransform3D projViewTx)
OpenGL projection transform use z-range of [-1, 1] while D3D expects it to be [0, 1], so we need to adjust the matrix, see JDK-8123305. |
| public void | blit(RTTexture srcRTT, RTTexture dstRTT, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1)
Implements abstract com.
|
| pack-priv boolean | buildNativeGeometry(long nativeHandle, float[] vertexBuffer, int vertexBufferLength, short[] indexBuffer, int indexBufferLength)
|
| pack-priv boolean | buildNativeGeometry(long nativeHandle, float[] vertexBuffer, int vertexBufferLength, int[] indexBuffer, int indexBufferLength)
|
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| public void | |
| public static boolean | |
| pack-priv long | |
| pack-priv D3DFrameStats | |
| public D3DResourceFactory | |
| public static String | |
| protected void | |
| pack-priv boolean | |
| private static native void | nBlit(long pContext, long nSrcRTT, long nDstRTT, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1)
|
| private static native boolean | nBuildNativeGeometryInt(long pContext, long nativeHandle, float[] vertexBuffer, int vertexBufferLength, int[] indexBuffer, int indexBufferLength)
|
| private static native boolean | nBuildNativeGeometryShort(long pContext, long nativeHandle, float[] vertexBuffer, int vertexBufferLength, short[] indexBuffer, int indexBufferLength)
|
| private static native long | |
| private static native long | |
| private static native long | |
| private static native int | |
| private static native boolean | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native int | |
| private static native int | |
| private static native void | |
| private static native int | |
| private static native int | |
| private static native int | |
| private static native void | |
| private static native int | |
| private static native int | |
| private static native void | |
| private static native void | nSetLight(long pContext, long nativeMeshView, int index, float x, float y, float z, float r, float g, float b, float w, float ca, float la, float qa, float isAttenuated, float maxRange, float dirX, float dirY, float dirZ, float innerAngle, float outerAngle, float falloff)
|
| private static native void | |
| private static native void | |
| private static native int | nSetProjViewMatrix(long pContext, boolean isOrtho, double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33)
|
| private static native int | |
| private static native void | nSetSpecularColor(long pContext, long nativePhongMaterial, boolean set, float r, float g, float b, float a)
|
| private static native int | |
| private static native int | nSetTransform(long pContext, double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33)
|
| private static native void | |
| private static native void | nSetWorldTransform(long pContext, double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33)
|
| private static native void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| protected void | renderQuads(float[] coordArray, byte[] colorArray, int numVertices)
Implements abstract com.
|
| pack-priv void | |
| pack-priv void | |
| public void | |
| protected void | |
| pack-priv void | |
| pack-priv void | setLight(long nativeMeshView, int index, float x, float y, float z, float r, float g, float b, float w, float ca, float la, float qa, float isAttenuated, float maxRange, float dirX, float dirY, float dirZ, float innerAngle, float outerAngle, float falloff)
|
| private void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | testLostStateAndReset()
Validates the device, sets the context lost status if necessary, and tries to restore the context if needed. |
| protected void | updateClipRect(Rectangle clipRect)
Implements abstract com.
|
| protected void | updateCompositeMode(CompositeMode mode)
Implements abstract com.
|
| protected BaseShaderContext. | updateRenderTarget(RenderTarget target, NGCamera camera, boolean depthTest)
Implements abstract com.
|
| protected void | updateShaderTransform(Shader shader, BaseTransform xform)
Implements abstract com.
|
| protected void | updateTexture(int texUnit, Texture tex)
Implements abstract com.
|
| protected void | updateWorldTransform(BaseTransform xform)
Implements abstract com.
|
| pack-priv static void | |
| pack-priv boolean | validatePresent(int res)
Validates result of present operation, sets the context lost status if necessary |
| cameraPos | back to summary |
|---|---|
| private Vec3d cameraPos | |
| CULL_BACK | back to summary |
|---|---|
| public static final int CULL_BACK | |
| CULL_FRONT | back to summary |
|---|---|
| public static final int CULL_FRONT | |
| CULL_NONE | back to summary |
|---|---|
| public static final int CULL_NONE | |
| D3D_OK | back to summary |
|---|---|
| public static final int D3D_OK | |
| D3DCOMPMODE_ADD | back to summary |
|---|---|
| public static final int D3DCOMPMODE_ADD | |
| D3DCOMPMODE_CLEAR | back to summary |
|---|---|
| public static final int D3DCOMPMODE_CLEAR | |
| D3DCOMPMODE_DSTOUT | back to summary |
|---|---|
| public static final int D3DCOMPMODE_DSTOUT | |
| D3DCOMPMODE_SRC | back to summary |
|---|---|
| public static final int D3DCOMPMODE_SRC | |
| D3DCOMPMODE_SRCOVER | back to summary |
|---|---|
| public static final int D3DCOMPMODE_SRCOVER | |
| D3DERR_DEVICEHUNG | back to summary |
|---|---|
| public static final int D3DERR_DEVICEHUNG | |
| D3DERR_DEVICELOST | back to summary |
|---|---|
| public static final int D3DERR_DEVICELOST | |
| D3DERR_DEVICENOTRESET | back to summary |
|---|---|
| public static final int D3DERR_DEVICENOTRESET | |
| D3DERR_DEVICEREMOVED | back to summary |
|---|---|
| public static final int D3DERR_DEVICEREMOVED | |
| D3DERR_OUTOFVIDEOMEMORY | back to summary |
|---|---|
| public static final int D3DERR_OUTOFVIDEOMEMORY | |
| D3DTADDRESS_BORDER | back to summary |
|---|---|
| public static final int D3DTADDRESS_BORDER | |
| D3DTADDRESS_CLAMP | back to summary |
|---|---|
| public static final int D3DTADDRESS_CLAMP | |
| D3DTADDRESS_MIRROR | back to summary |
|---|---|
| public static final int D3DTADDRESS_MIRROR | |
| D3DTADDRESS_NOP | back to summary |
|---|---|
| public static final int D3DTADDRESS_NOP | |
| D3DTADDRESS_WRAP | back to summary |
|---|---|
| public static final int D3DTADDRESS_WRAP | |
| E_FAIL | back to summary |
|---|---|
| public static final int E_FAIL | |
| factory | back to summary |
|---|---|
| private final D3DResourceFactory factory | |
| isLost | back to summary |
|---|---|
| private boolean isLost | |
| NUM_QUADS | back to summary |
|---|---|
| public static final int NUM_QUADS | |
| pContext | back to summary |
|---|---|
| private final long pContext | |
| projViewTx | back to summary |
|---|---|
| private GeneralTransform3D projViewTx | |
| scratchAffine3DTx | back to summary |
|---|---|
| private static final Affine3D scratchAffine3DTx | |
| scratchTx | back to summary |
|---|---|
| private static GeneralTransform3D scratchTx | |
| state | back to summary |
|---|---|
| private BaseShaderContext. | |
| targetHeight | back to summary |
|---|---|
| private int targetHeight | |
| targetWidth | back to summary |
|---|---|
| private int targetWidth | |
| tempAdjustClipSpaceMat | back to summary |
|---|---|
| private static double[] tempAdjustClipSpaceMat | |
| D3DContext | back to summary |
|---|---|
| pack-priv D3DContext(long pContext, Screen screen, D3DResourceFactory factory) | |
| adjustClipSpace | back to summary |
|---|---|
| private GeneralTransform3D adjustClipSpace(GeneralTransform3D projViewTx) OpenGL projection transform use z-range of [-1, 1] while D3D expects it to be [0, 1], so we need to adjust the matrix, see JDK-8123305. | |
| blit | back to summary |
|---|---|
| public void blit(RTTexture srcRTT, RTTexture dstRTT, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1) Implements abstract com.
| |
| buildNativeGeometry | back to summary |
|---|---|
| pack-priv boolean buildNativeGeometry(long nativeHandle, float[] vertexBuffer, int vertexBufferLength, short[] indexBuffer, int indexBufferLength) | |
| buildNativeGeometry | back to summary |
|---|---|
| pack-priv boolean buildNativeGeometry(long nativeHandle, float[] vertexBuffer, int vertexBufferLength, int[] indexBuffer, int indexBufferLength) | |
| createD3DMesh | back to summary |
|---|---|
| pack-priv long createD3DMesh() | |
| createD3DMeshView | back to summary |
|---|---|
| pack-priv long createD3DMeshView(long nativeMesh) | |
| createD3DPhongMaterial | back to summary |
|---|---|
| pack-priv long createD3DPhongMaterial() | |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides com. Doc from com. Dispose of this context. Subclass implementations can override this if needed. They must call super.dispose().
| |
| FAILED | back to summary |
|---|---|
| public static boolean FAILED(int hr) WIN32 COM bool FAILED(HRESULT hr) macro synonym | |
| getContextHandle | back to summary |
|---|---|
| pack-priv long getContextHandle() | |
| getFrameStats | back to summary |
|---|---|
| pack-priv D3DFrameStats getFrameStats(boolean reset, D3DFrameStats result) | |
| getResourceFactory | back to summary |
|---|---|
| public D3DResourceFactory getResourceFactory() Overrides com.
| |
| hResultToString | back to summary |
|---|---|
| public static String hResultToString(long hResult) | |
| initState | back to summary |
|---|---|
| protected void initState() | |
| isLost | back to summary |
|---|---|
| pack-priv boolean isLost() Returns whether the context is lost.
| |
| nBlit | back to summary |
|---|---|
| private static native void nBlit(long pContext, long nSrcRTT, long nDstRTT, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1) | |
| nBuildNativeGeometryInt | back to summary |
|---|---|
| private static native boolean nBuildNativeGeometryInt(long pContext, long nativeHandle, float[] vertexBuffer, int vertexBufferLength, int[] indexBuffer, int indexBufferLength) | |
| nBuildNativeGeometryShort | back to summary |
|---|---|
| private static native boolean nBuildNativeGeometryShort(long pContext, long nativeHandle, float[] vertexBuffer, int vertexBufferLength, short[] indexBuffer, int indexBufferLength) | |
| nCreateD3DMesh | back to summary |
|---|---|
| private static native long nCreateD3DMesh(long pContext) | |
| nCreateD3DMeshView | back to summary |
|---|---|
| private static native long nCreateD3DMeshView(long pContext, long nativeMesh) | |
| nCreateD3DPhongMaterial | back to summary |
|---|---|
| private static native long nCreateD3DPhongMaterial(long pContext) | |
| nDrawIndexedQuads | back to summary |
|---|---|
| private static native int nDrawIndexedQuads(long pContext, float[] coords, byte[] colors, int numVertices) | |
| nGetFrameStats | back to summary |
|---|---|
| private static native boolean nGetFrameStats(long pContext, D3DFrameStats returnValue, boolean bReset) | |
| nReleaseD3DMesh | back to summary |
|---|---|
| private static native void nReleaseD3DMesh(long pContext, long nativeHandle) | |
| nReleaseD3DMeshView | back to summary |
|---|---|
| private static native void nReleaseD3DMeshView(long pContext, long nativeHandle) | |
| nReleaseD3DPhongMaterial | back to summary |
|---|---|
| private static native void nReleaseD3DPhongMaterial(long pContext, long nativeHandle) | |
| nRenderMeshView | back to summary |
|---|---|
| private static native void nRenderMeshView(long pContext, long nativeMeshView) | |
| nResetClipRect | back to summary |
|---|---|
| private static native int nResetClipRect(long pContext) | |
| nResetTransform | back to summary |
|---|---|
| private static native int nResetTransform(long pContext) | |
| nSetAmbientLight | back to summary |
|---|---|
| private static native void nSetAmbientLight(long pContext, long nativeMeshView, float r, float g, float b) | |
| nSetBlendEnabled | back to summary |
|---|---|
| private static native int nSetBlendEnabled(long pContext, int mode) | |
| nSetCameraPosition | back to summary |
|---|---|
| private static native int nSetCameraPosition(long pContext, double x, double y, double z) | |
| nSetClipRect | back to summary |
|---|---|
| private static native int nSetClipRect(long pContext, int x1, int y1, int x2, int y2) | |
| nSetCullingMode | back to summary |
|---|---|
| private static native void nSetCullingMode(long pContext, long nativeMeshView, int cullingMode) | |
| nSetDeviceParametersFor2D | back to summary |
|---|---|
| private static native int nSetDeviceParametersFor2D(long pContext) | |
| nSetDeviceParametersFor3D | back to summary |
|---|---|
| private static native int nSetDeviceParametersFor3D(long pContext) | |
| nSetDiffuseColor | back to summary |
|---|---|
| private static native void nSetDiffuseColor(long pContext, long nativePhongMaterial, float r, float g, float b, float a) | |
| nSetLight | back to summary |
|---|---|
| private static native void nSetLight(long pContext, long nativeMeshView, int index, float x, float y, float z, float r, float g, float b, float w, float ca, float la, float qa, float isAttenuated, float maxRange, float dirX, float dirY, float dirZ, float innerAngle, float outerAngle, float falloff) | |
| nSetMap | back to summary |
|---|---|
| private static native void nSetMap(long pContext, long nativePhongMaterial, int mapType, long texID) | |
| nSetMaterial | back to summary |
|---|---|
| private static native void nSetMaterial(long pContext, long nativeMeshView, long nativePhongMaterialInfo) | |
| nSetProjViewMatrix | back to summary |
|---|---|
| private static native int nSetProjViewMatrix(long pContext, boolean isOrtho, double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33) | |
| nSetRenderTarget | back to summary |
|---|---|
| private static native int nSetRenderTarget(long pContext, long pDest, boolean depthBuffer, boolean msaa) | |
| nSetSpecularColor | back to summary |
|---|---|
| private static native void nSetSpecularColor(long pContext, long nativePhongMaterial, boolean set, float r, float g, float b, float a) | |
| nSetTexture | back to summary |
|---|---|
| private static native int nSetTexture(long pContext, long pTex, int texUnit, boolean linear, int wrapMode) | |
| nSetTransform | back to summary |
|---|---|
| private static native int nSetTransform(long pContext, double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33) | |
| nSetWireframe | back to summary |
|---|---|
| private static native void nSetWireframe(long pContext, long nativeMeshView, boolean wireframe) | |
| nSetWorldTransform | back to summary |
|---|---|
| private static native void nSetWorldTransform(long pContext, double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33) | |
| nSetWorldTransformToIdentity | back to summary |
|---|---|
| private static native void nSetWorldTransformToIdentity(long pContext) | |
| releaseD3DMesh | back to summary |
|---|---|
| pack-priv void releaseD3DMesh(long nativeHandle) | |
| releaseD3DMeshView | back to summary |
|---|---|
| pack-priv void releaseD3DMeshView(long nativeMeshView) | |
| releaseD3DPhongMaterial | back to summary |
|---|---|
| pack-priv void releaseD3DPhongMaterial(long nativeHandle) | |
| renderMeshView | back to summary |
|---|---|
| pack-priv void renderMeshView(long nativeMeshView, Graphics g) | |
| renderQuads | back to summary |
|---|---|
| protected void renderQuads(float[] coordArray, byte[] colorArray, int numVertices) Implements abstract com.
| |
| setAmbientLight | back to summary |
|---|---|
| pack-priv void setAmbientLight(long nativeMeshView, float r, float g, float b) | |
| setCullingMode | back to summary |
|---|---|
| pack-priv void setCullingMode(long nativeMeshView, int cullMode) | |
| setDeviceParametersFor2D | back to summary |
|---|---|
| public void setDeviceParametersFor2D() Overrides com.
| |
| setDeviceParametersFor3D | back to summary |
|---|---|
| protected void setDeviceParametersFor3D() Overrides com.
| |
| setDiffuseColor | back to summary |
|---|---|
| pack-priv void setDiffuseColor(long nativePhongMaterial, float r, float g, float b, float a) | |
| setLight | back to summary |
|---|---|
| pack-priv void setLight(long nativeMeshView, int index, float x, float y, float z, float r, float g, float b, float w, float ca, float la, float qa, float isAttenuated, float maxRange, float dirX, float dirY, float dirZ, float innerAngle, float outerAngle, float falloff) | |
| setLost | back to summary |
|---|---|
| private void setLost() set device to lost state | |
| setMap | back to summary |
|---|---|
| pack-priv void setMap(long nativePhongMaterial, int mapType, long nativeTexture) | |
| setMaterial | back to summary |
|---|---|
| pack-priv void setMaterial(long nativeMeshView, long nativePhongMaterial) | |
| setSpecularColor | back to summary |
|---|---|
| pack-priv void setSpecularColor(long nativePhongMaterial, boolean set, float r, float g, float b, float a) | |
| setWireframe | back to summary |
|---|---|
| pack-priv void setWireframe(long nativeMeshView, boolean wireframe) | |
| testLostStateAndReset | back to summary |
|---|---|
| pack-priv boolean testLostStateAndReset() Validates the device, sets the context lost status if necessary, and tries to restore the context if needed. If the device has been removed, then it reinitializes the device, which disposes the existing factories and contexts. | |
| updateClipRect | back to summary |
|---|---|
| protected void updateClipRect(Rectangle clipRect) Implements abstract com.
| |
| updateCompositeMode | back to summary |
|---|---|
| protected void updateCompositeMode(CompositeMode mode) Implements abstract com.
| |
| updateRenderTarget | back to summary |
|---|---|
| protected BaseShaderContext. Implements abstract com.
| |
| updateShaderTransform | back to summary |
|---|---|
| protected void updateShaderTransform(Shader shader, BaseTransform xform) Implements abstract com.
| |
| updateTexture | back to summary |
|---|---|
| protected void updateTexture(int texUnit, Texture tex) Implements abstract com.
| |
| updateWorldTransform | back to summary |
|---|---|
| protected void updateWorldTransform(BaseTransform xform) Implements abstract com.
| |
| validate | back to summary |
|---|---|
| pack-priv static void validate(int res) Does D3D native return value validation for DEBUG interests | |
| validatePresent | back to summary |
|---|---|
| pack-priv boolean validatePresent(int res) Validates result of present operation, sets the context lost status if necessary | |