w = (yx - xy) * s; return new Vector4f(x, y, z, w);
/** * Used to set text color. * * @param r red component. * @param g green component. * @param b blue component. * @param a alpha component. */ public void setTextColor(float r, float g, float b, float a) { this.textColor = new Vector4f(r, g, b, a); }
/** * Blue color vector. * * @return Vector4f blue color. */ public static Vector4f blue() { return new Vector4f(blue); }
/** * Black color vector. * * @return Vector4f black color. */ public static Vector4f black() { return new Vector4f(black); }
public FrustumCullingFilter() { prjViewMatrix = new Matrix4f(); frustumPlanes = new Vector4f[NUM_PLANES]; for (int i = 0; i < NUM_PLANES; i++) { frustumPlanes[i] = new Vector4f(); } }
public Renderer() { transformation = new Transformation(); specularPower = 10f; shadowRenderer = new ShadowRenderer(); frustumFilter = new FrustumCullingFilter(); filteredItems = new ArrayList<>(); tmpVec = new Vector4f(); }
public MouseBoxSelectionDetector() { super(); invProjectionMatrix = new Matrix4f(); invViewMatrix = new Matrix4f(); mouseDir = new Vector3f(); tmpVec = new Vector4f(); }
public MouseBoxSelectionDetector() { super(); invProjectionMatrix = new Matrix4f(); invViewMatrix = new Matrix4f(); mouseDir = new Vector3f(); tmpVec = new Vector4f(); }
public MouseBoxSelectionDetector() { super(); invProjectionMatrix = new Matrix4f(); invViewMatrix = new Matrix4f(); mouseDir = new Vector3f(); tmpVec = new Vector4f(); }
public MouseBoxSelectionDetector() { super(); invProjectionMatrix = new Matrix4f(); invViewMatrix = new Matrix4f(); mouseDir = new Vector3f(); tmpVec = new Vector4f(); }
public MouseBoxSelectionDetector() { super(); invProjectionMatrix = new Matrix4f(); invViewMatrix = new Matrix4f(); mouseDir = new Vector3f(); tmpVec = new Vector4f(); }
public MouseBoxSelectionDetector() { super(); invProjectionMatrix = new Matrix4f(); invViewMatrix = new Matrix4f(); mouseDir = new Vector3f(); tmpVec = new Vector4f(); }
public Hud(String statusText) throws Exception { this.statusTextItem = new TextItem(statusText, FONT_TEXTURE, FONT_COLS, FONT_ROWS); this.statusTextItem.getMesh().getMaterial().setAmbientColour(new Vector4f(1, 1, 1, 1)); gameItems = new GameItem[]{statusTextItem}; }
public Hud(String statusText) throws Exception { FontTexture fontTexture = new FontTexture(FONT, CHARSET); this.statusTextItem = new TextItem(statusText, fontTexture); this.statusTextItem.getMesh().getMaterial().setAmbientColour(new Vector4f(0.5f, 0.5f, 0.5f, 10f)); // Create list that holds the items that compose the HUD gameItems = new GameItem[]{statusTextItem}; }
public Hud(String statusText) throws Exception { FontTexture fontTexture = new FontTexture(FONT, CHARSET); this.statusTextItem = new TextItem(statusText, fontTexture); this.statusTextItem.getMesh().getMaterial().setAmbientColour(new Vector4f(0.5f, 0.5f, 0.5f, 10f)); // Create list that holds the items that compose the HUD gameItems = new GameItem[]{statusTextItem}; }
public Hud(String statusText) throws Exception { FontTexture fontTexture = new FontTexture(FONT, CHARSET); this.statusTextItem = new TextItem(statusText, fontTexture); this.statusTextItem.getMesh().getMaterial().setAmbientColour(new Vector4f(0.5f, 0.5f, 0.5f, 10f)); // Create list that holds the items that compose the HUD gameItems = new GameItem[]{statusTextItem}; }
public Hud(String statusText) throws Exception { FontTexture fontTexture = new FontTexture(FONT, CHARSET); this.statusTextItem = new TextItem(statusText, fontTexture); this.statusTextItem.getMesh().getMaterial().setAmbientColour(new Vector4f(0.5f, 0.5f, 0.5f, 10f)); // Create list that holds the items that compose the HUD gameItems = new GameItem[]{statusTextItem}; }
public Hud(String statusText) throws Exception { FontTexture fontTexture = new FontTexture(FONT, CHARSET); this.statusTextItem = new TextItem(statusText, fontTexture); this.statusTextItem.getMesh().getMaterial().setAmbientColour(new Vector4f(0.5f, 0.5f, 0.5f, 10f)); // Create list that holds the items that compose the HUD gameItems = new GameItem[]{statusTextItem}; }
public Hud(String statusText) throws Exception { FontTexture fontTexture = new FontTexture(FONT, CHARSET); this.statusTextItem = new TextItem(statusText, fontTexture); this.statusTextItem.getMesh().getMaterial().setAmbientColour(new Vector4f(0.5f, 0.5f, 0.5f, 10f)); // Create list that holds the items that compose the HUD gameItems = new GameItem[]{statusTextItem}; }
public Hud(String statusText) throws Exception { FontTexture fontTexture = new FontTexture(FONT, CHARSET); this.statusTextItem = new TextItem(statusText, fontTexture); this.statusTextItem.getMesh().getMaterial().setAmbientColour(new Vector4f(0.5f, 0.5f, 0.5f, 10f)); // Create list that holds the items that compose the HUD gameItems = new GameItem[]{statusTextItem}; }