aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-28 02:41:48 +0200
committerSven Gothel <[email protected]>2023-03-28 02:41:48 +0200
commit9bb1c269bc64d385e2b584c34f842990f72ad31d (patch)
tree4caa6fc62e8f878db840e302ecc536842cfd287a /src/jogl/classes/com/jogamp/graph
parent114cc7be0f43a6cf2540caa0ed47948d7cade54f (diff)
Graph RenderState: Add setColorStatic(float[]) variant
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph')
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java
index 9dc72f617..aafd71d64 100644
--- a/src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java
+++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/RenderState.java
@@ -246,6 +246,9 @@ public class RenderState {
System.arraycopy(colorStatic, 0, rgbaColor, 0, 4);
return rgbaColor;
}
+ public final void setColorStatic(final float[] rgbaColor){
+ System.arraycopy(rgbaColor, 0, colorStatic, 0, 4);
+ }
public final void setColorStatic(final float r, final float g, final float b, final float a){
colorStatic[0] = r;
colorStatic[1] = g;