Class LensFlare


  • public class LensFlare
    extends Object
    Class that represent a lens flare effect to render
    Author:
    Darius Dinger
    • Constructor Detail

      • LensFlare

        public LensFlare()
    • Method Detail

      • setTextures

        public void setTextures​(int[] textures)
        Setting lens flare textures to place onto the lens flare vector
        Parameters:
        textures - New lens flare textures
      • getTextures

        public int[] getTextures()
        Returns:
        Lens flare textures to place onto the lens flare vector
      • getSize

        public float getSize()
        Returns:
        Size of the lens flare textures
      • setSize

        public void setSize​(float size)
        Parameters:
        size - New size of the lens flare textures
      • getBrightness

        public float getBrightness()
        Returns:
        Brightness of the lens flare textures
      • setBrightness

        public void setBrightness​(float brightness)
        Parameters:
        brightness - New brightness of the lens flare textures
      • addTexture

        public void addTexture​(int tex)
        Adding texture to the lens flare effect
        Parameters:
        tex - TextureData to add