Package org.bridj.jawt.JAWTUtils

Examples of org.bridj.jawt.JAWTUtils.LockedComponentRunnable


    JNIEnv env = JAWTUtils.getJNIEnv();
    JAWT jawt = JAWTUtils.getJAWT(env);
    while(frame.isEnabled()) {

      if(frame.isVisible())
        JAWTUtils.withLockedSurface(env, jawt, frame, new LockedComponentRunnable() {
          @Override
          public void run(Component comp, long peer) {
            immediateContext.ClearRenderTargetView(pointerTo(rtView), pointerToFloats(0.0f, 0.125f, 0.3f, 1.0f));
           
            int stride = (int) (sizeOf(Float.class) * 3);
 
View Full Code Here


       
        /*
         * Drawing shall occur inside this methods, to prevent deadlock between
         * Java drawing and native drawing
         */
        JAWTUtils.withLockedSurface(env, jawt, frame, new LockedComponentRunnable() {
         
          @Override
          public void run(Component comp, long peer) {
            // Clear screen
            immediateContext.ClearRenderTargetView(pointerTo(rtView), pointerToFloats(0.0f, 0.125f, 0.3f, 1.0f));
View Full Code Here

TOP

Related Classes of org.bridj.jawt.JAWTUtils.LockedComponentRunnable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.