aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-12-18 02:40:01 +0100
committerSven Gothel <[email protected]>2023-12-18 02:40:01 +0100
commitc5890ee3e6bfa8aa40a55145b3b7e8a9bca344be (patch)
treef780d4ea1b7dfe4c615075cd999679b55da3cf11 /src/graphui/classes/com
parenta503f9c06faaa3cf0b9af18ad07e50b02bc19318 (diff)
GraphUI MediaButton: Disable AA_RENDERING_MASK for GLMediaPlayer color texture (effiency, less artifacts)
2-pass Graph-AA is not desired for video textures to enhance efficiency and reduce artifacts. Consider using 'mPlayer.setTextureMinMagFilter( new int[] { GL.GL_LINEAR, GL.GL_LINEAR } )' of passed GLMediaPlayer instance to use bilinear filtering for different sizes.
Diffstat (limited to 'src/graphui/classes/com')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java
index ed44324de..d14cb49fd 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java
@@ -30,6 +30,7 @@ package com.jogamp.graph.ui.shapes;
import com.jogamp.opengl.GL2ES2;
import com.jogamp.common.av.AudioSink;
import com.jogamp.common.util.InterruptSource;
+import com.jogamp.graph.curve.Region;
import com.jogamp.graph.curve.opengl.RegionRenderer;
import com.jogamp.graph.ui.GraphShape;
import com.jogamp.opengl.util.av.GLMediaPlayer;
@@ -66,7 +67,7 @@ public class MediaButton extends TexSeqButton {
*/
public MediaButton(final int renderModes, final float width,
final float height, final GLMediaPlayer mPlayer) {
- super(renderModes, width, height, mPlayer);
+ super(renderModes & ~Region.AA_RENDERING_MASK, width, height, mPlayer);
setColor(1.0f, 1.0f, 1.0f, 0.0f);
setPressedColorMod(0.9f, 0.9f, 0.9f, 0.7f);