Class GlslVersionStatement
java.lang.Object
io.github.ocelot.glslprocessor.api.grammar.GlslVersionStatement
Represents the version statement for a GLSL shader source.
- Since:
- 1.0.0
-
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
-
GlslVersionStatement
public GlslVersionStatement() -
GlslVersionStatement
public GlslVersionStatement(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
- Returns:
- The string representation of this version
-
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
-