List of usage examples for org.lwjgl.opengl GL11 GL_COMPILE
int GL_COMPILE
To view the source code for org.lwjgl.opengl GL11 GL_COMPILE.
Click Source Link
From source file:stevekung.mods.moreplanets.moons.koentus.dimension.sky.SkyProviderKoentus.java
License:Creative Commons License
public SkyProviderKoentus(IGalacticraftWorldProvider marsProvider) { this.sunSize = 17.5F * marsProvider.getSolarSize(); int displayLists = GLAllocation.generateDisplayLists(3); this.starList = displayLists; this.glSkyList = displayLists + 1; this.glSkyList2 = displayLists + 2; // Bind stars to display list GL11.glPushMatrix();/*from www. j a va 2 s . co m*/ GL11.glNewList(this.starList, GL11.GL_COMPILE); this.renderStars(); GL11.glEndList(); GL11.glPopMatrix(); Tessellator tessellator = Tessellator.instance; GL11.glNewList(this.glSkyList, GL11.GL_COMPILE); byte byte2 = 64; int i = 256 / byte2 + 2; float f = 16F; for (int j = -byte2 * i; j <= byte2 * i; j += byte2) { for (int l = -byte2 * i; l <= byte2 * i; l += byte2) { tessellator.startDrawingQuads(); tessellator.addVertex(j + 0, f, l + 0); tessellator.addVertex(j + byte2, f, l + 0); tessellator.addVertex(j + byte2, f, l + byte2); tessellator.addVertex(j + 0, f, l + byte2); tessellator.draw(); } } GL11.glEndList(); GL11.glNewList(this.glSkyList2, GL11.GL_COMPILE); f = -16F; tessellator.startDrawingQuads(); for (int k = -byte2 * i; k <= byte2 * i; k += byte2) { for (int i1 = -byte2 * i; i1 <= byte2 * i; i1 += byte2) { tessellator.addVertex(k + byte2, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + byte2); tessellator.addVertex(k + byte2, f, i1 + byte2); } } tessellator.draw(); GL11.glEndList(); }
From source file:stevekung.mods.moreplanets.moons.phobos.dimension.sky.SkyProviderPhobos.java
License:Creative Commons License
public SkyProviderPhobos(IGalacticraftWorldProvider gcProvider) { this.sunSize = 17.5F * gcProvider.getSolarSize(); GL11.glPushMatrix();/* w w w .ja v a 2s . c o m*/ GL11.glNewList(this.starGLCallList, GL11.GL_COMPILE); this.renderStars(); GL11.glEndList(); GL11.glPopMatrix(); Tessellator tessellator = Tessellator.instance; this.glSkyList = this.starGLCallList + 1; GL11.glNewList(this.glSkyList, GL11.GL_COMPILE); byte byte2 = 64; int i = 256 / byte2 + 2; float f = 16F; for (int j = -byte2 * i; j <= byte2 * i; j += byte2) { for (int l = -byte2 * i; l <= byte2 * i; l += byte2) { tessellator.startDrawingQuads(); tessellator.addVertex(j + 0, f, l + 0); tessellator.addVertex(j + byte2, f, l + 0); tessellator.addVertex(j + byte2, f, l + byte2); tessellator.addVertex(j + 0, f, l + byte2); tessellator.draw(); } } GL11.glEndList(); this.glSkyList2 = this.starGLCallList + 2; GL11.glNewList(this.glSkyList2, GL11.GL_COMPILE); f = -16F; tessellator.startDrawingQuads(); for (int k = -byte2 * i; k <= byte2 * i; k += byte2) { for (int i1 = -byte2 * i; i1 <= byte2 * i; i1 += byte2) { tessellator.addVertex(k + byte2, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + byte2); tessellator.addVertex(k + byte2, f, i1 + byte2); } } tessellator.draw(); GL11.glEndList(); }
From source file:stevekung.mods.moreplanets.planets.diona.dimension.sky.SkyProviderDiona.java
License:Creative Commons License
public SkyProviderDiona(IGalacticraftWorldProvider marsProvider) { this.sunSize = 17.5F * marsProvider.getSolarSize(); int displayLists = GLAllocation.generateDisplayLists(3); this.starList = displayLists; this.glSkyList = displayLists + 1; this.glSkyList2 = displayLists + 2; // Bind stars to display list GL11.glPushMatrix();/*from w w w.ja v a2 s. c o m*/ GL11.glNewList(this.starList, GL11.GL_COMPILE); this.renderStars(); GL11.glEndList(); GL11.glPopMatrix(); Tessellator tessellator = Tessellator.instance; GL11.glNewList(this.glSkyList, GL11.GL_COMPILE); byte byte2 = 64; int i = 256 / byte2 + 2; float f = 16F; for (int j = -byte2 * i; j <= byte2 * i; j += byte2) { for (int l = -byte2 * i; l <= byte2 * i; l += byte2) { tessellator.startDrawingQuads(); tessellator.addVertex(j + 0, f, l + 0); tessellator.addVertex(j + byte2, f, l + 0); tessellator.addVertex(j + byte2, f, l + byte2); tessellator.addVertex(j + 0, f, l + byte2); tessellator.draw(); } } GL11.glEndList(); GL11.glNewList(this.glSkyList2, GL11.GL_COMPILE); f = -16F; tessellator.startDrawingQuads(); for (int k = -byte2 * i; k <= byte2 * i; k += byte2) { for (int i1 = -byte2 * i; i1 <= byte2 * i; i1 += byte2) { tessellator.addVertex(k + byte2, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + byte2); tessellator.addVertex(k + byte2, f, i1 + byte2); } } tessellator.draw(); GL11.glEndList(); }
From source file:stevekung.mods.moreplanets.planets.fronos.dimension.sky.SkyProviderFronos.java
License:Creative Commons License
public SkyProviderFronos(IGalacticraftWorldProvider marsProvider) { this.sunSize = 17.5F * marsProvider.getSolarSize(); int displayLists = GLAllocation.generateDisplayLists(3); this.starList = displayLists; this.glSkyList = displayLists + 1; this.glSkyList2 = displayLists + 2; // Bind stars to display list GL11.glPushMatrix();//from w w w . j a v a2s . c o m GL11.glNewList(this.starList, GL11.GL_COMPILE); this.renderStars(); GL11.glEndList(); GL11.glPopMatrix(); Tessellator tessellator = Tessellator.instance; GL11.glNewList(this.glSkyList, GL11.GL_COMPILE); byte byte2 = 64; int i = 256 / byte2 + 2; float f = 16F; for (int j = -byte2 * i; j <= byte2 * i; j += byte2) { for (int l = -byte2 * i; l <= byte2 * i; l += byte2) { tessellator.startDrawingQuads(); tessellator.addVertex(j + 0, f, l + 0); tessellator.addVertex(j + byte2, f, l + 0); tessellator.addVertex(j + byte2, f, l + byte2); tessellator.addVertex(j + 0, f, l + byte2); tessellator.draw(); } } GL11.glEndList(); GL11.glNewList(this.glSkyList2, GL11.GL_COMPILE); f = -16F; tessellator.startDrawingQuads(); for (int k = -byte2 * i; k <= byte2 * i; k += byte2) { for (int i1 = -byte2 * i; i1 <= byte2 * i; i1 += byte2) { tessellator.addVertex(k + byte2, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + byte2); tessellator.addVertex(k + byte2, f, i1 + byte2); } } tessellator.draw(); GL11.glEndList(); }
From source file:stevekung.mods.moreplanets.planets.kapteynb.dimension.sky.SkyProviderKapteynB.java
License:Creative Commons License
public SkyProviderKapteynB(IGalacticraftWorldProvider marsProvider) { this.sunSize = 17.5F * marsProvider.getSolarSize(); int displayLists = GLAllocation.generateDisplayLists(3); this.starList = displayLists; this.glSkyList = displayLists + 1; this.glSkyList2 = displayLists + 2; // Bind stars to display list GL11.glPushMatrix();/*from w w w . ja va 2 s . c o m*/ GL11.glNewList(this.starList, GL11.GL_COMPILE); this.renderStars(); GL11.glEndList(); GL11.glPopMatrix(); Tessellator tessellator = Tessellator.instance; GL11.glNewList(this.glSkyList, GL11.GL_COMPILE); byte byte2 = 64; int i = 256 / byte2 + 2; float f = 16F; for (int j = -byte2 * i; j <= byte2 * i; j += byte2) { for (int l = -byte2 * i; l <= byte2 * i; l += byte2) { tessellator.startDrawingQuads(); tessellator.addVertex(j + 0, f, l + 0); tessellator.addVertex(j + byte2, f, l + 0); tessellator.addVertex(j + byte2, f, l + byte2); tessellator.addVertex(j + 0, f, l + byte2); tessellator.draw(); } } GL11.glEndList(); GL11.glNewList(this.glSkyList2, GL11.GL_COMPILE); f = -16F; tessellator.startDrawingQuads(); for (int k = -byte2 * i; k <= byte2 * i; k += byte2) { for (int i1 = -byte2 * i; i1 <= byte2 * i; i1 += byte2) { tessellator.addVertex(k + byte2, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + byte2); tessellator.addVertex(k + byte2, f, i1 + byte2); } } tessellator.draw(); GL11.glEndList(); }
From source file:stevekung.mods.moreplanets.planets.mercury.dimension.sky.SkyProviderMercury.java
License:Creative Commons License
public SkyProviderMercury(IGalacticraftWorldProvider gcProvider) { this.sunSize = 17.5F * gcProvider.getSolarSize(); int displayLists = GLAllocation.generateDisplayLists(3); this.starList = displayLists; this.glSkyList = displayLists + 1; this.glSkyList2 = displayLists + 2; // Bind stars to display list GL11.glPushMatrix();/*w w w. ja v a 2 s .c om*/ GL11.glNewList(this.starList, GL11.GL_COMPILE); this.renderStars(); GL11.glEndList(); GL11.glPopMatrix(); Tessellator tessellator = Tessellator.instance; GL11.glNewList(this.glSkyList, GL11.GL_COMPILE); byte byte2 = 64; int i = 256 / byte2 + 2; float f = 16F; for (int j = -byte2 * i; j <= byte2 * i; j += byte2) { for (int l = -byte2 * i; l <= byte2 * i; l += byte2) { tessellator.startDrawingQuads(); tessellator.addVertex(j + 0, f, l + 0); tessellator.addVertex(j + byte2, f, l + 0); tessellator.addVertex(j + byte2, f, l + byte2); tessellator.addVertex(j + 0, f, l + byte2); tessellator.draw(); } } GL11.glEndList(); GL11.glNewList(this.glSkyList2, GL11.GL_COMPILE); f = -16F; tessellator.startDrawingQuads(); for (int k = -byte2 * i; k <= byte2 * i; k += byte2) { for (int i1 = -byte2 * i; i1 <= byte2 * i; i1 += byte2) { tessellator.addVertex(k + byte2, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + byte2); tessellator.addVertex(k + byte2, f, i1 + byte2); } } tessellator.draw(); GL11.glEndList(); }
From source file:stevekung.mods.moreplanets.planets.nibiru.dimension.sky.SkyProviderNibiru.java
License:Creative Commons License
public SkyProviderNibiru(IGalacticraftWorldProvider marsProvider) { this.sunSize = 17.5F * marsProvider.getSolarSize(); int displayLists = GLAllocation.generateDisplayLists(3); this.starList = displayLists; this.glSkyList = displayLists + 1; this.glSkyList2 = displayLists + 2; // Bind stars to display list GL11.glPushMatrix();/* ww w . j a va 2 s.c o m*/ GL11.glNewList(this.starList, GL11.GL_COMPILE); this.renderStars(); GL11.glEndList(); GL11.glPopMatrix(); Tessellator tessellator = Tessellator.instance; GL11.glNewList(this.glSkyList, GL11.GL_COMPILE); byte byte2 = 64; int i = 256 / byte2 + 2; float f = 16F; for (int j = -byte2 * i; j <= byte2 * i; j += byte2) { for (int l = -byte2 * i; l <= byte2 * i; l += byte2) { tessellator.startDrawingQuads(); tessellator.addVertex(j + 0, f, l + 0); tessellator.addVertex(j + byte2, f, l + 0); tessellator.addVertex(j + byte2, f, l + byte2); tessellator.addVertex(j + 0, f, l + byte2); tessellator.draw(); } } GL11.glEndList(); GL11.glNewList(this.glSkyList2, GL11.GL_COMPILE); f = -16F; tessellator.startDrawingQuads(); for (int k = -byte2 * i; k <= byte2 * i; k += byte2) { for (int i1 = -byte2 * i; i1 <= byte2 * i; i1 += byte2) { tessellator.addVertex(k + byte2, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + byte2); tessellator.addVertex(k + byte2, f, i1 + byte2); } } tessellator.draw(); GL11.glEndList(); }
From source file:stevekung.mods.moreplanets.planets.pluto.dimension.sky.SkyProviderPluto.java
License:Creative Commons License
public SkyProviderPluto(IGalacticraftWorldProvider gcProvider) { this.sunSize = 17.5F * gcProvider.getSolarSize(); GL11.glPushMatrix();/*w w w .j a v a 2 s. co m*/ GL11.glNewList(this.starGLCallList, GL11.GL_COMPILE); this.renderStars(); GL11.glEndList(); GL11.glPopMatrix(); Tessellator tessellator = Tessellator.instance; this.glSkyList = this.starGLCallList + 1; GL11.glNewList(this.glSkyList, GL11.GL_COMPILE); byte byte2 = 64; int i = 256 / byte2 + 2; float f = 16F; for (int j = -byte2 * i; j <= byte2 * i; j += byte2) { for (int l = -byte2 * i; l <= byte2 * i; l += byte2) { tessellator.startDrawingQuads(); tessellator.addVertex(j + 0, f, l + 0); tessellator.addVertex(j + byte2, f, l + 0); tessellator.addVertex(j + byte2, f, l + byte2); tessellator.addVertex(j + 0, f, l + byte2); tessellator.draw(); } } GL11.glEndList(); this.glSkyList2 = this.starGLCallList + 2; GL11.glNewList(this.glSkyList2, GL11.GL_COMPILE); f = -16F; tessellator.startDrawingQuads(); for (int k = -byte2 * i; k <= byte2 * i; k += byte2) { for (int i1 = -byte2 * i; i1 <= byte2 * i; i1 += byte2) { tessellator.addVertex(k + byte2, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + byte2); tessellator.addVertex(k + byte2, f, i1 + byte2); } } tessellator.draw(); GL11.glEndList(); }
From source file:stevekung.mods.moreplanets.planets.polongnius.dimension.sky.SkyProviderPolongnius.java
License:Creative Commons License
public SkyProviderPolongnius(IGalacticraftWorldProvider marsProvider) { this.sunSize = 17.5F * marsProvider.getSolarSize(); int displayLists = GLAllocation.generateDisplayLists(3); this.starList = displayLists; this.glSkyList = displayLists + 1; this.glSkyList2 = displayLists + 2; // Bind stars to display list GL11.glPushMatrix();/* www .jav a 2s.c o m*/ GL11.glNewList(this.starList, GL11.GL_COMPILE); this.renderStars(); GL11.glEndList(); GL11.glPopMatrix(); Tessellator tessellator = Tessellator.instance; GL11.glNewList(this.glSkyList, GL11.GL_COMPILE); byte byte2 = 64; int i = 256 / byte2 + 2; float f = 16F; for (int j = -byte2 * i; j <= byte2 * i; j += byte2) { for (int l = -byte2 * i; l <= byte2 * i; l += byte2) { tessellator.startDrawingQuads(); tessellator.addVertex(j + 0, f, l + 0); tessellator.addVertex(j + byte2, f, l + 0); tessellator.addVertex(j + byte2, f, l + byte2); tessellator.addVertex(j + 0, f, l + byte2); tessellator.draw(); } } GL11.glEndList(); GL11.glNewList(this.glSkyList2, GL11.GL_COMPILE); f = -16F; tessellator.startDrawingQuads(); for (int k = -byte2 * i; k <= byte2 * i; k += byte2) { for (int i1 = -byte2 * i; i1 <= byte2 * i; i1 += byte2) { tessellator.addVertex(k + byte2, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + byte2); tessellator.addVertex(k + byte2, f, i1 + byte2); } } tessellator.draw(); GL11.glEndList(); }
From source file:stevekung.mods.moreplanets.planets.siriusb.dimension.sky.SkyProviderSiriusB.java
License:Creative Commons License
public SkyProviderSiriusB(IGalacticraftWorldProvider gcProvider) { this.sunSize = 17.5F * gcProvider.getSolarSize(); int displayLists = GLAllocation.generateDisplayLists(3); this.starList = displayLists; this.glSkyList = displayLists + 1; this.glSkyList2 = displayLists + 2; // Bind stars to display list GL11.glPushMatrix();/*from w ww .j av a 2 s.co m*/ GL11.glNewList(this.starList, GL11.GL_COMPILE); this.renderStars(); GL11.glEndList(); GL11.glPopMatrix(); Tessellator tessellator = Tessellator.instance; GL11.glNewList(this.glSkyList, GL11.GL_COMPILE); byte byte2 = 64; int i = 256 / byte2 + 2; float f = 16F; for (int j = -byte2 * i; j <= byte2 * i; j += byte2) { for (int l = -byte2 * i; l <= byte2 * i; l += byte2) { tessellator.startDrawingQuads(); tessellator.addVertex(j + 0, f, l + 0); tessellator.addVertex(j + byte2, f, l + 0); tessellator.addVertex(j + byte2, f, l + byte2); tessellator.addVertex(j + 0, f, l + byte2); tessellator.draw(); } } GL11.glEndList(); GL11.glNewList(this.glSkyList2, GL11.GL_COMPILE); f = -16F; tessellator.startDrawingQuads(); for (int k = -byte2 * i; k <= byte2 * i; k += byte2) { for (int i1 = -byte2 * i; i1 <= byte2 * i; i1 += byte2) { tessellator.addVertex(k + byte2, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + 0); tessellator.addVertex(k + 0, f, i1 + byte2); tessellator.addVertex(k + byte2, f, i1 + byte2); } } tessellator.draw(); GL11.glEndList(); }