
org.treblereel.gwt.three4g.renderers.webgl.WebGLProgram Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of three4g Show documentation
Show all versions of three4g Show documentation
Three.js JsInterop based library for GWT
package org.treblereel.gwt.three4g.renderers.webgl;
import jsinterop.annotations.JsConstructor;
import jsinterop.annotations.JsType;
import org.treblereel.gwt.three4g.core.JsObject;
import org.treblereel.gwt.three4g.materials.Material;
import org.treblereel.gwt.three4g.renderers.WebGLRenderer;
import org.treblereel.gwt.three4g.renderers.parameters.WebGLRendererParameters;
/**
* @author Dmitrii Tikhomirov
* Created by treblereel on 4/12/18.
*/
@JsType(isNative = true, namespace = "THREE")
public class WebGLProgram {
public String id;
public String code;
public int usedTimes;
public Object program;
public WebGLShader vertexShader;
public WebGLShader fragmentShader;
@JsConstructor
public WebGLProgram(WebGLRenderer renderer, Object code, Material material, WebGLRendererParameters parameters) {
}
/**
* Returns a name-value mapping of all active uniform locations.
*
* @return JsPropertyMap
*/
public native JsObject getUniforms();
/**
* Returns a name-value mapping of all active vertex attribute locations.
*
* @return get all attrs
*/
public native JsObject getAttributes();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy