imports:
import cmu.gui.CMUKitUI;
import com.fs.starfarer.api.combat.ViewportAPI;
import com.fs.starfarer.api.graphics.SpriteAPI;
import org.lwjgl.util.glu.Sphere;
import org.lwjgl.util.vector.Vector2f;
import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.util.glu.GLU.*;
radius is 200, stacks are 70, slices are 70, location is the ships location
CMUKitUI.closeGLForMisc();//it was open, arcs and stuff doesnt work properly when i dont disable this and do the matrix things (the sources of arcs go to weird places and visual effects happen really outa place)
glMatrixMode(GL_TEXTURE_MATRIX);
glPushMatrix();
texture.bindTexture();
sphere.setOrientation(GLU_INSIDE);
sphere.setNormals(GLU_SMOOTH);
sphere.setDrawStyle(GLU_FILL);
sphere.setTextureFlag(true);
glMatrixMode(GL_PROJECTION_MATRIX);
glPushMatrix();
glMatrixMode(GL_MODELVIEW_MATRIX);
glPushMatrix();
glTranslatef(viewport.convertWorldXtoScreenX(location.x), viewport.convertWorldYtoScreenY(location.y), 0);
sphere.draw(radius, slices, stacks);
glPopMatrix();
glPopMatrix();
glPopMatrix();
CMUKitUI.openGLForMisc();