Package foundry.veil.impl.glsl.grammar
Class GlslVersion
java.lang.Object
foundry.veil.impl.glsl.grammar.GlslVersion
Represents the version statement for a GLSL shader source.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintinthashCode()booleanisCore()voidsetCore(boolean core) Sets whether to use the core or compatibility profile.voidsetVersion(int version) Sets the GLSL version integer.toString()
-
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
-
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
-
hashCode
public int hashCode() -
toString
-