all pages
public class MYBackground extends MTComponent{ public MYBackground(PApplet pApplet) { super(pApplet); } public void drawComponent(PGraphics g) { super.drawComponent(g); if (MT4jSettings.getInstance().isOpenGlMode()){ GL gl = Tools3D.beginGL(getRenderer()); //use opengl draw commands etc //gl.... Tools3D.endGL(getRenderer()); } } }
Category: Snippets
|