Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "canvas"

Index

Functions

Object literals

Functions

Const getExtensions

  • getExtensions<K>(gl: WebGLRenderingContext, ids: K[], required?: boolean): Pick<WebGLExtensionMap, K>

Const glCanvas

  • glCanvas(opts?: Partial<WeblGLCanvasOpts>): { canvas: HTMLCanvasElement; ext: Pick<WebGLExtensionMap, "ANGLE_instanced_arrays" | "EXT_blend_minmax" | "EXT_color_buffer_float" | "EXT_frag_depth" | "EXT_shader_texture_lod" | "EXT_sRGB" | "EXT_texture_filter_anisotropic" | "OES_element_index_uint" | "OES_standard_derivatives" | "OES_texture_float_linear" | "OES_texture_float" | "OES_texture_half_float_linear" | "OES_texture_half_float" | "OES_vertex_array_object" | "WEBGL_color_buffer_float" | "WEBGL_compressed_texture_astc" | "WEBGL_compressed_texture_s3tc_srgb" | "WEBGL_compressed_texture_s3tc" | "WEBGL_debug_renderer_info" | "WEBGL_debug_shaders" | "WEBGL_depth_texture" | "WEBGL_draw_buffers" | "WEBGL_lose_context">; gl: WebGLRenderingContext }
  • Parameters

    Returns { canvas: HTMLCanvasElement; ext: Pick<WebGLExtensionMap, "ANGLE_instanced_arrays" | "EXT_blend_minmax" | "EXT_color_buffer_float" | "EXT_frag_depth" | "EXT_shader_texture_lod" | "EXT_sRGB" | "EXT_texture_filter_anisotropic" | "OES_element_index_uint" | "OES_standard_derivatives" | "OES_texture_float_linear" | "OES_texture_float" | "OES_texture_half_float_linear" | "OES_texture_half_float" | "OES_vertex_array_object" | "WEBGL_color_buffer_float" | "WEBGL_compressed_texture_astc" | "WEBGL_compressed_texture_s3tc_srgb" | "WEBGL_compressed_texture_s3tc" | "WEBGL_debug_renderer_info" | "WEBGL_debug_shaders" | "WEBGL_depth_texture" | "WEBGL_draw_buffers" | "WEBGL_lose_context">; gl: WebGLRenderingContext }

    • canvas: HTMLCanvasElement
    • ext: Pick<WebGLExtensionMap, "ANGLE_instanced_arrays" | "EXT_blend_minmax" | "EXT_color_buffer_float" | "EXT_frag_depth" | "EXT_shader_texture_lod" | "EXT_sRGB" | "EXT_texture_filter_anisotropic" | "OES_element_index_uint" | "OES_standard_derivatives" | "OES_texture_float_linear" | "OES_texture_float" | "OES_texture_half_float_linear" | "OES_texture_half_float" | "OES_vertex_array_object" | "WEBGL_color_buffer_float" | "WEBGL_compressed_texture_astc" | "WEBGL_compressed_texture_s3tc_srgb" | "WEBGL_compressed_texture_s3tc" | "WEBGL_debug_renderer_info" | "WEBGL_debug_shaders" | "WEBGL_depth_texture" | "WEBGL_draw_buffers" | "WEBGL_lose_context">
    • gl: WebGLRenderingContext

Object literals

Const defaultOpts

defaultOpts: object

alpha

alpha: true = true

antialias

antialias: true = true

depth

depth: true = true

premultipliedAlpha

premultipliedAlpha: true = true

preserveDrawingBuffer

preserveDrawingBuffer: false = false

stencil

stencil: false = false

Generated using TypeDoc