class WebGLRendererOptions extends Object
WebGL Renderer Options
- Annotations
- @RawJSType() @ScalaJSDefined()
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WebGLRendererOptions
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
WebGLRendererOptions(view: UndefOr[HTMLCanvasElement] = js.undefined, transparent: UndefOr[Boolean] = js.undefined, autoResize: UndefOr[Boolean] = js.undefined, antialias: UndefOr[Boolean] = js.undefined, forceFXAA: UndefOr[Boolean] = js.undefined, resolution: UndefOr[Resolution] = js.undefined, clearBeforeRender: UndefOr[Boolean] = js.undefined, preserveDrawingBuffer: UndefOr[Boolean] = js.undefined)
- view
the canvas to use as a view, optional
- transparent
If the render view is transparent, default false
- autoResize
If the render view is automatically resized, default false
- antialias
sets antialias. If not available natively then FXAA antialiasing is used
- forceFXAA
forces FXAA antialiasing to be used over native. FXAA is faster, but may not always lok as great
- resolution
the resolution of the renderer retina would be 2
- clearBeforeRender
This sets if the CanvasRenderer will clear the canvas or not before the new render pass. If you wish to set this to false, you must set preserveDrawingBuffer to true.
- preserveDrawingBuffer
enables drawing buffer preservation, enable this if you need to call toDataUrl on the webgl context.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var antialias: UndefOr[Boolean]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- var autoResize: UndefOr[Boolean]
- var clearBeforeRender: UndefOr[Boolean]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- var forceFXAA: UndefOr[Boolean]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- var preserveDrawingBuffer: UndefOr[Boolean]
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- var resolution: UndefOr[Resolution]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- var transparent: UndefOr[Boolean]
-
def
valueOf(): Any
- Definition Classes
- Object
- var view: UndefOr[HTMLCanvasElement]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )