List of usage examples for org.lwjgl.opengl GL20 glCreateProgram
@NativeType("GLuint") public static int glCreateProgram()
From source file:opengl.test.object.endgame.endgame.java
/** * /*from ww w . j a va2 s.com*/ * @param vao * @param XO */ public endgame(int vao) { Logger.getGlobal().entering("endgame", "endgame", new Object[] { vao }); if (vao == 0) throw new IllegalArgumentException("init : paramaters is null "); this.vao = vao; this.programID = GL20.glCreateProgram(); this.vertexShader("opengl/test/object/object.vs"); this.fragmentShader("opengl/test/object/object.fs"); this.link(); this.initVertex(); this.initUniformValues(); }
From source file:opengl.test.object.image.java
public image(int vao, float sizeX, float sizeY, float depth, String linkimage) { Logger.getGlobal().entering("image", "image", new Object[] { vao, sizeX, sizeY, depth, linkimage }); if (vao == 0) throw new RuntimeException("init : paramaters is null "); this.vao = vao; this.x = sizeX; this.y = sizeY; this.link = linkimage; this.z = depth; this.programID = GL20.glCreateProgram(); this.vertexShader("opengl/test/object/object.vs"); this.fragmentShader("opengl/test/object/object.fs"); this.link();// ww w .java 2 s .c o m this.initVertex(); this.initUniformValues(); }
From source file:opengl.test.object.lineCube.java
public lineCube(int vao, int x, int y) { if (vao == 0) throw new IllegalArgumentException("vao == 0 "); super.vao = vao; super.programID = GL20.glCreateProgram(); this.x = x;//ww w . j a v a2 s . c om this.y = y; this.Model = new Matrix4F(); this.vertexShader("opengl/test/object/lineCube.vs"); this.fragmentShader("opengl/test/object/lineCube.fs"); this.link(); this.initVertex(); this.initUniformValues(); }
From source file:opengl.test.object.object.java
public object(int vao) { if (vao == 0) throw new RuntimeException("init : paramaters is null "); this.vao = vao; this.programID = GL20.glCreateProgram(); this.vertexShader("opengl/test/object/object.vs"); this.fragmentShader("opengl/test/object/object.fs"); this.link();//from w w w . ja va 2 s. co m this.initVertex(); this.initUniformValues(); }
From source file:opengl.test.object.table.table.java
/** * /*from w w w.j a va2 s . c om*/ * @param vao * @param XO */ public table(int vao) { if (vao == 0) throw new RuntimeException("init : paramaters is null "); this.vao = vao; this.programID = GL20.glCreateProgram(); this.vertexShader("opengl/test/object/object.vs"); this.fragmentShader("opengl/test/object/object.fs"); this.link(); this.initVertex(); this.initUniformValues(); }
From source file:opengl.test.object.tivi.tivi.java
/** * //from w w w . j ava 2s .co m * @param vao * @param XO */ public tivi(int vao) { Logger.getGlobal().entering("tivi", "tivi", new Object[] { vao }); if (vao == 0) throw new IllegalArgumentException("init : paramaters is null "); super.vao = vao; this.programID = GL20.glCreateProgram(); this.vertexShader("opengl/test/object/object.vs"); this.fragmentShader("opengl/test/object/object.fs"); this.link(); this.initVertex(); this.initUniformValues(); }
From source file:opengl.test.object.tree.testobject.leaf.java
/** * //from w w w .j av a2s .c o m * @param vao * @param XO */ public leaf(int vao) { Logger.getGlobal().entering("tugiac", "tugiac", new Object[] { vao }); if (vao == 0) throw new IllegalArgumentException("init : paramaters is null "); this.vao = vao; this.programID = GL20.glCreateProgram(); this.vertexShader("opengl/test/object/tree/tree.vs"); this.fragmentShader("opengl/test/object/tree/tree.fs"); this.link(); this.initVertex(); this.initUniformValues(); }
From source file:opengl.test.object.tree.testobject.traicay.java
/** * //from w w w . j a v a 2 s . co m * @param vao * @param XO */ public traicay(int vao) { Logger.getGlobal().entering("tugiac", "tugiac", new Object[] { vao }); if (vao == 0) throw new IllegalArgumentException("init : paramaters is null "); this.vao = vao; this.programID = GL20.glCreateProgram(); this.vertexShader("opengl/test/object/tree/tree.vs"); this.fragmentShader("opengl/test/object/tree/tree.fs"); this.link(); this.initVertex(); this.initUniformValues(); }
From source file:opengl.test.object.tree.testobject.trunk.java
/** * /*ww w . j a v a 2s. com*/ * @param vao * @param XO */ public trunk(int vao) { Logger.getGlobal().entering("tugiac", "tugiac", new Object[] { vao }); if (vao == 0) throw new IllegalArgumentException("init : paramaters is null "); this.vao = vao; this.programID = GL20.glCreateProgram(); this.vertexShader("opengl/test/object/tree/tree.vs"); this.fragmentShader("opengl/test/object/tree/tree.fs"); this.link(); this.initVertex(); this.initUniformValues(); }
From source file:opengl.test.object.XO.java
/** * /*from w w w. j a v a2s. com*/ * @param vao * @param XO * @param x -- vi tri tren ban co * @param y -- vi tri tren ban co */ public XO(int vao, int XO, int x, int y) { Logger.getGlobal().entering("tugiac", "tugiac", new Object[] { vao, XO }); if (XO != Caro.X && XO != Caro.O) throw new IllegalArgumentException("XO != Caro.X && XO != Caro.Y"); if (vao == 0) throw new IllegalArgumentException("init : paramaters is null "); this.x = x; this.y = y; this.vao = vao; this.value = XO; this.programID = GL20.glCreateProgram(); this.vertexShader("opengl/test/object/XO.vs"); this.fragmentShader("opengl/test/object/XO.fs"); this.link(); this.initVertex(); this.initUniformValues(); }