com.jmex.bui
Class BGlComponent

java.lang.Object
  extended by com.jmex.bui.BComponent
      extended by com.jmex.bui.BGlComponent

public class BGlComponent
extends BComponent

This class sets up a BComponent to be a GL component. You extend this class then create the renderGl method insert your OpenGL (LWJGL) code into this method and add the class to your window bake at 350 for 10 minutes and run... your OpenGL code should appear as expected

Since:
27Apr07
Author:
timo aka vivaldi

Field Summary
 
Fields inherited from class com.jmex.bui.BComponent
_alpha, _backgrounds, _bbuf, _borders, _colors, _cursor, _enabled, _height, _hover, _insets, _listeners, _parent, _preferredSize, _properties, _styleClass, _tipmouse, _tipStyle, _tiptext, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES
 
Constructor Summary
BGlComponent()
           
 
Method Summary
 void renderComponent(com.jme.renderer.Renderer renderer)
          Renders any custom bits for this component.
 void renderGl()
           
 
Methods inherited from class com.jmex.bui.BComponent
acceptsFocus, addListener, addListeners, applyDefaultStates, boundsToString, changeCursor, computePreferredSize, configureStyle, createTooltipComponent, dispatchEvent, emitEvent, getAbsoluteX, getAbsoluteY, getAlpha, getBackground, getBorder, getBounds, getColor, getCursor, getDefaultStyleClass, getFocusTarget, getHeight, getHitComponent, getInsets, getLocation, getName, getNextFocus, getParent, getPreferredSize, getPreviousFocus, getProperty, getState, getStateCount, getStatePseudoClass, getStyleClass, getTooltipText, getWidth, getWindow, getX, getY, hasFocus, intersectScissorBox, invalidate, isAdded, isConsumeMouseEvents, isEnabled, isHoverEnabled, isShowing, isTooltipRelativeToMouse, isValid, isVisible, layout, removeAllListeners, removeListener, render, renderBackground, renderBorder, requestFocus, restoreScissorState, setAlpha, setBackground, setBounds, setConsumeMouseEvents, setCursor, setEnabled, setHoverEnabled, setLocation, setName, setParent, setPreferredSize, setPreferredSize, setProperty, setSize, setStyleClass, setTooltipRelativeToMouse, setTooltipText, setVisible, stateDidChange, updateCursor, validate, wasAdded, wasRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BGlComponent

public BGlComponent()
Method Detail

renderComponent

public void renderComponent(com.jme.renderer.Renderer renderer)
Description copied from class: BComponent
Renders any custom bits for this component. This is called with the graphics context translated to (0, 0) relative to this component.

Overrides:
renderComponent in class BComponent

renderGl

public void renderGl()


Copyright © 2011 Michael Bayne. All Rights Reserved.