Microsoft SDK for Java

Direct3dViewport Class

Applications use the methods of the Direct3dViewport Class of the com.ms.directX package to retrieve and set the properties of viewports.

public class Direct3dViewport implements IDirect3dViewport
{
  // Methods
  public void addLight(Direct3dLight light);
  public void clear(int count, D3dRect rec, int flags);
  public void deleteLight(Direct3dLight light);
  public void getBackground(int[] hdl, int[] stat);
  public DirectDrawSurface getBackgroundDepth(int[] status);
  public void getViewport(D3dViewportDesc vp);
  public Direct3dLight nextLight(Direct3dLight l1, int flags);
  public void setBackground(int hdl);
  public void setBackgroundDepth(IDirectDrawSurface surface);
  public void setViewport(D3dViewportDesc vp);

}

Note   This class does not provide an initialize method. Use the Direct3d.createViewport()method to create and initialize Direct3dViewport objects.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.