Determining what graphics mode PApplet is in
              in 
             Library and Tool Development 
              •  
              3 years ago    
            
 
           
             Hello,
            
             
            
            
             
            
            
             
            
            
 
            
           
             I am building a library of display objects. Each display object has access to the running PApplet reference. How can I determine what graphics mode PApplet is using (i.e. OpenGL, P3D, Java2D)?
            
            
             I've tried PApplet's getGraphics() method but applet's running in OpenGL are returning "sun.java2d.SunGraphics2D[font=java.awt.Font[family=Lucida Grande,name=Lucida Grande,style=plain,size=13],color=java.awt.Color[r=0,g=0,b=0]]"
            
            
             any ideas?
            
            
             thanks,
            
 
            
              
              1  
            
 
            