public final void transform(ElementRenderState render_state) { Model model = render_state.model; RenderTools.translateAndRotate( model.getPositionX(), model.getPositionY(), render_state.f, model.getDirectionX(), model.getDirectionY()); }
public final void transform(ElementRenderState render_state) { Plants plants = (Plants) render_state.getModel(); RenderTools.translateAndRotate(plants); float dist_squared = render_state.f; if (dist_squared > START_FADE_DIST * START_FADE_DIST) { float camera_dist = (float) Math.sqrt(dist_squared); float alpha = 1f - ((camera_dist - START_FADE_DIST) / (PLANTS_CUT_DIST - START_FADE_DIST)); GL11.glColor4f(1f, 1f, 1f, alpha); } }
public final void transform(ElementRenderState render_state) { RotatingThrowingWeapon model = (RotatingThrowingWeapon) render_state.getModel(); RenderTools.translateAndRotate(render_state.getModel()); GL11.glRotatef(model.getAngle(), 0f, 1f, 0f); }
public final void transform(ElementRenderState render_state) { DirectedThrowingWeapon model = (DirectedThrowingWeapon) render_state.getModel(); RenderTools.translateAndRotate(render_state.getModel()); GL11.glRotatef(-model.getZSpeed(), 0f, 1f, 0f); }
public void transform(ElementRenderState render_state) { RenderTools.translateAndRotate(render_state.getModel()); GL11.glColor4f(1f, 1f, 1f, 1f); }