com.github.moaxcp.x11.protocol.glx.Rm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of x11-protocol-glx Show documentation
Show all versions of x11-protocol-glx Show documentation
An implementation of the x11 glx protocol in java
The newest version!
package com.github.moaxcp.x11.protocol.glx;
import com.github.moaxcp.x11.protocol.IntValue;
import java.util.HashMap;
import java.util.Map;
public enum Rm implements IntValue {
GL_RENDER(7168),
GL_FEEDBACK(7169),
GL_SELECT(7170);
static final Map byCode = new HashMap<>();
static {
for(Rm e : values()) {
byCode.put(e.value, e);
}
}
private int value;
Rm(int value) {
this.value = value;
}
@Override
public int getValue() {
return value;
}
public static Rm getByCode(int code) {
return byCode.get(code);
}
}