windowssystem.java

来自「一个可用delphi来开发java的JNI开发包delphi接口」· Java 代码 · 共 46 行

JAVA
46
字号
/*
class PixelFormatDescriptor
{
	short nSize;
    short nVersion;
    int dwFlags;
    byte iPixelType;
    byte cColorBits;
    byte cRedBits;
    byte cRedShift;
    byte cGreenBits;
    byte cGreenShift;
    byte cBlueBits;
    byte cBlueShift;
    byte cAlphaBits;
    byte cAlphaShift;
    byte cAccumBits;
    byte cAccumRedBits;
    byte cAccumGreenBits;
    byte cAccumBlueBits;
    byte cAccumAlphaBits;
    byte cDepthBits;
    byte cStencilBits;
    byte cAuxBuffers;
    byte iLayerType;
    byte bReserved;
    int dwLayerMask;
    int dwVisibleMask;
    int dwDamageMask;
}
*/
public class WindowsSystem
{

	static{System.loadLibrary("xSys32");}
	/*                            */
	public static native int GetAwtHandle();
	public static native boolean initOpenGL(int DC);
	/*                            */
	public static native int GetDC(int hWnd);
//	public static native int ChoosePixelFormat(int DC,PixelFormatDescriptor p2);
//	public static native boolean SetPixelFormat(int DC,int PixelFormat,PixelFormatDescriptor FormatDef);
//	public static native int wglCreateContext(int DC);
//	public static native boolean wglMakeCurrent(int DC,int p2);
	public static native boolean SwapBuffers(int DC);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?