com.github.xpenatan.gdx.backends.teavm.gl.WebGLContextAttributesWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backend-teavm Show documentation
Show all versions of backend-teavm Show documentation
Tool to generate libgdx to javascript using teaVM
package com.github.xpenatan.gdx.backends.teavm.gl;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty;
/**
* @author xpenatan
*/
public abstract class WebGLContextAttributesWrapper implements JSObject {
@JSProperty
public abstract boolean isAlpha();
@JSProperty
public abstract void setAlpha(boolean alpha);
@JSProperty
public abstract boolean isDepth();
@JSProperty
public abstract void setDepth(boolean depth);
@JSProperty
public abstract boolean isScencil();
@JSProperty
public abstract void setStencil(boolean stencil);
@JSProperty
public abstract boolean isAntialias();
@JSProperty
public abstract void setAntialias(boolean antialias);
@JSProperty
public abstract boolean isPremultipliedAlpha();
@JSProperty
public abstract void setPremultipliedAlpha(boolean premultipliedAlpha);
@JSProperty
public abstract boolean isPreserveDrawingBuffer();
@JSProperty
public abstract void setPreserveDrawingBuffer(boolean preserveDrawingBuffer);
@JSProperty
public abstract void setPowerPreference(String powerPreference);
@JSBody(script = "return {};")
public static native WebGLContextAttributesWrapper create();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy