1package com.fs.starfarer.api.impl.campaign;
5import org.lwjgl.opengl.GL11;
7import com.fs.starfarer.api.Global;
8import com.fs.starfarer.api.campaign.SectorEntityToken;
9import com.fs.starfarer.api.graphics.SpriteAPI;
10import com.fs.starfarer.api.impl.campaign.ids.Tags;
11import com.fs.starfarer.api.util.Misc;
21 private float overlayAngleOffset = 0f;
38 float max = Math.max(width, height);
59 return overlayAngleOffset;
63 this.overlayAngleOffset = overlayAngleOffset;
66 public void render(
float cx,
float cy,
float facing,
float alphaMult) {
67 if (alphaMult <= 0)
return;
108 GL11.glColorMask(
false,
false,
false,
true);
119 GL11.glColorMask(
true,
true,
true,
false);
129 GL11.glColorMask(
false,
false,
false,
true);
141 GL11.glColorMask(
true,
true,
true,
false);
static SettingsAPI getSettings()
float getOverlayAngleOffset()
void setOverlayAngleOffset(float overlayAngleOffset)
void setGlow(SpriteAPI glow)
GenericCampaignEntitySprite(SectorEntityToken entity, String spriteName, float scale)
void setOverlay(SpriteAPI overlay)
void render(float cx, float cy, float facing, float alphaMult)
static void renderQuadAlpha(float x, float y, float width, float height, Color color, float alphaMult)
static float getAngleInDegreesStrict(Vector2f v)
SpriteAPI getSprite(String filename)
SectorEntityToken getLightSource()
boolean hasTag(String tag)
void setSize(float width, float height)
void setBlendFunc(int src, int dest)
void setAngle(float angle)
void renderAtCenter(float x, float y)
void setColor(Color color)
void setAlphaMult(float alphaMult)