Properties

The WebGL property reference documentation.

In this section

TopicDescription

alpha

Gets or sets whether the drawing buffer has an alpha channel for alpha compositing and operations.

antialias

Get or set the antialias state on a WebGL rendering context.

canvas

Reference to the canvas object that the associated WebGLRenderingContext.

depth

Gets or sets whether the drawing buffer has a depth buffer. Returns false if no depth buffer exists.

drawingBufferHeight

Represents the actual height of the drawing buffer.

drawingBufferWidth

Represents the actual width of the drawing buffer.

name

Represents the name of the data variable requested with a getActiveUniform or getActiveAttrib call.

precision

Represents the precision in bits for a given data type.

premultipliedAlpha

Gets or sets whether the colors in the drawing buffer are premultiplied alpha values. This property is ignored if the alpha property is false.

preserveDrawingBuffer

Sets or gets whether the drawing buffer's is cleared once content is presented.

rangeMax

Gets the maximum positive value in log base 2 that can be represented by a type.

rangeMin

Returns the base 2 log of the absolute value of the minimum value that can be represented.

size

Represents the size of the data returned by getActiveUniform or getActiveAttrib calls.

statusMessage

Contains additional information about the event, or an empty string if no information exists.

type

Represents the type of data returned by a getActiveUniform or getActiveAttrib call.

 

 

 

Show:
© 2014 Microsoft