Examples of HWND


Examples of windows.HWND

 
  public static final DXGI_SWAP_CHAIN_DESC SwapChainDescription(Component comp, ValuedEnum<DXGI_FORMAT> format) {
    DXGI_SWAP_CHAIN_DESC desc = new DXGI_SWAP_CHAIN_DESC();
    desc.BufferCount(1)
      .Windowed(1)
      .OutputWindow(new HWND(pointerToAddress(JAWTUtils.getNativePeerHandle(comp))))
      .BufferUsage(DXGI_USAGE_RENDER_TARGET_OUTPUT)
      .SwapEffect(DXGI_SWAP_EFFECT_DISCARD);
    desc.BufferDesc().Width(comp.getWidth())
             .Height(comp.getHeight())
             .Format(format)
View Full Code Here

Examples of windows.HWND

    frame.setVisible(true);
   
    Pointer<Pointer<IDirect3DDevice9>> ppDevice = allocatePointer(IDirect3DDevice9.class);
    int hr = d3d9.CreateDevice( D3DADAPTER_DEFAULT,
                  D3DDEVTYPE_SW,
                  new HWND(JAWTUtils.getNativePeerHandle(frame)),
                  D3DCREATE_SOFTWARE_VERTEXPROCESSING,
                  pointerTo(d3dpp), ppDevice );
    if(hr != 0) {
      System.out.println("Error creating device");
      return;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.