inline OpenGL functions to lwjgl GLxx

This commit is contained in:
Sen 2025-03-18 10:24:05 +01:00
parent 783adb350b
commit a2ffb2991d
90 changed files with 1008 additions and 1204 deletions

View file

@ -1,7 +1,8 @@
package game.renderer.model;
import org.lwjgl.opengl.GL11;
import game.entity.Entity;
import game.window.WCF;
public class ModelCrystal extends ModelBase
{
@ -32,28 +33,28 @@ public class ModelCrystal extends ModelBase
*/
public void render(Entity entityIn, float p_78088_2_, float p_78088_3_, float p_78088_4_, float p_78088_5_, float p_78088_6_, float scale)
{
WCF.glPushMatrix();
WCF.glScalef(2.0F, 2.0F, 2.0F);
WCF.glTranslatef(0.0F, -0.5F, 0.0F);
GL11.glPushMatrix();
GL11.glScalef(2.0F, 2.0F, 2.0F);
GL11.glTranslatef(0.0F, -0.5F, 0.0F);
if (this.base != null)
{
this.base.render(scale);
}
WCF.glRotatef(p_78088_3_, 0.0F, 1.0F, 0.0F);
WCF.glTranslatef(0.0F, 0.8F + p_78088_4_, 0.0F);
WCF.glRotatef(60.0F, 0.7071F, 0.0F, 0.7071F);
GL11.glRotatef(p_78088_3_, 0.0F, 1.0F, 0.0F);
GL11.glTranslatef(0.0F, 0.8F + p_78088_4_, 0.0F);
GL11.glRotatef(60.0F, 0.7071F, 0.0F, 0.7071F);
this.glass.render(scale);
float f = 0.875F;
WCF.glScalef(f, f, f);
WCF.glRotatef(60.0F, 0.7071F, 0.0F, 0.7071F);
WCF.glRotatef(p_78088_3_, 0.0F, 1.0F, 0.0F);
GL11.glScalef(f, f, f);
GL11.glRotatef(60.0F, 0.7071F, 0.0F, 0.7071F);
GL11.glRotatef(p_78088_3_, 0.0F, 1.0F, 0.0F);
this.glass.render(scale);
WCF.glScalef(f, f, f);
WCF.glRotatef(60.0F, 0.7071F, 0.0F, 0.7071F);
WCF.glRotatef(p_78088_3_, 0.0F, 1.0F, 0.0F);
GL11.glScalef(f, f, f);
GL11.glRotatef(60.0F, 0.7071F, 0.0F, 0.7071F);
GL11.glRotatef(p_78088_3_, 0.0F, 1.0F, 0.0F);
this.cube.render(scale);
WCF.glPopMatrix();
GL11.glPopMatrix();
}
}