LiskoSlayer63

Rendering API

Nov 27th, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. protected void compileDisplayList(float scale) {
  2.         displayList = GLAllocation.generateDisplayLists(1);
  3.         GL11.glNewList(displayList, GL11.GL_COMPILE);
  4.        
  5.         GL11.glPushMatrix();
  6.         GL11.glScalef(0.76F, 0.76F, 0.76F);
  7.         GL11.glRotatef(180F, 1F, 0F, 0F);
  8.  
  9.         model.renderAll();
  10.  
  11.         GL11.glPopMatrix();
  12.        
  13.         GL11.glEndList();
  14.         compiled = true;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment