diff options
Diffstat (limited to 'src/net/java/joglutils/msg/nodes/Texture2.java')
-rw-r--r-- | src/net/java/joglutils/msg/nodes/Texture2.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/java/joglutils/msg/nodes/Texture2.java b/src/net/java/joglutils/msg/nodes/Texture2.java index fd1b82a..29ed969 100644 --- a/src/net/java/joglutils/msg/nodes/Texture2.java +++ b/src/net/java/joglutils/msg/nodes/Texture2.java @@ -58,6 +58,8 @@ public class Texture2 extends Node { static { // Enable the elements this node affects for known actions GLTextureElement.enable(GLRenderAction.getDefaultState()); + + TextureElement .enable(RayPickAction.getDefaultState()); } /** Represents the OpenGL MODULATE texture environment mode. */ @@ -144,4 +146,11 @@ public class Texture2 extends Node { TextureElement.set(action.getState(), getTexture(), getTexEnvMode()); } } + + public void rayPick(RayPickAction action) { + // FIXME: because of the issue of potentially not having an OpenGL + // context at the time this is called, the TextureElement should + // be updated to hold a reference to this node, and only the + // GLTextureElement should poll the texture + } } |