-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 33 additions & 14 deletions
47
...rc/main/java/com/github/xpenatan/gdx/backends/teavm/gl/WebGLContextAttributesWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,52 @@ | ||
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 interface WebGLContextAttributesWrapper extends JSObject { | ||
// WebGLContextAttributes | ||
boolean getAlpha(); | ||
public abstract class WebGLContextAttributesWrapper implements JSObject { | ||
@JSProperty | ||
public abstract boolean isAlpha(); | ||
|
||
void setAlpha(boolean alpha); | ||
@JSProperty | ||
public abstract void setAlpha(boolean alpha); | ||
|
||
boolean getDepth(); | ||
@JSProperty | ||
public abstract boolean isDepth(); | ||
|
||
void setDepth(boolean depth); | ||
@JSProperty | ||
public abstract void setDepth(boolean depth); | ||
|
||
boolean getStencil(); | ||
@JSProperty | ||
public abstract boolean isScencil(); | ||
|
||
void setStencil(boolean stencil); | ||
@JSProperty | ||
public abstract void setStencil(boolean stencil); | ||
|
||
boolean getAntialias(); | ||
@JSProperty | ||
public abstract boolean isAntialias(); | ||
|
||
void setAntialias(boolean antialias); | ||
@JSProperty | ||
public abstract void setAntialias(boolean antialias); | ||
|
||
boolean getPremultipliedAlpha(); | ||
@JSProperty | ||
public abstract boolean isPremultipliedAlpha(); | ||
|
||
void setPremultipliedAlpha(boolean premultipliedAlpha); | ||
@JSProperty | ||
public abstract void setPremultipliedAlpha(boolean premultipliedAlpha); | ||
|
||
boolean getPreserveDrawingBuffer(); | ||
@JSProperty | ||
public abstract boolean isPreserveDrawingBuffer(); | ||
|
||
void setPreserveDrawingBuffer(boolean preserveDrawingBuffer); | ||
@JSProperty | ||
public abstract void setPreserveDrawingBuffer(boolean preserveDrawingBuffer); | ||
|
||
@JSProperty | ||
public abstract void setPowerPreference(String powerPreference); | ||
|
||
@JSBody(script = "return {};") | ||
public static native WebGLContextAttributesWrapper create(); | ||
} |