Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
158418d9
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
158418d9
编写于
2月 15, 2022
作者:
Y
yexiandong
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add webgl module apis docs
Signed-off-by:
N
yexiandong
<
yexiandong@huawei.com
>
上级
ef3f6c15
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
1199 addition
and
0 deletion
+1199
-0
zh-cn/application-dev/reference/apis/Readme-CN.md
zh-cn/application-dev/reference/apis/Readme-CN.md
+2
-0
zh-cn/application-dev/reference/apis/js-apis-webgl.md
zh-cn/application-dev/reference/apis/js-apis-webgl.md
+696
-0
zh-cn/application-dev/reference/apis/js-apis-webgl2.md
zh-cn/application-dev/reference/apis/js-apis-webgl2.md
+501
-0
未找到文件。
zh-cn/application-dev/reference/apis/Readme-CN.md
浏览文件 @
158418d9
...
...
@@ -72,6 +72,8 @@
-
[
性能打点
](
js-apis-bytrace.md
)
-
[
故障日志获取
](
js-apis-faultLogger.md
)
-
[
日志打印
](
js-apis-hilog.md
)
-
[
WebGL
](
js-apis-webgl.md
)
-
[
WebGL2
](
js-apis-webgl2.md
)
-
语言基础类库
-
[
获取进程相关的信息
](
js-apis-process.md
)
-
[
URL字符串解析
](
js-apis-url.md
)
...
...
zh-cn/application-dev/reference/apis/js-apis-webgl.md
0 → 100644
浏览文件 @
158418d9
# WebGL
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
WebGL标准图形API,对应OpenGL ES 2.0特性集。更多信息请参考
[
WebgGL™标准
](
https://www.khronos.org/registry/webgl/specs/latest/1.0/
)
。
## 导入模块
```
import webgl from 'ohos.webglnapi'
```
## 系统能力
SystemCapability.Graphic.Graphic2D.WebGL
## 调用方式
```
// 获取canvas组件实例
const el = this.$refs.canvas
// 从canvas组件实例获取WebGL上下文
const gl = el.getContext('webgl');
// 调用WebGL API
gl.clearColor(0.0, 0.0, 0.0, 1.0);
gl.flush();
```
## GLenum
| 名称 | 类型 |
| -------- | -------- |
| GLenum | number |
## GLboolean
| 名称 | 类型 |
| -------- | -------- |
| GLboolean | boolean |
## GLbitfield
| 名称 | 类型 |
| -------- | -------- |
| GLbitfield | number |
## GLbyte
| 名称 | 类型 |
| -------- | -------- |
| GLbyte | number |
## GLshort
| 名称 | 类型 |
| -------- | -------- |
| GLshort | number |
## GLint
| 名称 | 类型 |
| -------- | -------- |
| GLint | number |
## GLsizei
| 名称 | 类型 |
| -------- | -------- |
| GLsizei | number |
## GLintptr
| 名称 | 类型 |
| -------- | -------- |
| GLintptr | number |
## GLsizeiptr
| 名称 | 类型 |
| -------- | -------- |
| GLsizeiptr | number |
## GLubyte
| 名称 | 类型 |
| -------- | -------- |
| GLubyte | number |
## GLushort
| 名称 | 类型 |
| -------- | -------- |
| GLushort | number |
## GLuint
| 名称 | 类型 |
| -------- | -------- |
| GLuint | number |
## GLfloat
| 名称 | 类型 |
| -------- | -------- |
| GLfloat | number |
## GLclampf
| 名称 | 类型 |
| -------- | -------- |
| GLclampf | number |
## TexImageSource
| 名称 | 类型 |
| -------- | -------- |
| TexImageSource | ImageData |
## Float32List
| 名称 | 类型 |
| -------- | -------- |
| Float32List | array |
## Int32List
| 名称 | 类型 |
| -------- | -------- |
| Int32List | array |
## WebGLPowerPreference
| 名称 | 类型 |
| -------- | -------- |
| WebGLPowerPreference | string |
## webgl.WebGLContextAttributes
WebGLContextAttributes
| 名称 | 参数类型 | 必填 |
| -------- | -------- | -------- |
| alpha | boolean | 否 |
| depth | boolean | 否 |
| stencil | boolean | 否 |
| antialias | boolean | 否 |
| premultipliedAlpha | boolean | 否 |
| preserveDrawingBuffer | boolean | 否 |
| powerPreference | WebGLPowerPreference | 否 |
| failIfMajorPerformanceCaveat | boolean | 否 |
| desynchronized | boolean | 否 |
## webgl.WebGLBuffer
WebGLBuffer
## webgl.WebGLFrameBuffer
WebGLFrameBuffer
## webgl.WebGLProgram
WebGLProgram
## webgl.WebGLRenderbuffer
WebGLRenderbuffer
## webgl.WebGLShader
WebGLShader
## webgl.WebGLTexture
WebGLTexture
## webgl.WebGLUniformLocation
WebGLUniformLocation
## webgl.WebGLActiveInfo
WebGLActiveInfo
| 名称 | 参数类型 | 必填 |
| -------- | -------- | -------- |
| size |
[
GLint
](
#glint
)
| 是 |
| type |
[
GLenum
](
#glenum
)
| 是 |
| name | string | 是 |
## webgl.WebGLShaderPrecisionFormat
WebGLShaderPrecisionFormat
| 名称 | 参数类型 | 必填 |
| -------- | -------- | -------- |
| rangeMin |
[
GLint
](
#glint
)
| 是 |
| rangeMax |
[
GLint
](
#glint
)
| 是 |
| precision |
[
GLint
](
#glint
)
| 是 |
## webgl.WebGLRenderingContextBase
WebGLRenderingContextBase
### 属性
| 名称 | 参数类型 | 必填 |
| -------- | -------- | -------- |
| DEPTH_BUFFER_BIT |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_BUFFER_BIT |
[
GLenum
](
#glenum
)
| 是 |
| COLOR_BUFFER_BIT |
[
GLenum
](
#glenum
)
| 是 |
| POINTS |
[
GLenum
](
#glenum
)
| 是 |
| LINES |
[
GLenum
](
#glenum
)
| 是 |
| LINE_LOOP |
[
GLenum
](
#glenum
)
| 是 |
| LINE_STRIP |
[
GLenum
](
#glenum
)
| 是 |
| TRIANGLES |
[
GLenum
](
#glenum
)
| 是 |
| TRIANGLE_STRIP |
[
GLenum
](
#glenum
)
| 是 |
| TRIANGLE_FAN |
[
GLenum
](
#glenum
)
| 是 |
| ZERO |
[
GLenum
](
#glenum
)
| 是 |
| ONE |
[
GLenum
](
#glenum
)
| 是 |
| SRC_COLOR |
[
GLenum
](
#glenum
)
| 是 |
| ONE_MINUS_SRC_COLOR |
[
GLenum
](
#glenum
)
| 是 |
| SRC_ALPHA |
[
GLenum
](
#glenum
)
| 是 |
| ONE_MINUS_SRC_ALPHA |
[
GLenum
](
#glenum
)
| 是 |
| DST_ALPHA |
[
GLenum
](
#glenum
)
| 是 |
| ONE_MINUS_DST_ALPHA |
[
GLenum
](
#glenum
)
| 是 |
| DST_COLOR |
[
GLenum
](
#glenum
)
| 是 |
| ONE_MINUS_DST_COLOR |
[
GLenum
](
#glenum
)
| 是 |
| SRC_ALPHA_SATURATE |
[
GLenum
](
#glenum
)
| 是 |
| FUNC_ADD |
[
GLenum
](
#glenum
)
| 是 |
| BLEND_EQUATION |
[
GLenum
](
#glenum
)
| 是 |
| BLEND_EQUATION_RGB |
[
GLenum
](
#glenum
)
| 是 |
| BLEND_EQUATION_ALPHA |
[
GLenum
](
#glenum
)
| 是 |
| FUNC_SUBTRACT |
[
GLenum
](
#glenum
)
| 是 |
| FUNC_REVERSE_SUBTRACT |
[
GLenum
](
#glenum
)
| 是 |
| BLEND_DST_RGB |
[
GLenum
](
#glenum
)
| 是 |
| BLEND_SRC_RGB |
[
GLenum
](
#glenum
)
| 是 |
| BLEND_DST_ALPHA |
[
GLenum
](
#glenum
)
| 是 |
| BLEND_SRC_ALPHA |
[
GLenum
](
#glenum
)
| 是 |
| CONSTANT_COLOR |
[
GLenum
](
#glenum
)
| 是 |
| ONE_MINUS_CONSTANT_COLOR |
[
GLenum
](
#glenum
)
| 是 |
| CONSTANT_ALPHA |
[
GLenum
](
#glenum
)
| 是 |
| ONE_MINUS_CONSTANT_ALPHA |
[
GLenum
](
#glenum
)
| 是 |
| BLEND_COLOR |
[
GLenum
](
#glenum
)
| 是 |
| ARRAY_BUFFER |
[
GLenum
](
#glenum
)
| 是 |
| ELEMENT_ARRAY_BUFFER |
[
GLenum
](
#glenum
)
| 是 |
| ARRAY_BUFFER_BINDING |
[
GLenum
](
#glenum
)
| 是 |
| ELEMENT_ARRAY_BUFFER_BINDING |
[
GLenum
](
#glenum
)
| 是 |
| STREAM_DRAW |
[
GLenum
](
#glenum
)
| 是 |
| STATIC_DRAW |
[
GLenum
](
#glenum
)
| 是 |
| DYNAMIC_DRAW |
[
GLenum
](
#glenum
)
| 是 |
| BUFFER_SIZE |
[
GLenum
](
#glenum
)
| 是 |
| BUFFER_USAGE |
[
GLenum
](
#glenum
)
| 是 |
| CURRENT_VERTEX_ATTRIB |
[
GLenum
](
#glenum
)
| 是 |
| FRONT |
[
GLenum
](
#glenum
)
| 是 |
| BACK |
[
GLenum
](
#glenum
)
| 是 |
| FRONT_AND_BACK |
[
GLenum
](
#glenum
)
| 是 |
| CULL_FACE |
[
GLenum
](
#glenum
)
| 是 |
| BLEND |
[
GLenum
](
#glenum
)
| 是 |
| DITHER |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_TEST |
[
GLenum
](
#glenum
)
| 是 |
| DEPTH_TEST |
[
GLenum
](
#glenum
)
| 是 |
| SCISSOR_TEST |
[
GLenum
](
#glenum
)
| 是 |
| POLYGON_OFFSET_FILL |
[
GLenum
](
#glenum
)
| 是 |
| SAMPLE_ALPHA_TO_COVERAGE |
[
GLenum
](
#glenum
)
| 是 |
| SAMPLE_COVERAGE |
[
GLenum
](
#glenum
)
| 是 |
| NO_ERROR |
[
GLenum
](
#glenum
)
| 是 |
| INVALID_ENUM |
[
GLenum
](
#glenum
)
| 是 |
| INVALID_VALUE |
[
GLenum
](
#glenum
)
| 是 |
| INVALID_OPERATION |
[
GLenum
](
#glenum
)
| 是 |
| OUT_OF_MEMORY |
[
GLenum
](
#glenum
)
| 是 |
| CW |
[
GLenum
](
#glenum
)
| 是 |
| CCW |
[
GLenum
](
#glenum
)
| 是 |
| ALIASED_POINT_SIZE_RANGE |
[
GLenum
](
#glenum
)
| 是 |
| ALIASED_LINE_WIDTH_RANGE |
[
GLenum
](
#glenum
)
| 是 |
| CULL_FACE_MODE |
[
GLenum
](
#glenum
)
| 是 |
| FRONT_FACE |
[
GLenum
](
#glenum
)
| 是 |
| DEPTH_RANGE |
[
GLenum
](
#glenum
)
| 是 |
| DEPTH_WRITEMASK |
[
GLenum
](
#glenum
)
| 是 |
| DEPTH_CLEAR_VALUE |
[
GLenum
](
#glenum
)
| 是 |
| DEPTH_FUNC |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_CLEAR_VALUE |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_FUNC |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_FAIL |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_PASS_DEPTH_FAIL |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_PASS_DEPTH_PASS |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_REF |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_VALUE_MASK |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_WRITEMASK |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_BACK_FUNC |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_BACK_FAIL |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_BACK_PASS_DEPTH_FAIL |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_BACK_PASS_DEPTH_PASS |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_BACK_REF |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_BACK_VALUE_MASK |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_BACK_WRITEMASK |
[
GLenum
](
#glenum
)
| 是 |
| VIEWPORT |
[
GLenum
](
#glenum
)
| 是 |
| SCISSOR_BOX |
[
GLenum
](
#glenum
)
| 是 |
| COLOR_CLEAR_VALUE |
[
GLenum
](
#glenum
)
| 是 |
| COLOR_WRITEMASK |
[
GLenum
](
#glenum
)
| 是 |
| UNPACK_ALIGNMENT |
[
GLenum
](
#glenum
)
| 是 |
| PACK_ALIGNMENT |
[
GLenum
](
#glenum
)
| 是 |
| MAX_TEXTURE_SIZE |
[
GLenum
](
#glenum
)
| 是 |
| MAX_VIEWPORT_DIMS |
[
GLenum
](
#glenum
)
| 是 |
| SUBPIXEL_BITS |
[
GLenum
](
#glenum
)
| 是 |
| RED_BITS |
[
GLenum
](
#glenum
)
| 是 |
| GREEN_BITS |
[
GLenum
](
#glenum
)
| 是 |
| BLUE_BITS |
[
GLenum
](
#glenum
)
| 是 |
| ALPHA_BITS |
[
GLenum
](
#glenum
)
| 是 |
| DEPTH_BITS |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_BITS |
[
GLenum
](
#glenum
)
| 是 |
| POLYGON_OFFSET_UNITS |
[
GLenum
](
#glenum
)
| 是 |
| POLYGON_OFFSET_FACTOR |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE_BINDING_2D |
[
GLenum
](
#glenum
)
| 是 |
| SAMPLE_BUFFERS |
[
GLenum
](
#glenum
)
| 是 |
| SAMPLES |
[
GLenum
](
#glenum
)
| 是 |
| SAMPLE_COVERAGE_VALUE |
[
GLenum
](
#glenum
)
| 是 |
| SAMPLE_COVERAGE_INVERT |
[
GLenum
](
#glenum
)
| 是 |
| COMPRESSED_TEXTURE_FORMATS |
[
GLenum
](
#glenum
)
| 是 |
| DONT_CARE |
[
GLenum
](
#glenum
)
| 是 |
| FASTEST |
[
GLenum
](
#glenum
)
| 是 |
| NICEST |
[
GLenum
](
#glenum
)
| 是 |
| GENERATE_MIPMAP_HINT |
[
GLenum
](
#glenum
)
| 是 |
| BYTE |
[
GLenum
](
#glenum
)
| 是 |
| UNSIGNED_BYTE |
[
GLenum
](
#glenum
)
| 是 |
| SHORT |
[
GLenum
](
#glenum
)
| 是 |
| UNSIGNED_SHORT |
[
GLenum
](
#glenum
)
| 是 |
| INT |
[
GLenum
](
#glenum
)
| 是 |
| UNSIGNED_INT |
[
GLenum
](
#glenum
)
| 是 |
| FLOAT |
[
GLenum
](
#glenum
)
| 是 |
| DEPTH_COMPONENT |
[
GLenum
](
#glenum
)
| 是 |
| ALPHA |
[
GLenum
](
#glenum
)
| 是 |
| RGB |
[
GLenum
](
#glenum
)
| 是 |
| RGBA |
[
GLenum
](
#glenum
)
| 是 |
| LUMINANCE |
[
GLenum
](
#glenum
)
| 是 |
| LUMINANCE_ALPHA |
[
GLenum
](
#glenum
)
| 是 |
| UNSIGNED_SHORT_4_4_4_4 |
[
GLenum
](
#glenum
)
| 是 |
| UNSIGNED_SHORT_5_5_5_1 |
[
GLenum
](
#glenum
)
| 是 |
| UNSIGNED_SHORT_5_6_5 |
[
GLenum
](
#glenum
)
| 是 |
| FRAGMENT_SHADER |
[
GLenum
](
#glenum
)
| 是 |
| VERTEX_SHADER |
[
GLenum
](
#glenum
)
| 是 |
| MAX_VERTEX_ATTRIBS |
[
GLenum
](
#glenum
)
| 是 |
| MAX_VERTEX_UNIFORM_VECTORS |
[
GLenum
](
#glenum
)
| 是 |
| MAX_VARYING_VECTORS |
[
GLenum
](
#glenum
)
| 是 |
| MAX_COMBINED_TEXTURE_IMAGE_UNITS |
[
GLenum
](
#glenum
)
| 是 |
| MAX_VERTEX_TEXTURE_IMAGE_UNITS |
[
GLenum
](
#glenum
)
| 是 |
| MAX_TEXTURE_IMAGE_UNITS |
[
GLenum
](
#glenum
)
| 是 |
| MAX_FRAGMENT_UNIFORM_VECTORS |
[
GLenum
](
#glenum
)
| 是 |
| SHADER_TYPE |
[
GLenum
](
#glenum
)
| 是 |
| DELETE_STATUS |
[
GLenum
](
#glenum
)
| 是 |
| LINK_STATUS |
[
GLenum
](
#glenum
)
| 是 |
| VALIDATE_STATUS |
[
GLenum
](
#glenum
)
| 是 |
| ATTACHED_SHADERS |
[
GLenum
](
#glenum
)
| 是 |
| ACTIVE_UNIFORMS |
[
GLenum
](
#glenum
)
| 是 |
| ACTIVE_ATTRIBUTES |
[
GLenum
](
#glenum
)
| 是 |
| SHADING_LANGUAGE_VERSION |
[
GLenum
](
#glenum
)
| 是 |
| CURRENT_PROGRAM |
[
GLenum
](
#glenum
)
| 是 |
| NEVER |
[
GLenum
](
#glenum
)
| 是 |
| LESS |
[
GLenum
](
#glenum
)
| 是 |
| EQUAL |
[
GLenum
](
#glenum
)
| 是 |
| LEQUAL |
[
GLenum
](
#glenum
)
| 是 |
| GREATER |
[
GLenum
](
#glenum
)
| 是 |
| NOTEQUAL |
[
GLenum
](
#glenum
)
| 是 |
| GEQUAL |
[
GLenum
](
#glenum
)
| 是 |
| ALWAYS |
[
GLenum
](
#glenum
)
| 是 |
| KEEP |
[
GLenum
](
#glenum
)
| 是 |
| REPLACE |
[
GLenum
](
#glenum
)
| 是 |
| INCR |
[
GLenum
](
#glenum
)
| 是 |
| DECR |
[
GLenum
](
#glenum
)
| 是 |
| INVERT |
[
GLenum
](
#glenum
)
| 是 |
| INCR_WRAP |
[
GLenum
](
#glenum
)
| 是 |
| DECR_WRAP |
[
GLenum
](
#glenum
)
| 是 |
| VENDOR |
[
GLenum
](
#glenum
)
| 是 |
| RENDERER |
[
GLenum
](
#glenum
)
| 是 |
| VERSION |
[
GLenum
](
#glenum
)
| 是 |
| NEAREST |
[
GLenum
](
#glenum
)
| 是 |
| LINEAR |
[
GLenum
](
#glenum
)
| 是 |
| NEAREST_MIPMAP_NEAREST |
[
GLenum
](
#glenum
)
| 是 |
| LINEAR_MIPMAP_NEAREST |
[
GLenum
](
#glenum
)
| 是 |
| NEAREST_MIPMAP_LINEAR |
[
GLenum
](
#glenum
)
| 是 |
| LINEAR_MIPMAP_LINEAR |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE_MAG_FILTER |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE_MIN_FILTER |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE_WRAP_S |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE_WRAP_T |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE_2D |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE_CUBE_MAP |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE_BINDING_CUBE_MAP |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE_CUBE_MAP_POSITIVE_X |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE_CUBE_MAP_NEGATIVE_X |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE_CUBE_MAP_POSITIVE_Y |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE_CUBE_MAP_NEGATIVE_Y |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE_CUBE_MAP_POSITIVE_Z |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE_CUBE_MAP_NEGATIVE_Z |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE0 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE1 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE2 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE3 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE4 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE5 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE6 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE7 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE8 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE9 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE10 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE11 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE12 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE13 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE14 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE15 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE16 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE17 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE18 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE19 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE20 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE21 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE22 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE23 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE24 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE25 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE26 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE27 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE28 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE29 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE30 |
[
GLenum
](
#glenum
)
| 是 |
| TEXTURE31 |
[
GLenum
](
#glenum
)
| 是 |
| ACTIVE_TEXTURE |
[
GLenum
](
#glenum
)
| 是 |
| REPEAT |
[
GLenum
](
#glenum
)
| 是 |
| CLAMP_TO_EDGE |
[
GLenum
](
#glenum
)
| 是 |
| MIRRORED_REPEAT |
[
GLenum
](
#glenum
)
| 是 |
| FLOAT_VEC2 |
[
GLenum
](
#glenum
)
| 是 |
| FLOAT_VEC3 |
[
GLenum
](
#glenum
)
| 是 |
| FLOAT_VEC4 |
[
GLenum
](
#glenum
)
| 是 |
| INT_VEC2 |
[
GLenum
](
#glenum
)
| 是 |
| INT_VEC3 |
[
GLenum
](
#glenum
)
| 是 |
| INT_VEC4 |
[
GLenum
](
#glenum
)
| 是 |
| BOOL |
[
GLenum
](
#glenum
)
| 是 |
| BOOL_VEC2 |
[
GLenum
](
#glenum
)
| 是 |
| BOOL_VEC3 |
[
GLenum
](
#glenum
)
| 是 |
| BOOL_VEC4 |
[
GLenum
](
#glenum
)
| 是 |
| FLOAT_MAT2 |
[
GLenum
](
#glenum
)
| 是 |
| FLOAT_MAT3 |
[
GLenum
](
#glenum
)
| 是 |
| FLOAT_MAT4 |
[
GLenum
](
#glenum
)
| 是 |
| SAMPLER_2D |
[
GLenum
](
#glenum
)
| 是 |
| SAMPLER_CUBE |
[
GLenum
](
#glenum
)
| 是 |
| VERTEX_ATTRIB_ARRAY_ENABLED |
[
GLenum
](
#glenum
)
| 是 |
| VERTEX_ATTRIB_ARRAY_SIZE |
[
GLenum
](
#glenum
)
| 是 |
| VERTEX_ATTRIB_ARRAY_STRIDE |
[
GLenum
](
#glenum
)
| 是 |
| VERTEX_ATTRIB_ARRAY_TYPE |
[
GLenum
](
#glenum
)
| 是 |
| VERTEX_ATTRIB_ARRAY_NORMALIZED |
[
GLenum
](
#glenum
)
| 是 |
| VERTEX_ATTRIB_ARRAY_POINTER |
[
GLenum
](
#glenum
)
| 是 |
| VERTEX_ATTRIB_ARRAY_BUFFER_BINDING |
[
GLenum
](
#glenum
)
| 是 |
| IMPLEMENTATION_COLOR_READ_TYPE |
[
GLenum
](
#glenum
)
| 是 |
| IMPLEMENTATION_COLOR_READ_FORMAT |
[
GLenum
](
#glenum
)
| 是 |
| COMPILE_STATUS |
[
GLenum
](
#glenum
)
| 是 |
| LOW_FLOAT |
[
GLenum
](
#glenum
)
| 是 |
| MEDIUM_FLOAT |
[
GLenum
](
#glenum
)
| 是 |
| HIGH_FLOAT |
[
GLenum
](
#glenum
)
| 是 |
| LOW_INT |
[
GLenum
](
#glenum
)
| 是 |
| MEDIUM_INT |
[
GLenum
](
#glenum
)
| 是 |
| HIGH_INT |
[
GLenum
](
#glenum
)
| 是 |
| FRAMEBUFFER |
[
GLenum
](
#glenum
)
| 是 |
| RENDERBUFFER |
[
GLenum
](
#glenum
)
| 是 |
| RGBA4 |
[
GLenum
](
#glenum
)
| 是 |
| RGB5_A1 |
[
GLenum
](
#glenum
)
| 是 |
| RGB565 |
[
GLenum
](
#glenum
)
| 是 |
| DEPTH_COMPONENT16 |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_INDEX8 |
[
GLenum
](
#glenum
)
| 是 |
| DEPTH_STENCIL |
[
GLenum
](
#glenum
)
| 是 |
| RENDERBUFFER_WIDTH |
[
GLenum
](
#glenum
)
| 是 |
| RENDERBUFFER_HEIGHT |
[
GLenum
](
#glenum
)
| 是 |
| RENDERBUFFER_INTERNAL_FORMAT |
[
GLenum
](
#glenum
)
| 是 |
| RENDERBUFFER_RED_SIZE |
[
GLenum
](
#glenum
)
| 是 |
| RENDERBUFFER_GREEN_SIZE |
[
GLenum
](
#glenum
)
| 是 |
| RENDERBUFFER_BLUE_SIZE |
[
GLenum
](
#glenum
)
| 是 |
| RENDERBUFFER_ALPHA_SIZE |
[
GLenum
](
#glenum
)
| 是 |
| RENDERBUFFER_DEPTH_SIZE |
[
GLenum
](
#glenum
)
| 是 |
| RENDERBUFFER_STENCIL_SIZE |
[
GLenum
](
#glenum
)
| 是 |
| FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE |
[
GLenum
](
#glenum
)
| 是 |
| FRAMEBUFFER_ATTACHMENT_OBJECT_NAME |
[
GLenum
](
#glenum
)
| 是 |
| FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL |
[
GLenum
](
#glenum
)
| 是 |
| FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE |
[
GLenum
](
#glenum
)
| 是 |
| COLOR_ATTACHMENT0 |
[
GLenum
](
#glenum
)
| 是 |
| DEPTH_ATTACHMENT |
[
GLenum
](
#glenum
)
| 是 |
| STENCIL_ATTACHMENT |
[
GLenum
](
#glenum
)
| 是 |
| DEPTH_STENCIL_ATTACHMENT |
[
GLenum
](
#glenum
)
| 是 |
| NONE |
[
GLenum
](
#glenum
)
| 是 |
| FRAMEBUFFER_COMPLETE |
[
GLenum
](
#glenum
)
| 是 |
| FRAMEBUFFER_INCOMPLETE_ATTACHMENT |
[
GLenum
](
#glenum
)
| 是 |
| FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT |
[
GLenum
](
#glenum
)
| 是 |
| FRAMEBUFFER_INCOMPLETE_DIMENSIONS |
[
GLenum
](
#glenum
)
| 是 |
| FRAMEBUFFER_UNSUPPORTED |
[
GLenum
](
#glenum
)
| 是 |
| FRAMEBUFFER_BINDING |
[
GLenum
](
#glenum
)
| 是 |
| RENDERBUFFER_BINDING |
[
GLenum
](
#glenum
)
| 是 |
| MAX_RENDERBUFFER_SIZE |
[
GLenum
](
#glenum
)
| 是 |
| INVALID_FRAMEBUFFER_OPERATION |
[
GLenum
](
#glenum
)
| 是 |
| UNPACK_FLIP_Y_WEBGL |
[
GLenum
](
#glenum
)
| 是 |
| UNPACK_PREMULTIPLY_ALPHA_WEBGL |
[
GLenum
](
#glenum
)
| 是 |
| CONTEXT_LOST_WEBGL |
[
GLenum
](
#glenum
)
| 是 |
| UNPACK_COLORSPACE_CONVERSION_WEBGL |
[
GLenum
](
#glenum
)
| 是 |
| BROWSER_DEFAULT_WEBGL |
[
GLenum
](
#glenum
)
| 是 |
| canvas | HTMLCanvasElement
\|
OffscreenCanvas | 是 |
| drawingBufferWidth |
[
GLsizei
](
#glsizei
)
| 是 |
| drawingBufferHeight |
[
GLsizei
](
#glsizei
)
| 是 |
### 方法
| 方法 | 返回值类型 |
| -------- | -------- |
| getContextAttributes() | WebGLContextAttributes
\|
null |
| isContextLost() | boolean |
| getSupportedExtensions() | string[]
\|
null |
| getExtension(name:
string) | any |
| activeTexture(texture:
GLenum) | void |
| attachShader(program:
WebGLProgram,
shader:
WebGLShader) | void |
| bindAttribLocation(program:
WebGLProgram,
index:
GLuint,
name:
string) | void |
| bindBuffer(target:
GLenum,
buffer:
WebGLBuffer
\|
null) | void |
| bindFramebuffer(target:
GLenum,
framebuffer:
WebGLFramebuffer
\|
null) | void |
| bindRenderbuffer(target:
GLenum,
renderbuffer:
WebGLRenderbuffer
\|
null) | void |
| bindTexture(target:
GLenum,
texture:
WebGLTexture
\|
null) | void |
| blendColor(red:
GLclampf,
green:
GLclampf,
blue:
GLclampf,
alpha:
GLclampf) | void |
| blendEquation(mode:
GLenum) | void |
| blendEquationSeparate(modeRGB:
GLenum,
modeAlpha:
GLenum) | void |
| blendFunc(sfactor:
GLenum,
dfactor:
GLenum) | void |
| blendFuncSeparate(srcRGB:
GLenum,
dstRGB:
GLenum,
srcAlpha:
GLenum,
dstAlpha:
GLenum) | void |
| checkFramebufferStatus(target:
GLenum) | GLenum |
| clear(mask:
GLbitfield) | void |
| clearColor(red:
GLclampf,
green:
GLclampf,
blue:
GLclampf,
alpha:
GLclampf) | void |
| clearDepth(depth:
GLclampf) | void |
| clearStencil(s:
GLint) | void |
| colorMask(red:
GLboolean,
green:
GLboolean,
blue:
GLboolean,
alpha:
GLboolean) | void |
| compileShader(shader:
WebGLShader) | void |
| copyTexImage2D(target:
GLenum,
level:
GLint,
internalformat:
GLenum,
x:
GLint,
y:
GLint,
width:
GLsizei,
height:
GLsizei,
border:
GLint) | void |
| copyTexSubImage2D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
x:
GLint,
y:
GLint,
width:
GLsizei,
height:
GLsizei) | void |
| createBuffer() | WebGLBuffer
\|
null |
| createFramebuffer() | WebGLFramebuffer
\|
null |
| createProgram() | WebGLProgram
\|
null |
| createRenderbuffer() | WebGLRenderbuffer
\|
null |
| createShader(type:
GLenum) | WebGLShader
\|
null |
| createTexture() | WebGLTexture
\|
nullvoid |
| cullFace(mode:
GLenum) | void |
| deleteBuffer(buffer:
WebGLBuffer
\|
null) | void |
| deleteFramebuffer(framebuffer:
WebGLFramebuffer
\|
null) | void |
| deleteProgram(program:
WebGLProgram
\|
null) | void |
| deleteRenderbuffer(renderbuffer:
WebGLRenderbuffer
\|
null) | void |
| deleteShader(shader:
WebGLShader
\|
null) | void |
| deleteTexture(texture:
WebGLTexture
\|
null) | void |
| depthFunc(func:
GLenum) | void |
| depthMask(flag:
GLboolean) | void |
| depthRange(zNear:
GLclampf,
zFar:
GLclampf) | void |
| detachShader(program:
WebGLProgram,
shader:
WebGLShader) | void |
| disable(cap:
GLenum) | void |
| disableVertexAttribArray(index:
GLuint) | void |
| drawArrays(mode:
GLenum,
first:
GLint,
count:
GLsizei) | void |
| drawElements(mode:
GLenum,
count:
GLsizei,
type:
GLenum,
offset:
GLintptr) | void |
| enable(cap:
GLenum) | void |
| enableVertexAttribArray(index:
GLuint) | void |
| finish() | void |
| flush() | void |
| framebufferRenderbuffer(target:
GLenum,
attachment:
GLenum,
renderbuffertarget:
GLenum,
renderbuffer:
WebGLRenderbuffer
\|
null) | void |
| framebufferTexture2D(target:
GLenum,
attachment:
GLenum,
textarget:
GLenum,
texture:
WebGLTexture
\|
null,
level:
GLint) | void |
| frontFace(mode:
GLenum) | void |
| generateMipmap(target:
GLenum) | void |
| getActiveAttrib(program:
WebGLProgram,
index:
GLuint) | WebGLActiveInfo
\|
null |
| getActiveUniform(program:
WebGLProgram,
index:
GLuint) | WebGLActiveInfo
\|
null |
| getAttachedShaders(program:
WebGLProgram) | WebGLShader[]
\|
null |
| getAttribLocation(program:
WebGLProgram,
name:
string) | GLint |
| getBufferParameter(target:
GLenum,
pname:
GLenum) | any |
| getParameter(pname:
GLenum) | any |
| getError() | GLenum |
| getFramebufferAttachmentParameter(target:
GLenum,
attachment:
GLenum,
pname:
GLenum) | any |
| getProgramParameter(program:
WebGLProgram,
pname:
GLenum) | any |
| getProgramInfoLog(program:
WebGLProgram) | string
\|
null |
| getRenderbufferParameter(target:
GLenum,
pname:
GLenum) | any |
| getShaderParameter(shader:
WebGLShader,
pname:
GLenum) | any |
| getShaderPrecisionFormat(shadertype:
GLenum,
precisiontype:
GLenum) | WebGLShaderPrecisionFormat
\|
null |
| getShaderInfoLog(shader:
WebGLShader) | string
\|
null |
| getShaderSource(shader:
WebGLShader) | string
\|
null |
| getTexParameter(target:
GLenum,
pname:
GLenum) | any |
| getUniform(program:
WebGLProgram,
location:
WebGLUniformLocation) | any |
| getUniformLocation(program:
WebGLProgram,
name:
string) | WebGLUniformLocation
\|
null |
| getVertexAttrib(index:
GLuint,
pname:
GLenum) | any |
| getVertexAttribOffset(index:
GLuint,
pname:
GLenum) | GLintptr |
| hint(target:
GLenum,
mode:
GLenum) | void |
| isBuffer(buffer:
WebGLBuffer
\|
null) | GLboolean |
| isEnabled(cap:
GLenum) | GLboolean |
| isFramebuffer(framebuffer:
WebGLFramebuffer
\|
null) | GLboolean |
| isProgram(program:
WebGLProgram
\|
null) | GLboolean |
| isRenderbuffer(renderbuffer:
WebGLRenderbuffer
\|
null) | GLboolean |
| isShader(shader:
WebGLShader
\|
null) | GLboolean |
| isTexture(texture:
WebGLTexture
\|
null) | GLboolean |
| lineWidth(width:
GLfloat) | void |
| linkProgram(program:
WebGLProgram) | void |
| pixelStorei(pname:
GLenum,
param:
GLint
\|
GLboolean) | void |
| polygonOffset(factor:
GLfloat,
units:
GLfloat) | void |
| renderbufferStorage(target:
GLenum,
internalformat:
GLenum,
width:
GLsizei,
height:
GLsizei) | void |
| sampleCoverage(value:
GLclampf,
invert:
GLboolean) | void |
| scissor(x:
GLint,
y:
GLint,
width:
GLsizei,
height:
GLsizei) | void |
| shaderSource(shader:
WebGLShader,
source:
string) | void |
| stencilFunc(func:
GLenum,
ref:
GLint,
mask:
GLuint) | void |
| stencilFuncSeparate(face:
GLenum,
func:
GLenum,
ref:
GLint,
mask:
GLuint) | void |
| stencilMask(mask:
GLuint) | void |
| stencilMaskSeparate(face:
GLenum,
mask:
GLuint) | void |
| stencilOp(fail:
GLenum,
zfail:
GLenum,
zpass:
GLenum) | void |
| stencilOpSeparate(face:
GLenum,
fail:
GLenum,
zfail:
GLenum,
zpass:
GLenum) | void |
| texParameterf(target:
GLenum,
pname:
GLenum,
param:
GLfloat) | void |
| texParameteri(target:
GLenum,
pname:
GLenum,
param:
GLint) | void |
| uniform1f(location:
WebGLUniformLocation
\|
null,
x:
GLfloat) | void |
| uniform2f(location:
WebGLUniformLocation
\|
null,
x:
GLfloat,
y:
GLfloat) | void |
| uniform3f(location:
WebGLUniformLocation
\|
null,
x:
GLfloat,
y:
GLfloat,
z:
GLfloat) | void |
| uniform4f(location:
WebGLUniformLocation
\|
null,
x:
GLfloat,
y:
GLfloat,
z:
GLfloat,
w:
GLfloat) | void |
| uniform1i(location:
WebGLUniformLocation
\|
null,
x:
GLint) | void |
| uniform2i(location:
WebGLUniformLocation
\|
null,
x:
GLint,
y:
GLint) | void |
| uniform3i(location:
WebGLUniformLocation
\|
null,
x:
GLint,
y:
GLint,
z:
GLint) | void |
| uniform4i(location:
WebGLUniformLocation
\|
null,
x:
GLint,
y:
GLint,
z:
GLint,
w:
GLint) | void |
| useProgram(program:
WebGLProgram
\|
null) | void |
| validateProgram(program:
WebGLProgram) | void |
| vertexAttrib1f(index:
GLuint,
x:
GLfloat) | void |
| vertexAttrib2f(index:
GLuint,
x:
GLfloat,
y:
GLfloat) | void |
| vertexAttrib3f(index:
GLuint,
x:
GLfloat,
y:
GLfloat,
z:
GLfloat) | void |
| vertexAttrib4f(index:
GLuint,
x:
GLfloat,
y:
GLfloat,
z:
GLfloat,
w:
GLfloat) | void |
| vertexAttrib1fv(index:
GLuint,
values:
Float32List) | void |
| vertexAttrib2fv(index:
GLuint,
values:
Float32List) | void |
| vertexAttrib3fv(index:
GLuint,
values:
Float32List) | void |
| vertexAttrib4fv(index:
GLuint,
values:
Float32List) | void |
| vertexAttribPointer(index:
GLuint,
size:
GLint,
type:
GLenum,
normalized:
GLboolean,
stride:
GLsizei,
offset:
GLintptr) | void |
| viewport(x:
GLint,
y:
GLint,
width:
GLsizei,
height:
GLsizei) | void |
## webgl.WebGLRenderingContextOverloads
WebGLRenderingContextOverloads
| 方法 | 返回值类型 |
| -------- | -------- |
| bufferData(target:
GLenum,
size:
GLsizeiptr,
usage:
GLenum) | void |
| bufferData(target:
GLenum,
data:
BufferSource
\|
null,
usage:
GLenum) | void |
| bufferSubData(target:
GLenum,
offset:
GLintptr,
data:
BufferSource) | void |
| compressedTexImage2D(target:
GLenum,
level:
GLint,
internalformat:
GLenum,
width:
GLsizei,
height:
GLsizei,
border:
GLint,
data:
ArrayBufferView) | void |
| compressedTexSubImage2D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
width:
GLsizei,
height:
GLsizei,
format:
GLenum,
data:
ArrayBufferView) | void |
| readPixels(x:
GLint,
y:
GLint,
width:
GLsizei,
height:
GLsizei,
format:
GLenum,
type:
GLenum,
pixels:
ArrayBufferView
\|
null) | void |
| texImage2D(target:
GLenum,
level:
GLint,
internalformat:
GLint,
width:
GLsizei,
height:
GLsizei,
border:
GLint,
format:
GLenum,
type:
GLenum,
pixels:
ArrayBufferView
\|
null) | void |
| texImage2D(target:
GLenum,
level:
GLint,
internalformat:
GLint,
format:
GLenum,
type:
GLenum,
source:
TexImageSource) | void |
| texSubImage2D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
width:
GLsizei,
height:
GLsizei,
format:
GLenum,
type:
GLenum,
pixels:
ArrayBufferView
\|
null) | void |
| texSubImage2D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
format:
GLenum,
type:
GLenum,
source:
TexImageSource) | void |
| uniform1fv(location:
WebGLUniformLocation
\|
null,
v:
Float32List) | void |
| uniform2fv(location:
WebGLUniformLocation
\|
null,
v:
Float32List) | void |
| uniform3fv(location:
WebGLUniformLocation
\|
null,
v:
Float32List) | void |
| uniform4fv(location:
WebGLUniformLocation
\|
null,
v:
Float32List) | void |
| uniform1iv(location:
WebGLUniformLocation
\|
null,
v:
Int32List) | void |
| uniform2iv(location:
WebGLUniformLocation
\|
null,
v:
Int32List) | void |
| uniform3iv(location:
WebGLUniformLocation
\|
null,
v:
Int32List) | void |
| uniform4iv(location:
WebGLUniformLocation
\|
null,
v:
Int32List) | void |
| uniformMatrix2fv(location:
WebGLUniformLocation
\|
null,
transpose:
GLboolean,
value:
Float32List) | void |
| uniformMatrix3fv(location:
WebGLUniformLocation
\|
null,
transpose:
GLboolean,
value:
Float32List) | void |
| uniformMatrix4fv(location:
WebGLUniformLocation
\|
null,
transpose:
GLboolean,
value:
Float32List) | void |
zh-cn/application-dev/reference/apis/js-apis-webgl2.md
0 → 100644
浏览文件 @
158418d9
# WebGL2
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
WebGL标准图形API,对应OpenGL ES 3.0特性集。更多信息请参考
[
WebgGL™标准
](
https://www.khronos.org/registry/webgl/specs/latest/2.0/
)
。
## 导入模块
```
import webgl from 'ohos.webglnapi'
```
## 系统能力
SystemCapability.Graphic.Graphic2D.WebGL2
## 调用方式
```
// 获取canvas组件实例
const el = this.$refs.canvas
// 从canvas组件实例获取WebGL上下文
const gl = el.getContext('webgl');
const gl2 = el.getContext('webgl2');
// 调用WebGL API
gl2.readBuffer(gl.COLOR_ATTACHMENT0)
```
## GLenum
| 名称 | 类型 |
| -------- | -------- |
| GLenum | number |
## Glint64
| 名称 | 类型 |
| -------- | -------- |
| Glint64 | number |
## Gluint64
| 名称 | 类型 |
| -------- | -------- |
| Gluint64 | number |
## Uint32List
| 名称 | 类型 |
| -------- | -------- |
| Uint32List | array |
## webgl.webGL2RenderingContexBase
WebGL2RenderingContexBase
### 属性
| 名称 | 参数类型 | 必填 |
| -------- | ------- | --------- |
| READ_BUFFER |
[
GLenum
](
#GLenum
)
| 是 |
| UNPACK_ROW_LENGTH |
[
GLenum
](
#GLenum
)
| 是 |
| UNPACK_SKIP_ROWS |
[
GLenum
](
#GLenum
)
| 是 |
| UNPACK_SKIP_PIXELS |
[
GLenum
](
#GLenum
)
| 是 |
| PACK_ROW_LENGTH |
[
GLenum
](
#GLenum
)
| 是 |
| PACK_SKIP_ROWS |
[
GLenum
](
#GLenum
)
| 是 |
| PACK_SKIP_PIXELS |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR |
[
GLenum
](
#GLenum
)
| 是 |
| DEPTH |
[
GLenum
](
#GLenum
)
| 是 |
| STENCIL |
[
GLenum
](
#GLenum
)
| 是 |
| RED |
[
GLenum
](
#GLenum
)
| 是 |
| RGB8 |
[
GLenum
](
#GLenum
)
| 是 |
| RGBA8 |
[
GLenum
](
#GLenum
)
| 是 |
| RGB10_A2 |
[
GLenum
](
#GLenum
)
| 是 |
| TEXTURE_BINDING_3D |
[
GLenum
](
#GLenum
)
| 是 |
| UNPACK_SKIP_IMAGES |
[
GLenum
](
#GLenum
)
| 是 |
| UNPACK_IMAGE_HEIGHT |
[
GLenum
](
#GLenum
)
| 是 |
| TEXTURE_3D |
[
GLenum
](
#GLenum
)
| 是 |
| TEXTURE_WRAP_R |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_3D_TEXTURE_SIZE |
[
GLenum
](
#GLenum
)
| 是 |
| UNSIGNED_INT_2_10_10_10_REV |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_ELEMENTS_VERTICES |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_ELEMENTS_INDICES |
[
GLenum
](
#GLenum
)
| 是 |
| TEXTURE_MIN_LOD |
[
GLenum
](
#GLenum
)
| 是 |
| TEXTURE_MAX_LOD |
[
GLenum
](
#GLenum
)
| 是 |
| TEXTURE_BASE_LEVEL |
[
GLenum
](
#GLenum
)
| 是 |
| TEXTURE_MAX_LEVEL |
[
GLenum
](
#GLenum
)
| 是 |
| MIN |
[
GLenum
](
#GLenum
)
| 是 |
| MAX |
[
GLenum
](
#GLenum
)
| 是 |
| DEPTH_COMPONENT24 |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_TEXTURE_LOD_BIAS |
[
GLenum
](
#GLenum
)
| 是 |
| TEXTURE_COMPARE_MODE |
[
GLenum
](
#GLenum
)
| 是 |
| TEXTURE_COMPARE_FUNC |
[
GLenum
](
#GLenum
)
| 是 |
| CURRENT_QUERY |
[
GLenum
](
#GLenum
)
| 是 |
| QUERY_RESULT |
[
GLenum
](
#GLenum
)
| 是 |
| QUERY_RESULT_AVAILABLE |
[
GLenum
](
#GLenum
)
| 是 |
| STREAM_READ |
[
GLenum
](
#GLenum
)
| 是 |
| STREAM_COPY |
[
GLenum
](
#GLenum
)
| 是 |
| STATIC_READ |
[
GLenum
](
#GLenum
)
| 是 |
| STATIC_COPY |
[
GLenum
](
#GLenum
)
| 是 |
| DYNAMIC_READ |
[
GLenum
](
#GLenum
)
| 是 |
| DYNAMIC_COPY |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_DRAW_BUFFERS |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER0 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER1 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER2 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER3 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER4 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER5 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER6 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER7 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER8 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER9 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER10 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER11 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER12 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER13 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER14 |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_BUFFER15 |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_FRAGMENT_UNIFORM_COMPONENTS |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_VERTEX_UNIFORM_COMPONENTS |
[
GLenum
](
#GLenum
)
| 是 |
| SAMPLER_3D |
[
GLenum
](
#GLenum
)
| 是 |
| SAMPLER_2D_SHADOW |
[
GLenum
](
#GLenum
)
| 是 |
| FRAGMENT_SHADER_DERIVATIVE_HINT |
[
GLenum
](
#GLenum
)
| 是 |
| PIXEL_PACK_BUFFER |
[
GLenum
](
#GLenum
)
| 是 |
| PIXEL_UNPACK_BUFFER |
[
GLenum
](
#GLenum
)
| 是 |
| PIXEL_PACK_BUFFER_BINDING |
[
GLenum
](
#GLenum
)
| 是 |
| PIXEL_UNPACK_BUFFER_BINDING |
[
GLenum
](
#GLenum
)
| 是 |
| FLOAT_MAT2x3 |
[
GLenum
](
#GLenum
)
| 是 |
| FLOAT_MAT2x4 |
[
GLenum
](
#GLenum
)
| 是 |
| FLOAT_MAT3x2 |
[
GLenum
](
#GLenum
)
| 是 |
| FLOAT_MAT3x4 |
[
GLenum
](
#GLenum
)
| 是 |
| FLOAT_MAT4x2 |
[
GLenum
](
#GLenum
)
| 是 |
| FLOAT_MAT4x3 |
[
GLenum
](
#GLenum
)
| 是 |
| SRGB |
[
GLenum
](
#GLenum
)
| 是 |
| SRGB8 |
[
GLenum
](
#GLenum
)
| 是 |
| SRGB8_ALPHA8 |
[
GLenum
](
#GLenum
)
| 是 |
| COMPARE_REF_TO_TEXTURE |
[
GLenum
](
#GLenum
)
| 是 |
| RGBA32F |
[
GLenum
](
#GLenum
)
| 是 |
| RGB32F |
[
GLenum
](
#GLenum
)
| 是 |
| RGBA16F |
[
GLenum
](
#GLenum
)
| 是 |
| RGB16F |
[
GLenum
](
#GLenum
)
| 是 |
| VERTEX_ATTRIB_ARRAY_INTEGER |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_ARRAY_TEXTURE_LAYERS |
[
GLenum
](
#GLenum
)
| 是 |
| MIN_PROGRAM_TEXEL_OFFSET |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_PROGRAM_TEXEL_OFFSET |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_VARYING_COMPONENTS |
[
GLenum
](
#GLenum
)
| 是 |
| TEXTURE_2D_ARRAY |
[
GLenum
](
#GLenum
)
| 是 |
| TEXTURE_BINDING_2D_ARRAY |
[
GLenum
](
#GLenum
)
| 是 |
| R11F_G11F_B10F |
[
GLenum
](
#GLenum
)
| 是 |
| UNSIGNED_INT_10F_11F_11F_REV |
[
GLenum
](
#GLenum
)
| 是 |
| RGB9_E5 |
[
GLenum
](
#GLenum
)
| 是 |
| UNSIGNED_INT_5_9_9_9_REV |
[
GLenum
](
#GLenum
)
| 是 |
| TRANSFORM_FEEDBACK_BUFFER_MODE |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS |
[
GLenum
](
#GLenum
)
| 是 |
| TRANSFORM_FEEDBACK_VARYINGS |
[
GLenum
](
#GLenum
)
| 是 |
| TRANSFORM_FEEDBACK_BUFFER_START |
[
GLenum
](
#GLenum
)
| 是 |
| TRANSFORM_FEEDBACK_BUFFER_SIZE |
[
GLenum
](
#GLenum
)
| 是 |
| TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN |
[
GLenum
](
#GLenum
)
| 是 |
| RASTERIZER_DISCARD |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS |
[
GLenum
](
#GLenum
)
| 是 |
| INTERLEAVED_ATTRIBS |
[
GLenum
](
#GLenum
)
| 是 |
| SEPARATE_ATTRIBS |
[
GLenum
](
#GLenum
)
| 是 |
| TRANSFORM_FEEDBACK_BUFFER |
[
GLenum
](
#GLenum
)
| 是 |
| TRANSFORM_FEEDBACK_BUFFER_BINDING |
[
GLenum
](
#GLenum
)
| 是 |
| RGBA32UI |
[
GLenum
](
#GLenum
)
| 是 |
| RGB32UI |
[
GLenum
](
#GLenum
)
| 是 |
| RGBA16UI |
[
GLenum
](
#GLenum
)
| 是 |
| RGB16UI |
[
GLenum
](
#GLenum
)
| 是 |
| RGBA8UI |
[
GLenum
](
#GLenum
)
| 是 |
| RGB8UI |
[
GLenum
](
#GLenum
)
| 是 |
| RGBA32I |
[
GLenum
](
#GLenum
)
| 是 |
| RGB32I |
[
GLenum
](
#GLenum
)
| 是 |
| RGBA16I |
[
GLenum
](
#GLenum
)
| 是 |
| RGB16I |
[
GLenum
](
#GLenum
)
| 是 |
| RGBA8I |
[
GLenum
](
#GLenum
)
| 是 |
| RGB8I |
[
GLenum
](
#GLenum
)
| 是 |
| RED_INTEGER |
[
GLenum
](
#GLenum
)
| 是 |
| RGB_INTEGER |
[
GLenum
](
#GLenum
)
| 是 |
| RGBA_INTEGER |
[
GLenum
](
#GLenum
)
| 是 |
| SAMPLER_2D_ARRAY |
[
GLenum
](
#GLenum
)
| 是 |
| SAMPLER_2D_ARRAY_SHADOW |
[
GLenum
](
#GLenum
)
| 是 |
| SAMPLER_CUBE_SHADOW |
[
GLenum
](
#GLenum
)
| 是 |
| UNSIGNED_INT_VEC2 |
[
GLenum
](
#GLenum
)
| 是 |
| UNSIGNED_INT_VEC3 |
[
GLenum
](
#GLenum
)
| 是 |
| UNSIGNED_INT_VEC4 |
[
GLenum
](
#GLenum
)
| 是 |
| INT_SAMPLER_2D |
[
GLenum
](
#GLenum
)
| 是 |
| INT_SAMPLER_3D |
[
GLenum
](
#GLenum
)
| 是 |
| INT_SAMPLER_CUBE |
[
GLenum
](
#GLenum
)
| 是 |
| INT_SAMPLER_2D_ARRAY |
[
GLenum
](
#GLenum
)
| 是 |
| UNSIGNED_INT_SAMPLER_2D |
[
GLenum
](
#GLenum
)
| 是 |
| UNSIGNED_INT_SAMPLER_3D |
[
GLenum
](
#GLenum
)
| 是 |
| UNSIGNED_INT_SAMPLER_CUBE |
[
GLenum
](
#GLenum
)
| 是 |
| UNSIGNED_INT_SAMPLER_2D_ARRAY |
[
GLenum
](
#GLenum
)
| 是 |
| DEPTH_COMPONENT32F |
[
GLenum
](
#GLenum
)
| 是 |
| DEPTH32F_STENCIL8 |
[
GLenum
](
#GLenum
)
| 是 |
| FLOAT_32_UNSIGNED_INT_24_8_REV |
[
GLenum
](
#GLenum
)
| 是 |
| FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING |
[
GLenum
](
#GLenum
)
| 是 |
| FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE |
[
GLenum
](
#GLenum
)
| 是 |
| FRAMEBUFFER_ATTACHMENT_RED_SIZE |
[
GLenum
](
#GLenum
)
| 是 |
| FRAMEBUFFER_ATTACHMENT_GREEN_SIZE |
[
GLenum
](
#GLenum
)
| 是 |
| FRAMEBUFFER_ATTACHMENT_BLUE_SIZE |
[
GLenum
](
#GLenum
)
| 是 |
| FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE |
[
GLenum
](
#GLenum
)
| 是 |
| FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE |
[
GLenum
](
#GLenum
)
| 是 |
| FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE |
[
GLenum
](
#GLenum
)
| 是 |
| FRAMEBUFFER_DEFAULT |
[
GLenum
](
#GLenum
)
| 是 |
| UNSIGNED_INT_24_8 |
[
GLenum
](
#GLenum
)
| 是 |
| DEPTH24_STENCIL8 |
[
GLenum
](
#GLenum
)
| 是 |
| UNSIGNED_NORMALIZED |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_FRAMEBUFFER_BINDING |
[
GLenum
](
#GLenum
)
| 是 |
| READ_FRAMEBUFFER |
[
GLenum
](
#GLenum
)
| 是 |
| DRAW_FRAMEBUFFER |
[
GLenum
](
#GLenum
)
| 是 |
| READ_FRAMEBUFFER_BINDING |
[
GLenum
](
#GLenum
)
| 是 |
| RENDERBUFFER_SAMPLES |
[
GLenum
](
#GLenum
)
| 是 |
| FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_COLOR_ATTACHMENTS |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT1 |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT2 |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT3 |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT4 |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT5 |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT6 |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT7 |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT8 |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT9 |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT10 |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT11 |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT12 |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT13 |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT14 |
[
GLenum
](
#GLenum
)
| 是 |
| COLOR_ATTACHMENT15 |
[
GLenum
](
#GLenum
)
| 是 |
| FRAMEBUFFER_INCOMPLETE_MULTISAMPLE |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_SAMPLES |
[
GLenum
](
#GLenum
)
| 是 |
| HALF_FLOAT |
[
GLenum
](
#GLenum
)
| 是 |
| RG |
[
GLenum
](
#GLenum
)
| 是 |
| RG_INTEGER |
[
GLenum
](
#GLenum
)
| 是 |
| R8 |
[
GLenum
](
#GLenum
)
| 是 |
| RG8 |
[
GLenum
](
#GLenum
)
| 是 |
| R16F |
[
GLenum
](
#GLenum
)
| 是 |
| R32F |
[
GLenum
](
#GLenum
)
| 是 |
| RG16F |
[
GLenum
](
#GLenum
)
| 是 |
| RG32F |
[
GLenum
](
#GLenum
)
| 是 |
| R8I |
[
GLenum
](
#GLenum
)
| 是 |
| R8UI |
[
GLenum
](
#GLenum
)
| 是 |
| R16I |
[
GLenum
](
#GLenum
)
| 是 |
| R16UI |
[
GLenum
](
#GLenum
)
| 是 |
| R32I |
[
GLenum
](
#GLenum
)
| 是 |
| R32UI |
[
GLenum
](
#GLenum
)
| 是 |
| RG8I |
[
GLenum
](
#GLenum
)
| 是 |
| RG8UI |
[
GLenum
](
#GLenum
)
| 是 |
| RG16I |
[
GLenum
](
#GLenum
)
| 是 |
| RG16UI |
[
GLenum
](
#GLenum
)
| 是 |
| RG32I |
[
GLenum
](
#GLenum
)
| 是 |
| RG32UI |
[
GLenum
](
#GLenum
)
| 是 |
| VERTEX_ARRAY_BINDING |
[
GLenum
](
#GLenum
)
| 是 |
| R8_SNORM |
[
GLenum
](
#GLenum
)
| 是 |
| RG8_SNORM |
[
GLenum
](
#GLenum
)
| 是 |
| RGB8_SNORM |
[
GLenum
](
#GLenum
)
| 是 |
| SIGNED_NORMALIZED |
[
GLenum
](
#GLenum
)
| 是 |
| COPY_READ_BUFFER |
[
GLenum
](
#GLenum
)
| 是 |
| COPY_WRITE_BUFFER |
[
GLenum
](
#GLenum
)
| 是 |
| COPY_READ_BUFFER_BINDING |
[
GLenum
](
#GLenum
)
| 是 |
| COPY_WRITE_BUFFER_BINDING |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_BUFFER |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_BUFFER_BINDING |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_BUFFER_START |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_BUFFER_SIZE |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_VERTEX_UNIFORM_BLOCKS |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_FRAGMENT_UNIFORM_BLOCKS |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_COMBINED_UNIFORM_BLOCKS |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_UNIFORM_BUFFER_BINDINGS |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_UNIFORM_BLOCK_SIZE |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_BUFFER_OFFSET_ALIGNMENT |
[
GLenum
](
#GLenum
)
| 是 |
| ACTIVE_UNIFORM_BLOCKS |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_TYPE |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_SIZE |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_BLOCK_INDEX |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_OFFSET |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_ARRAY_STRIDE |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_MATRIX_STRIDE |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_IS_ROW_MAJOR |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_BLOCK_BINDING |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_BLOCK_DATA_SIZE |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_BLOCK_ACTIVE_UNIFORMS |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER |
[
GLenum
](
#GLenum
)
| 是 |
| UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER |
[
GLenum
](
#GLenum
)
| 是 |
| INVALID_INDEX |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_VERTEX_OUTPUT_COMPONENTS |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_FRAGMENT_INPUT_COMPONENTS |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_SERVER_WAIT_TIMEOUT |
[
GLenum
](
#GLenum
)
| 是 |
| OBJECT_TYPE |
[
GLenum
](
#GLenum
)
| 是 |
| SYNC_CONDITION |
[
GLenum
](
#GLenum
)
| 是 |
| SYNC_STATUS |
[
GLenum
](
#GLenum
)
| 是 |
| SYNC_FLAGS |
[
GLenum
](
#GLenum
)
| 是 |
| SYNC_FENCE |
[
GLenum
](
#GLenum
)
| 是 |
| SYNC_GPU_COMMANDS_COMPLETE |
[
GLenum
](
#GLenum
)
| 是 |
| UNSIGNALED |
[
GLenum
](
#GLenum
)
| 是 |
| SIGNALED |
[
GLenum
](
#GLenum
)
| 是 |
| ALREADY_SIGNALED |
[
GLenum
](
#GLenum
)
| 是 |
| TIMEOUT_EXPIRED |
[
GLenum
](
#GLenum
)
| 是 |
| CONDITION_SATISFIED |
[
GLenum
](
#GLenum
)
| 是 |
| WAIT_FAILED |
[
GLenum
](
#GLenum
)
| 是 |
| SYNC_FLUSH_COMMANDS_BIT |
[
GLenum
](
#GLenum
)
| 是 |
| VERTEX_ATTRIB_ARRAY_DIVISOR |
[
GLenum
](
#GLenum
)
| 是 |
| ANY_SAMPLES_PASSED |
[
GLenum
](
#GLenum
)
| 是 |
| ANY_SAMPLES_PASSED_CONSERVATIVE |
[
GLenum
](
#GLenum
)
| 是 |
| SAMPLER_BINDING |
[
GLenum
](
#GLenum
)
| 是 |
| RGB10_A2UI |
[
GLenum
](
#GLenum
)
| 是 |
| INT_2_10_10_10_REV |
[
GLenum
](
#GLenum
)
| 是 |
| TRANSFORM_FEEDBACK |
[
GLenum
](
#GLenum
)
| 是 |
| TRANSFORM_FEEDBACK_PAUSED |
[
GLenum
](
#GLenum
)
| 是 |
| TRANSFORM_FEEDBACK_ACTIVE |
[
GLenum
](
#GLenum
)
| 是 |
| TRANSFORM_FEEDBACK_BINDING |
[
GLenum
](
#GLenum
)
| 是 |
| TEXTURE_IMMUTABLE_FORMAT |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_ELEMENT_INDEX |
[
GLenum
](
#GLenum
)
| 是 |
| TEXTURE_IMMUTABLE_LEVELS |
[
GLenum
](
#GLenum
)
| 是 |
| TIMEOUT_IGNORED |
[
GLenum
](
#GLenum
)
| 是 |
| MAX_CLIENT_WAIT_TIMEOUT_WEBGL |
[
GLenum
](
#GLenum
)
| 是 |
### 方法
| 方法 | 返回值类型 |
| -------- | ---------- |
| copyBufferSubData(readTarget:
GLenum,
writeTarget:
GLenum,
readOffset:
GLintptr,
writeOffset:
GLintptr,
size:
GLsizeiptr) | void |
| getBufferSubData(target:
GLenum,
srcByteOffset:
GLintptr,
dstBuffer:
ArrayBufferView,
dstOffset?:
GLuint,
length?:
GLuint) | void |
| blitFramebuffer(srcX0:
GLint,
srcY0:
GLint,
srcX1:
GLint,
srcY1:
GLint,
dstX0:
GLint,
dstY0:
GLint,
dstX1:
GLint,
dstY1:
GLint,
mask:
GLbitfield,
filter:
GLenum) | void |
| framebufferTextureLayer(target:
GLenum,
attachment:
GLenum,
texture:
WebGLTexture
\|
null,
level:
GLint,
layer:
GLint) | void |
| invalidateFramebuffer(target:
GLenum,
attachments:
GLenum[]) | void |
| invalidateSubFramebuffer(target:
GLenum,
attachments:
GLenum[],
x:
GLint,
y:
GLint,
width:
GLsizei,
height:
GLsizei) | void |
| readBuffer(src:
GLenum) | void |
| getInternalformatParameter(target:
GLenum,
internalformat:
GLenum,
pname:
GLenum) | any |
| renderbufferStorageMultisample(target:
GLenum,
samples:
GLsizei,
internalformat:
GLenum,
width:
GLsizei,
height:
GLsizei) | void |
| texStorage2D(target:
GLenum,
levels:
GLsizei,
internalformat:
GLenum,
width:
GLsizei,
height:
GLsizei) | void |
| texStorage3D(target:
GLenum,
levels:
GLsizei,
internalformat:
GLenum,
width:
GLsizei,
height:
GLsizei,
depth:
GLsizei) | void |
| texImage3D(target:
GLenum,
level:
GLint,
internalformat:
GLint,
width:
GLsizei,
height:
GLsizei,
depth:
GLsizei,
border:
GLint,
format:
GLenum,
type:
GLenum,
pboOffset:
GLintptr) | void |
| texImage3D(target:
GLenum,
level:
GLint,
internalformat:
GLint,
width:
GLsizei,
height:
GLsizei,
depth:
GLsizei,
border:
GLint,
format:
GLenum,
type:
GLenum,
source:
TexImageSource) | void |
| texImage3D(target:
GLenum,
level:
GLint,
internalformat:
GLint,
width:
GLsizei,
height:
GLsizei,
depth:
GLsizei,
border:
GLint,
format:
GLenum,
type:
GLenum,
srcData:
ArrayBufferView
\|
null) | void |
| texImage3D(target:
GLenum,
level:
GLint,
internalformat:
GLint,
width:
GLsizei,
height:
GLsizei,
depth:
GLsizei,
border:
GLint,
format:
GLenum,
type:
GLenum,
srcData:
ArrayBufferView,
srcOffset:
GLuint) | void |
| texSubImage3D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
zoffset:
GLint,
width:
GLsizei,
height:
GLsizei,
depth:
GLsizei,
format:
GLenum,
type:
GLenum,
pboOffset:
GLintptr) | void |
| texSubImage3D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
zoffset:
GLint,
width:
GLsizei,
height:
GLsizei,
depth:
GLsizei,
format:
GLenum,
type:
GLenum,
source:
TexImageSource) | void |
| texSubImage3D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
zoffset:
GLint,
width:
GLsizei,
height:
GLsizei,
depth:
GLsizei,
format:
GLenum,
type:
GLenum,
srcData:
ArrayBufferView
\|
null,
srcOffset?:
GLuint) | void |
| copyTexSubImage3D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
zoffset:
GLint,
x:
GLint,
y:
GLint,
width:
GLsizei,
height:
GLsizei) | void |
| compressedTexImage3D(target:
GLenum,
level:
GLint,
internalformat:
GLenum,
width:
GLsizei,
height:
GLsizei,
depth:
GLsizei,
border:
GLint,
imageSize:
GLsizei,
offset:
GLintptr) | void |
| compressedTexImage3D(target:
GLenum,
level:
GLint,
internalformat:
GLenum,
width:
GLsizei,
height:
GLsizei,
depth:
GLsizei,
border:
GLint,
srcData:
ArrayBufferView,
srcOffset?:
GLuint,
srcLengthOverride?:
GLuint) | void |
| compressedTexSubImage3D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
zoffset:
GLint,
width:
GLsizei,
height:
GLsizei,
depth:
GLsizei,
format:
GLenum,
imageSize:
GLsizei,
offset:
GLintptr) | void |
| compressedTexSubImage3D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
zoffset:
GLint,
width:
GLsizei,
height:
GLsizei,
depth:
GLsizei,
format:
GLenum,
srcData:
ArrayBufferView,
srcOffset?:
GLuint,
srcLengthOverride?:
GLuint) | void |
| getFragDataLocation(program:
WebGLProgram,
name:
string) | GLint |
| uniform1ui(location:
WebGLUniformLocation
\|
null,
v0:
GLuint) | void |
| uniform2ui(location:
WebGLUniformLocation
\|
null,
v0:
GLuint,
v1:
GLuint) | void |
| uniform3ui(location:
WebGLUniformLocation
\|
null,
v0:
GLuint,
v1:
GLuint,
v2:
GLuint) | void |
| uniform4ui(location:
WebGLUniformLocation
\|
null,
v0:
GLuint,
v1:
GLuint,
v2:
GLuint,
v3:
GLuint) | void |
| uniform1uiv(location:
WebGLUniformLocation
\|
null,
data:
Uint32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniform2uiv(location:
WebGLUniformLocation
\|
null,
data:
Uint32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniform3uiv(location:
WebGLUniformLocation
\|
null,
data:
Uint32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniform4uiv(location:
WebGLUniformLocation
\|
null,
data:
Uint32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniformMatrix3x2fv(location:
WebGLUniformLocation
\|
null,
transpose:
GLboolean,
data:
Float32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniformMatrix4x2fv(location:
WebGLUniformLocation
\|
null,
transpose:
GLboolean,
data:
Float32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniformMatrix2x3fv(location:
WebGLUniformLocation
\|
null,
transpose:
GLboolean,
data:
Float32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniformMatrix4x3fv(location:
WebGLUniformLocation
\|
null,
transpose:
GLboolean,
data:
Float32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniformMatrix2x4fv(location:
WebGLUniformLocation
\|
null,
transpose:
GLboolean,
data:
Float32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniformMatrix3x4fv(location:
WebGLUniformLocation
\|
null,
transpose:
GLboolean,
data:
Float32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| vertexAttribI4i(index:
GLuint,
x:
GLint,
y:
GLint,
z:
GLint,
w:
GLint) | void |
| vertexAttribI4iv(index:
GLuint,
values:
Int32List) | void |
| vertexAttribI4ui(index:
GLuint,
x:
GLuint,
y:
GLuint,
z:
GLuint,
w:
GLuint) | void |
| vertexAttribI4uiv(index:
GLuint,
values:
Uint32List) | void |
| vertexAttribIPointer(index:
GLuint,
size:
GLint,
type:
GLenum,
stride:
GLsizei,
offset:
GLintptr) | void |
| vertexAttribDivisor(index:
GLuint,
divisor:
GLuint) | void |
| drawArraysInstanced(mode:
GLenum,
first:
GLint,
count:
GLsizei,
instanceCount:
GLsizei) | void |
| drawElementsInstanced(mode:
GLenum,
count:
GLsizei,
type:
GLenum,
offset:
GLintptr,
instanceCount:
GLsizei) | void |
| drawRangeElements(mode:
GLenum,
start:
GLuint,
end:
GLuint,
count:
GLsizei,
type:
GLenum,
offset:
GLintptr) | void |
| drawBuffers(buffers:
GLenum[]) | void |
| clearBufferfv(buffer:
GLenum,
drawbuffer:
GLint,
values:
Float32List,
srcOffset?:
GLuint) | void |
| clearBufferiv(buffer:
GLenum,
drawbuffer:
GLint,
values:
Int32List,
srcOffset?:
GLuint) | void |
| clearBufferuiv(buffer:
GLenum,
drawbuffer:
GLint,
values:
Uint32List,
srcOffset?:
GLuint) | void |
| clearBufferfi(buffer:
GLenum,
drawbuffer:
GLint,
depth:
GLfloat,
stencil:
GLint) | void |
| createQuery() | WebGLQuery
\|
null |
| deleteQuery(query:
WebGLQuery
\|
null) | void |
| isQuery(query:
WebGLQuery
\|
null) | GLboolean |
| beginQuery(target:
GLenum,
query:
WebGLQuery) | void |
| endQuery(target:
GLenum) | void |
| getQuery(target:
GLenum,
pname:
GLenum) | WebGLQuery
\|
null |
| getQueryParameter(query:
WebGLQuery,
pname:
GLenum) | any |
| createSampler() | WebGLSampler
\|
null |
| deleteSampler(sampler:
WebGLSampler
\|
null) | void |
| isSampler(sampler:
WebGLSampler
\|
null) | GLboolean |
| bindSampler(unit:
GLuint,
sampler:
WebGLSampler
\|
null) | void |
| samplerParameteri(sampler:
WebGLSampler,
pname:
GLenum,
param:
GLint) | void |
| samplerParameterf(sampler:
WebGLSampler,
pname:
GLenum,
param:
GLfloat) | void |
| getSamplerParameter(sampler:
WebGLSampler,
pname:
GLenum) | any |
| fenceSync(condition:
GLenum,
flags:
GLbitfield) | WebGLSync
\|
null |
| isSync(sync:
WebGLSync
\|
null) | GLboolean |
| deleteSync(sync:
WebGLSync
\|
null) | void |
| clientWaitSync(sync:
WebGLSync,
flags:
GLbitfield,
timeout:
GLuint64) | GLenum |
| waitSync(sync:
WebGLSync,
flags:
GLbitfield,
timeout:
GLint64) | void |
| getSyncParameter(sync:
WebGLSync,
pname:
GLenum) | any |
| createTransformFeedback() | WebGLTransformFeedback
\|
null |
| deleteTransformFeedback(tf:
WebGLTransformFeedback
\|
null) | void |
| isTransformFeedback(tf:
WebGLTransformFeedback
\|
null) | GLboolean |
| bindTransformFeedback(target:
GLenum,
tf:
WebGLTransformFeedback
\|
null) | void |
| beginTransformFeedback(primitiveMode:
GLenum) | void |
| endTransformFeedback() | void |
| transformFeedbackVaryings(program:
WebGLProgram,
varyings:
string[],
bufferMode:
GLenum) | void |
| getTransformFeedbackVarying(program:
WebGLProgram,
index:
GLuint) | WebGLActiveInfo
\|
null |
| pauseTransformFeedback() | void |
| resumeTransformFeedback() | void |
| bindBufferBase(target:
GLenum,
index:
GLuint,
buffer:
WebGLBuffer
\|
null) | void |
| bindBufferRange(target:
GLenum,
index:
GLuint,
buffer:
WebGLBuffer
\|
null,
offset:
GLintptr,
size:
GLsizeiptr) | void |
| getIndexedParameter(target:
GLenum,
index:
GLuint) | any |
| getUniformIndices(program:
WebGLProgram,
uniformNames:
string[]) | GLuint[]
\|
null |
| getActiveUniforms(program:
WebGLProgram,
uniformIndices:
GLuint[],
pname:
GLenum) | any |
| getUniformBlockIndex(program:
WebGLProgram,
uniformBlockName:
string) | GLuint |
| getActiveUniformBlockParameter(program:
WebGLProgram,
uniformBlockIndex:
GLuint,
pname:
GLenum) | any |
| getActiveUniformBlockName(program:
WebGLProgram,
uniformBlockIndex:
GLuint) | string
\|
null |
| uniformBlockBinding(program:
WebGLProgram,
uniformBlockIndex:
GLuint,
uniformBlockBinding:
GLuint) | void |
| createVertexArray() | WebGLVertexArrayObject
\|
null |
| deleteVertexArray(vertexArray:
WebGLVertexArrayObject
\|
null) | void |
| isVertexArray(vertexArray:
WebGLVertexArrayObject
\|
null) | GLboolean |
| bindVertexArray(array:
WebGLVertexArrayObject
\|
null) | void |
## webgl.WebGL2RenderingContextOverloads
WebGL2RenderingContextOverloads
| 方法 | 返回值类型 |
| -------- | ---------- |
| bufferData(target:
GLenum,
size:
GLsizeiptr,
usage:
GLenum) | void |
| bufferData(target:
GLenum,
srcData:
BufferSource
\|
null,
usage:
GLenum) | void |
| bufferSubData(target:
GLenum,
dstByteOffset:
GLintptr,
srcData:
BufferSource) | void |
| bufferData(target:
GLenum,
srcData:
ArrayBufferView,
usage:
GLenum,
srcOffset:
GLuint,
length?:
GLuint) | void |
| bufferSubData(target:
GLenum,
dstByteOffset:
GLintptr,
srcData:
ArrayBufferView,
srcOffset:
GLuint,
length?:
GLuint) | void |
| texImage2D(target:
GLenum,
level:
GLint,
internalformat:
GLint,
width:
GLsizei,
height:
GLsizei,
border:
GLint,
format:
GLenum,
type:
GLenum,
pixels:
ArrayBufferView
\|
null) | void |
| texImage2D(target:
GLenum,
level:
GLint,
internalformat:
GLint,
format:
GLenum,
type:
GLenum,
source:
TexImageSource) | void |
| texSubImage2D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
width:
GLsizei,
height:
GLsizei,
format:
GLenum,
type:
GLenum,
pixels:
ArrayBufferView
\|
null) | void |
| texSubImage2D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
format:
GLenum,
type:
GLenum,
source:
TexImageSource) | void |
| texImage2D(target:
GLenum,
level:
GLint,
internalformat:
GLint,
width:
GLsizei,
height:
GLsizei,
border:
GLint,
format:
GLenum,
type:
GLenum,
pboOffset:
GLintptr) | void |
| texImage2D(target:
GLenum,
level:
GLint,
internalformat:
GLint,
width:
GLsizei,
height:
GLsizei,
border:
GLint,
format:
GLenum,
type:
GLenum,
source:
TexImageSource) | void |
| texImage2D(target:
GLenum,
level:
GLint,
internalformat:
GLint,
width:
GLsizei,
height:
GLsizei,
border:
GLint,
format:
GLenum,
type:
GLenum,
srcData:
ArrayBufferView,
srcOffset:
GLuint) | void |
| texSubImage2D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
width:
GLsizei,
height:
GLsizei,
format:
GLenum,
type:
GLenum,
pboOffset:
GLintptr) | void |
| texSubImage2D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
width:
GLsizei,
height:
GLsizei,
format:
GLenum,
type:
GLenum,
source:
TexImageSource) | void |
| texSubImage2D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
width:
GLsizei,
height:
GLsizei,
format:
GLenum,
type:
GLenum,
srcData:
ArrayBufferView,
srcOffset:
GLuint) | void |
| compressedTexImage2D(target:
GLenum,
level:
GLint,
internalformat:
GLenum,
width:
GLsizei,
height:
GLsizei,
border:
GLint,
imageSize:
GLsizei,
offset:
GLintptr) | void |
| compressedTexImage2D(target:
GLenum,
level:
GLint,
internalformat:
GLenum,
width:
GLsizei,
height:
GLsizei,
border:
GLint,
srcData:
ArrayBufferView,
srcOffset?:
GLuint,
srcLengthOverride?:
GLuint) | void |
| compressedTexSubImage2D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
width:
GLsizei,
height:
GLsizei,
format:
GLenum,
imageSize:
GLsizei,
offset:
GLintptr) | void |
| compressedTexSubImage2D(target:
GLenum,
level:
GLint,
xoffset:
GLint,
yoffset:
GLint,
width:
GLsizei,
height:
GLsizei,
format:
GLenum,
srcData:
ArrayBufferView,
srcOffset?:
GLuint,
srcLengthOverride?:
GLuint) | void |
| uniform1fv(location:
WebGLUniformLocation
\|
null,
data:
Float32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniform2fv(location:
WebGLUniformLocation
\|
null,
data:
Float32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniform3fv(location:
WebGLUniformLocation
\|
null,
data:
Float32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniform4fv(location:
WebGLUniformLocation
\|
null,
data:
Float32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniform1iv(location:
WebGLUniformLocation
\|
null,
data:
Int32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniform2iv(location:
WebGLUniformLocation
\|
null,
data:
Int32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniform3iv(location:
WebGLUniformLocation
\|
null,
data:
Int32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniform4iv(location:
WebGLUniformLocation
\|
null,
data:
Int32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniformMatrix2fv(location:
WebGLUniformLocation
\|
null,
transpose:
GLboolean,
data:
Float32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniformMatrix3fv(location:
WebGLUniformLocation
\|
null,
transpose:
GLboolean,
data:
Float32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| uniformMatrix4fv(location:
WebGLUniformLocation
\|
null,
transpose:
GLboolean,
data:
Float32List,
srcOffset?:
GLuint,
srcLength?:
GLuint) | void |
| readPixels(x:
GLint,
y:
GLint,
width:
GLsizei,
height:
GLsizei,
format:
GLenum,
type:
GLenum,
dstData:
ArrayBufferView
\|
null) | void |
| readPixels(x:
GLint,
y:
GLint,
width:
GLsizei,
height:
GLsizei,
format:
GLenum,
type:
GLenum,
offset:
GLintptr) | void |
| readPixels(x:
GLint,
y:
GLint,
width:
GLsizei,
height:
GLsizei,
format:
GLenum,
type:
GLenum,
dstData:
ArrayBufferView,
dstOffset:
GLuint) | void |
## webgl.WebGLQuery
WebGLQuery
## webgl.WebGLSampler
WebGLSampler
## webgl.WebGLSync
WebGLSync
## webgl.WebGLTransformFeedback
WebGLTransformFeedback
## webgl.WebGLVertexArrayObject
WebGLVertexArrayObject
\ No newline at end of file
Miykael_xxm
🚴
@xiongjiamu
mentioned in commit
1a62976c
·
2月 16, 2022
mentioned in commit
1a62976c
mentioned in commit 1a62976ce1b44455930f85ece1efbc5cb408a4c3
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录