Package org.bridj.jawt.JawtLibrary

Examples of org.bridj.jawt.JawtLibrary.JNIEnv


    final ID2D1SolidColorBrush grayBrush = renderTarget.CreateSolidColorBrush(new D2D1_COLOR_F(), new D2D1_BRUSH_PROPERTIES());
    //final ID2D1Brush cornflowerBlueBrush = renderTarget.CreateSolidColorBrush(new D2D1_COLOR_F(CornflowerBlue), null);
   
    final Pointer<D2D1_MATRIX_3X2_F> pMat = allocate(D2D1_MATRIX_3X2_F.class);
   
    JNIEnv env = JAWTUtils.getJNIEnv();
    JAWT jawt = JAWTUtils.getJAWT(env);
    while(frame.isEnabled()) {

      JAWTUtils.withLockedSurface(env, jawt, frame, new JAWTUtils.LockedComponentRunnable() {
       
View Full Code Here


    immediateContext.RSSetViewports(1, pointerTo(vp));
   
    // Clear screen with some color
    final Pointer<Float> pColor = allocateFloats(4).setFloats(new float[] {0.7f, 0.8f, 0.3f, 1.0f});
   
    JNIEnv env = JAWTUtils.getJNIEnv();
    JAWT jawt = JAWTUtils.getJAWT(env);
    while(frame.isEnabled()) {

      JAWTUtils.withLockedSurface(env, jawt, frame, new JAWTUtils.LockedComponentRunnable() {
       
View Full Code Here

    D3D11_SUBRESOURCE_DATA initData = new D3D11_SUBRESOURCE_DATA();
    initData.pSysMem(pointerToFloats(0.0f, 1.0f, 0.5f, 1f, -0.5f, 0.5f, -0.5f, -0.5f, 0.5f));
    initData.SysMemPitch(0).SysMemSlicePitch(0);
    final ID3D11Buffer vertexBuffer = device.CreateBuffer(bufferDesc, initData);
   
    JNIEnv env = JAWTUtils.getJNIEnv();
    JAWT jawt = JAWTUtils.getJAWT(env);
    while(frame.isEnabled()) {

      if(frame.isVisible())
        JAWTUtils.withLockedSurface(env, jawt, frame, new LockedComponentRunnable() {
View Full Code Here

   
    final AtomicInteger angle = new AtomicInteger(0);
    final D3DXMATRIX mat = new D3DXMATRIX();
    D3DXMatrixIdentity(pointerTo(mat));
   
    JNIEnv env = JAWTUtils.getJNIEnv();
    JAWT jawt = JAWTUtils.getJAWT(env);
    while(frame.isEnabled()) {

      if(frame.isVisible())
       
View Full Code Here

TOP

Related Classes of org.bridj.jawt.JawtLibrary.JNIEnv

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.