Back to Content

WebGLObject

files/en-us/web/api/webglobject/index.md

latest1.2 KB
Original Source

{{APIRef("WebGL")}}{{SeeCompatTable}}{{AvailableInWorkers}}

The WebGLObject is part of the WebGL API and is the parent interface for all WebGL objects.

This object has no public properties or methods on its own.

If the WebGL context is lost, the internal invalidated flag of all WebGLObject instances is set to true.

Objects inheriting from WebGLObject

WebGL 1:

  • {{domxref("WebGLBuffer")}}
  • {{domxref("WebGLFramebuffer")}}
  • {{domxref("WebGLProgram")}}
  • {{domxref("WebGLRenderbuffer")}}
  • {{domxref("WebGLShader")}}
  • {{domxref("WebGLTexture")}}

WebGL 2:

  • {{domxref("WebGLQuery")}} (and WebGLTimerQueryEXT)
  • {{domxref("WebGLSampler")}}
  • {{domxref("WebGLSync")}}
  • {{domxref("WebGLTransformFeedback")}}
  • {{domxref("WebGLVertexArrayObject")}} (and WebGLVertexArrayObjectOES)

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also