本文整理汇总了Java中com.jogamp.opengl.GLEventListener类的典型用法代码示例。如果您正苦于以下问题:Java GLEventListener类的具体用法?Java GLEventListener怎么用?Java GLEventListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GLEventListener类属于com.jogamp.opengl包,在下文中一共展示了GLEventListener类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: GLEventListenerButton
import com.jogamp.opengl.GLEventListener; //导入依赖的package包/类
public GLEventListenerButton(final Factory<? extends Vertex> factory, final int renderModes,
final float width, final float height, final int textureUnit,
final GLEventListener glel, final boolean useAlpha, final int fboWidth, final int fboHeight) {
super(factory, renderModes, width, height, new ImageSequence(textureUnit, true));
this.glel = glel;
this.useAlpha = useAlpha;
setColor(0.95f, 0.95f, 0.95f, 1.0f);
setPressedColorMod(1f, 1f, 1f, 0.9f);
setToggleOffColorMod(0.8f, 0.8f, 0.8f, 1.0f);
setToggleOnColorMod(1.0f, 1.0f, 1.0f, 1.0f);
this.fboWidth = fboWidth;
this.fboHeight = fboHeight;
}
示例2: RenderWindow
import com.jogamp.opengl.GLEventListener; //导入依赖的package包/类
RenderWindow(int x, int y, int width, int height, String title, String name,
GLContext sharedContext,
GLCapabilitiesImmutable caps,
GLEventListener glListener, Image icon, int windowID, int viewID,
WindowInteractionListener appListener) {
_window = GLWindow.create(caps);
_window.addGLEventListener(glListener);
_window.setSharedContext(sharedContext);
_awtFrame = new Frame(title);
NewtCanvasAWT canvas = new NewtCanvasAWT(_window);
_awtFrame.add(canvas);
_awtFrame.setBounds(x, y, width, height);
if (icon != null) {
_awtFrame.setIconImage(icon);
}
_appListener = appListener;
_windowID = windowID;
_viewID = viewID;
_name = name;
}
示例3: removeGLEventListener
import com.jogamp.opengl.GLEventListener; //导入依赖的package包/类
public void removeGLEventListener(final GLEventListener listener) {
}
示例4: addGLEventListener
import com.jogamp.opengl.GLEventListener; //导入依赖的package包/类
public void addGLEventListener(final GLEventListener listener) {
System.out.println("addGLEventListener(" + listener + ")");
}