gl.java
来自「一个可用delphi来开发java的JNI开发包delphi接口」· Java 代码 · 共 14 行
JAVA
14 行
public class gl
{
static{
System.loadLibrary("xgl32");
}
public static native void glViewport(int x,int y,int width,int height);
public static native void glMatrixMode(int mode);
public static native void glLoadIdentity();
public static native void glOrtho(double left,double right,double bottom,double top,double zNear,double zFar);
public static native void glClearColor(float red,float green,float blue,float alpha);
public static native void glClear(int mask);
public static native void glColor3f(float red,float green,float blue);
public static native void glRectf(float x1,float y1,float x2,float y2);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?