Class GlslVersion

java.lang.Object
foundry.veil.impl.glsl.grammar.GlslVersion

public class GlslVersion extends Object
Represents the version statement for a GLSL shader source.
  • Constructor Details

    • GlslVersion

      public GlslVersion(int version, boolean core)
  • Method Details

    • getVersion

      public int getVersion()
      Returns:
      The GLSL version number
    • isCore

      public boolean isCore()
      Returns:
      Whether to use the core or compatibility profile
    • getVersionStatement

      public String getVersionStatement()
    • setVersion

      public void setVersion(int version)
      Sets the GLSL version integer.
      Parameters:
      version - The new version
    • setCore

      public void setCore(boolean core)
      Sets whether to use the core or compatibility profile.
      Parameters:
      core - Whether to use "core"
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object