| Modifier and Type | Field and Description |
|---|---|
| private Vec3d | |
| public static final int | |
| public static final int | |
| public static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| public static final int | |
| private final long | |
| private MTLPipeline | |
| private GeneralTransform3D | |
| private static float[] | |
| private MTLRTTexture | |
| private MTLResourceFactory | |
| private static final Affine3D | |
| private GeneralTransform3D | |
| private static final ByteBuffer | |
| private BaseShaderContext. | |
| private int | |
| private int | |
| private static double[] | |
| private GeneralTransform3D |
| 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 Metal expects it to be [0, 1], so we need to adjust the matrix. |
| 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)
|
| public void | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| public void | |
| public void | |
| pack-priv long | |
| public long | |
| public MTLRTTexture | |
| public MTLResourceFactory | |
| protected void | |
| public 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 void | |
| private static native long | |
| private static native long | |
| private static native long | |
| private static native void | |
| private static native void | |
| private static native long | |
| private static native long | |
| private static native boolean | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void | |
| 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 void | 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 void | nSetSpecularColor(long pContext, long nativePhongMaterial, boolean set, float r, float g, float b, float a)
|
| private static native void | 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 | |
| private static native int | |
| private 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 | |
| protected 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)
|
| pack-priv void | |
| pack-priv void | |
| public void | |
| pack-priv void | |
| protected void | |
| pack-priv void | |
| protected void | updateClipRect(Rectangle clipRect)
Implements abstract com.
|
| protected void | updateCompositeMode(CompositeMode mode)
Implements abstract com.
|
| private void | |
| 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.
|
| 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 | |
| MTL_COMPMODE_ADD | back to summary |
|---|---|
| private static final int MTL_COMPMODE_ADD | |
| MTL_COMPMODE_CLEAR | back to summary |
|---|---|
| private static final int MTL_COMPMODE_CLEAR | |
| MTL_COMPMODE_DSTOUT | back to summary |
|---|---|
| private static final int MTL_COMPMODE_DSTOUT | |
| MTL_COMPMODE_SRC | back to summary |
|---|---|
| private static final int MTL_COMPMODE_SRC | |
| MTL_COMPMODE_SRCOVER | back to summary |
|---|---|
| private static final int MTL_COMPMODE_SRCOVER | |
| MTL_SAMPLER_ADDR_MODE_CLAMP_TO_BORDER_COLOR | back to summary |
|---|---|
| private static final int MTL_SAMPLER_ADDR_MODE_CLAMP_TO_BORDER_COLOR | |
| MTL_SAMPLER_ADDR_MODE_CLAMP_TO_EDGE | back to summary |
|---|---|
| private static final int MTL_SAMPLER_ADDR_MODE_CLAMP_TO_EDGE | |
| MTL_SAMPLER_ADDR_MODE_CLAMP_TO_ZERO | back to summary |
|---|---|
| private static final int MTL_SAMPLER_ADDR_MODE_CLAMP_TO_ZERO | |
| MTL_SAMPLER_ADDR_MODE_MIRR_CLAMP_TO_EDGE | back to summary |
|---|---|
| private static final int MTL_SAMPLER_ADDR_MODE_MIRR_CLAMP_TO_EDGE | |
| MTL_SAMPLER_ADDR_MODE_MIRR_REPEAT | back to summary |
|---|---|
| private static final int MTL_SAMPLER_ADDR_MODE_MIRR_REPEAT | |
| MTL_SAMPLER_ADDR_MODE_NOP | back to summary |
|---|---|
| private static final int MTL_SAMPLER_ADDR_MODE_NOP | |
| MTL_SAMPLER_ADDR_MODE_REPEAT | back to summary |
|---|---|
| private static final int MTL_SAMPLER_ADDR_MODE_REPEAT | |
| NUM_QUADS | back to summary |
|---|---|
| public static final int NUM_QUADS | |
| pContext | back to summary |
|---|---|
| private final long pContext | |
| pipeline | back to summary |
|---|---|
| private MTLPipeline pipeline | |
| projViewTx | back to summary |
|---|---|
| private GeneralTransform3D projViewTx | |
| rawMatrix | back to summary |
|---|---|
| private static float[] rawMatrix | |
| renderTarget | back to summary |
|---|---|
| private MTLRTTexture renderTarget | |
| resourceFactory | back to summary |
|---|---|
| private MTLResourceFactory resourceFactory | |
| scratchAffine3DTx | back to summary |
|---|---|
| private static final Affine3D scratchAffine3DTx | |
| scratchTx | back to summary |
|---|---|
| private GeneralTransform3D scratchTx | |
| shaderLibBuffer | back to summary |
|---|---|
| private static final ByteBuffer shaderLibBuffer | |
| 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 | |
| worldTx | back to summary |
|---|---|
| private GeneralTransform3D worldTx | |
| MTLContext | back to summary |
|---|---|
| pack-priv MTLContext(Screen screen, MTLResourceFactory factory) | |
| adjustClipSpace | back to summary |
|---|---|
| private GeneralTransform3D adjustClipSpace(GeneralTransform3D projViewTx) OpenGL projection transform use z-range of [-1, 1], while Metal expects it to be [0, 1], so we need to adjust the matrix. (comment from D3DContext, 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) | |
| commitCurrentCommandBuffer | back to summary |
|---|---|
| public void commitCurrentCommandBuffer() | |
| createMTLMesh | back to summary |
|---|---|
| pack-priv long createMTLMesh() | |
| createMTLMeshView | back to summary |
|---|---|
| pack-priv long createMTLMeshView(long nativeMesh) | |
| createMTLPhongMaterial | back to summary |
|---|---|
| pack-priv long createMTLPhongMaterial() | |
| 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().
| |
| disposeShader | back to summary |
|---|---|
| public void disposeShader(long nMetalShaderRef) | |
| getContextHandle | back to summary |
|---|---|
| pack-priv long getContextHandle() | |
| getMetalCommandQueue | back to summary |
|---|---|
| public long getMetalCommandQueue() | |
| getRenderTargetTexture | back to summary |
|---|---|
| public MTLRTTexture getRenderTargetTexture() | |
| getResourceFactory | back to summary |
|---|---|
| public MTLResourceFactory getResourceFactory() Overrides com.
| |
| initState | back to summary |
|---|---|
| protected void initState() | |
| isCurrentRTT | back to summary |
|---|---|
| public boolean isCurrentRTT(long texPtr) | |
| 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) | |
| nCommitCurrentCommandBuffer | back to summary |
|---|---|
| private static native void nCommitCurrentCommandBuffer(long context) | |
| nCreateMTLMesh | back to summary |
|---|---|
| private static native long nCreateMTLMesh(long pContext) | |
| nCreateMTLMeshView | back to summary |
|---|---|
| private static native long nCreateMTLMeshView(long pContext, long nativeMesh) | |
| nCreateMTLPhongMaterial | back to summary |
|---|---|
| private static native long nCreateMTLPhongMaterial(long pContext) | |
| nDisposeShader | back to summary |
|---|---|
| private static native void nDisposeShader(long nMetalShaderRef) | |
| nDrawIndexedQuads | back to summary |
|---|---|
| private static native void nDrawIndexedQuads(long context, float[] coords, byte[] volors, int numVertices) | |
| nGetCommandQueue | back to summary |
|---|---|
| private static native long nGetCommandQueue(long context) | |
| nInitialize | back to summary |
|---|---|
| private static native long nInitialize(ByteBuffer shaderLibPathStr) | |
| nIsCurrentRTT | back to summary |
|---|---|
| private static native boolean nIsCurrentRTT(long pContext, long texPtr) | |
| nRelease | back to summary |
|---|---|
| private static native void nRelease(long pContext) | |
| nReleaseMTLMesh | back to summary |
|---|---|
| private static native void nReleaseMTLMesh(long pContext, long nativeHandle) | |
| nReleaseMTLMeshView | back to summary |
|---|---|
| private static native void nReleaseMTLMeshView(long pContext, long nativeHandle) | |
| nReleaseMTLPhongMaterial | back to summary |
|---|---|
| private static native void nReleaseMTLPhongMaterial(long pContext, long nativeHandle) | |
| nRenderMeshView | back to summary |
|---|---|
| private static native void nRenderMeshView(long pContext, long nativeMeshView) | |
| nResetClipRect | back to summary |
|---|---|
| private static native void nResetClipRect(long context) | |
| nSetAmbientLight | back to summary |
|---|---|
| private static native void nSetAmbientLight(long pContext, long nativeMeshView, float r, float g, float b) | |
| nSetCameraPosition | back to summary |
|---|---|
| private static native void nSetCameraPosition(long pContext, double x, double y, double z) | |
| nSetClipRect | back to summary |
|---|---|
| private static native void nSetClipRect(long context, int x, int y, int width, int height) | |
| nSetCompositeMode | back to summary |
|---|---|
| private static native void nSetCompositeMode(long context, int mode) | |
| nSetCullingMode | back to summary |
|---|---|
| private static native void nSetCullingMode(long pContext, long nativeMeshView, int cullingMode) | |
| 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 void 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) | |
| nSetSpecularColor | back to summary |
|---|---|
| private static native void nSetSpecularColor(long pContext, long nativePhongMaterial, boolean set, float r, float g, float b, float a) | |
| nSetTransform | back to summary |
|---|---|
| private static native void 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) | |
| nUpdateRenderTarget | back to summary |
|---|---|
| private static native int nUpdateRenderTarget(long context, long texPtr, boolean depthTest) | |
| printRawMatrix | back to summary |
|---|---|
| private void printRawMatrix(String mesg) | |
| releaseMTLMesh | back to summary |
|---|---|
| pack-priv void releaseMTLMesh(long nativeHandle) | |
| releaseMTLMeshView | back to summary |
|---|---|
| pack-priv void releaseMTLMeshView(long nativeMeshView) | |
| releaseMTLPhongMaterial | back to summary |
|---|---|
| pack-priv void releaseMTLPhongMaterial(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 |
|---|---|
| protected 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) | |
| 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) | |
| setRenderTargetTexture | back to summary |
|---|---|
| public void setRenderTargetTexture(MTLRTTexture rtt) | |
| setSpecularColor | back to summary |
|---|---|
| pack-priv void setSpecularColor(long nativePhongMaterial, boolean set, float r, float g, float b, float a) | |
| setTexture | back to summary |
|---|---|
| protected void setTexture(int texUnit, Texture tex) Overrides com.
| |
| setWireframe | back to summary |
|---|---|
| pack-priv void setWireframe(long nativeMeshView, boolean wireframe) | |
| updateClipRect | back to summary |
|---|---|
| protected void updateClipRect(Rectangle clipRect) Implements abstract com.
| |
| updateCompositeMode | back to summary |
|---|---|
| protected void updateCompositeMode(CompositeMode mode) Implements abstract com.
| |
| updateRawMatrix | back to summary |
|---|---|
| private void updateRawMatrix(GeneralTransform3D src) | |
| 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.
| |