色哟哟视频在线观看-色哟哟视频在线-色哟哟欧美15最新在线-色哟哟免费在线观看-国产l精品国产亚洲区在线观看-国产l精品国产亚洲区久久

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

鴻蒙開發(fā)接口圖形圖像:【W(wǎng)ebGL2】

jf_46214456 ? 來源:jf_46214456 ? 作者:jf_46214456 ? 2024-05-30 15:19 ? 次閱讀

WebGL2

WebGL2支持圖形的繪制,包括對當(dāng)前繪制圖形的位置、顏色等進(jìn)行處理,其中相對WebGL來說對渲染管道和著色語言進(jìn)行了增強(qiáng)。

WebGL標(biāo)準(zhǔn)圖形API,對應(yīng)OpenGL ES 3.0特性集。

說明:
開發(fā)前請熟悉鴻蒙開發(fā)指導(dǎo)文檔 :[gitee.com/li-shizhen-skin/harmony-os/blob/master/README.md]
本模塊首批接口從API version 7開始支持。后續(xù)版本的新增接口,采用上角標(biāo)單獨(dú)標(biāo)記接口的起始版本。

調(diào)用方式

hml內(nèi)創(chuàng)建canvas,示例如下:

< !--xxx.hml-- >
< div class="container" >
    < canvas ref="canvas1" style="width : 400px; height : 200px; background-color : lightyellow;" >< /canvas >
    < button class="btn-button" onclick="BtnDraw2D" >BtnDraw2D< /button >
< /div >

js內(nèi)獲取canvas實(shí)例,示例如下:

// 獲取canvas組件實(shí)例
const el = this.$refs.canvas1;
// 從canvas組件實(shí)例獲取WebGL上下文
const gl = el.getContext('webgl2');
// 調(diào)用WebGL API
gl.clearColor(0.0, 0.0, 0.0, 1.0);

Type

系統(tǒng)能力: 以下各項(xiàng)對應(yīng)的系統(tǒng)能力均為 SystemCapability.Graphic.Graphic2D.WebGL2。

表1 Type

名稱類型
GLenumnumber
GLint64number
GLuint64number
Uint32Listarray

Interface

系統(tǒng)能力: 以下各項(xiàng)對應(yīng)的系統(tǒng)能力均為 SystemCapability.Graphic.Graphic2D.WebGL2。

表2 Interface

名稱
[WebGL2RenderingContextBase]
[WebGL2RenderingContextOverloads]
WebGLQuery
WebGLSampler
WebGLSync
WebGLTransformFeedback
WebGLVertexArrayObject

WebGL2RenderingContextBase

WebGL2RenderingContextBase

屬性

名稱參數(shù)類型必填
READ_BUFFERGLenum
UNPACK_ROW_LENGTHGLenum
UNPACK_SKIP_ROWSGLenum
UNPACK_SKIP_PIXELSGLenum
PACK_ROW_LENGTHGLenum
PACK_SKIP_ROWSGLenum
PACK_SKIP_PIXELSGLenum
COLORGLenum
DEPTHGLenum
STENCILGLenum
REDGLenum
RGB8GLenum
RGBA8GLenum
RGB10_A2GLenum
TEXTURE_BINDING_3DGLenum
UNPACK_SKIP_IMAGESGLenum
UNPACK_IMAGE_HEIGHTGLenum
TEXTURE_3DGLenum
TEXTURE_WRAP_RGLenum
MAX_3D_TEXTURE_SIZEGLenum
UNSIGNED_INT_2_10_10_10_REVGLenum
MAX_ELEMENTS_VERTICESGLenum
MAX_ELEMENTS_INDICESGLenum
TEXTURE_MIN_LODGLenum
TEXTURE_MAX_LODGLenum
TEXTURE_BASE_LEVELGLenum
TEXTURE_MAX_LEVELGLenum
MINGLenum
MAXGLenum
DEPTH_COMPONENT24GLenum
MAX_TEXTURE_LOD_BIASGLenum
TEXTURE_COMPARE_MODEGLenum
TEXTURE_COMPARE_FUNCGLenum
CURRENT_QUERYGLenum
QUERY_RESULTGLenum
QUERY_RESULT_AVAILABLEGLenum
STREAM_READGLenum
STREAM_COPYGLenum
STATIC_READGLenum
STATIC_COPYGLenum
DYNAMIC_READGLenum
DYNAMIC_COPYGLenum
MAX_DRAW_BUFFERSGLenum
DRAW_BUFFER0GLenum
DRAW_BUFFER1GLenum
DRAW_BUFFER2GLenum
DRAW_BUFFER3GLenum
DRAW_BUFFER4GLenum
DRAW_BUFFER5GLenum
DRAW_BUFFER6GLenum
DRAW_BUFFER7GLenum
DRAW_BUFFER8GLenum
DRAW_BUFFER9GLenum
DRAW_BUFFER10GLenum
DRAW_BUFFER11GLenum
DRAW_BUFFER12GLenum
DRAW_BUFFER13GLenum
DRAW_BUFFER14GLenum
DRAW_BUFFER15GLenum
MAX_FRAGMENT_UNIFORM_COMPONENTSGLenum
MAX_VERTEX_UNIFORM_COMPONENTSGLenum
SAMPLER_3DGLenum
SAMPLER_2D_SHADOWGLenum
FRAGMENT_SHADER_DERIVATIVE_HINTGLenum
PIXEL_PACK_BUFFERGLenum
PIXEL_UNPACK_BUFFERGLenum
PIXEL_PACK_BUFFER_BINDINGGLenum
PIXEL_UNPACK_BUFFER_BINDINGGLenum
FLOAT_MAT2x3GLenum
FLOAT_MAT2x4GLenum
FLOAT_MAT3x2GLenum
FLOAT_MAT3x4GLenum
FLOAT_MAT4x2GLenum
FLOAT_MAT4x3GLenum
SRGBGLenum
SRGB8GLenum
SRGB8_ALPHA8GLenum
COMPARE_REF_TO_TEXTUREGLenum
RGBA32FGLenum
RGB32FGLenum
RGBA16FGLenum
RGB16FGLenum
VERTEX_ATTRIB_ARRAY_INTEGERGLenum
MAX_ARRAY_TEXTURE_LAYERSGLenum
MIN_PROGRAM_TEXEL_OFFSETGLenum
MAX_PROGRAM_TEXEL_OFFSETGLenum
MAX_VARYING_COMPONENTSGLenum
TEXTURE_2D_ARRAYGLenum
TEXTURE_BINDING_2D_ARRAYGLenum
R11F_G11F_B10FGLenum
UNSIGNED_INT_10F_11F_11F_REVGLenum
RGB9_E5GLenum
UNSIGNED_INT_5_9_9_9_REVGLenum
TRANSFORM_FEEDBACK_BUFFER_MODEGLenum
MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTSGLenum
TRANSFORM_FEEDBACK_VARYINGSGLenum
TRANSFORM_FEEDBACK_BUFFER_STARTGLenum
TRANSFORM_FEEDBACK_BUFFER_SIZEGLenum
TRANSFORM_FEEDBACK_PRIMITIVES_WRITTENGLenum
RASTERIZER_DISCARDGLenum
MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTSGLenum
MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBSGLenum
INTERLEAVED_ATTRIBSGLenum
SEPARATE_ATTRIBSGLenum
TRANSFORM_FEEDBACK_BUFFERGLenum
TRANSFORM_FEEDBACK_BUFFER_BINDINGGLenum
RGBA32UIGLenum
RGB32UIGLenum
RGBA16UIGLenum
RGB16UIGLenum
RGBA8UIGLenum
RGB8UIGLenum
RGBA32IGLenum
RGB32IGLenum
RGBA16IGLenum
RGB16IGLenum
RGBA8IGLenum
RGB8IGLenum
RED_INTEGERGLenum
RGB_INTEGERGLenum
RGBA_INTEGERGLenum
SAMPLER_2D_ARRAYGLenum
SAMPLER_2D_ARRAY_SHADOWGLenum
SAMPLER_CUBE_SHADOWGLenum
UNSIGNED_INT_VEC2GLenum
UNSIGNED_INT_VEC3GLenum
UNSIGNED_INT_VEC4GLenum
INT_SAMPLER_2DGLenum
INT_SAMPLER_3DGLenum
INT_SAMPLER_CUBEGLenum
INT_SAMPLER_2D_ARRAYGLenum
UNSIGNED_INT_SAMPLER_2DGLenum
UNSIGNED_INT_SAMPLER_3DGLenum
UNSIGNED_INT_SAMPLER_CUBEGLenum
UNSIGNED_INT_SAMPLER_2D_ARRAYGLenum
DEPTH_COMPONENT32FGLenum
DEPTH32F_STENCIL8GLenum
FLOAT_32_UNSIGNED_INT_24_8_REVGLenum
FRAMEBUFFER_ATTACHMENT_COLOR_ENCODINGGLenum
FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPEGLenum
FRAMEBUFFER_ATTACHMENT_RED_SIZEGLenum
FRAMEBUFFER_ATTACHMENT_GREEN_SIZEGLenum
FRAMEBUFFER_ATTACHMENT_BLUE_SIZEGLenum
FRAMEBUFFER_ATTACHMENT_ALPHA_SIZEGLenum
FRAMEBUFFER_ATTACHMENT_DEPTH_SIZEGLenum
FRAMEBUFFER_ATTACHMENT_STENCIL_SIZEGLenum
FRAMEBUFFER_DEFAULTGLenum
UNSIGNED_INT_24_8GLenum
DEPTH24_STENCIL8GLenum
UNSIGNED_NORMALIZEDGLenum
DRAW_FRAMEBUFFER_BINDINGGLenum
READ_FRAMEBUFFERGLenum
DRAW_FRAMEBUFFERGLenum
READ_FRAMEBUFFER_BINDINGGLenum
RENDERBUFFER_SAMPLESGLenum
FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYERGLenum
MAX_COLOR_ATTACHMENTSGLenum
COLOR_ATTACHMENT1GLenum
COLOR_ATTACHMENT2GLenum
COLOR_ATTACHMENT3GLenum
COLOR_ATTACHMENT4GLenum
COLOR_ATTACHMENT5GLenum
COLOR_ATTACHMENT6GLenum
COLOR_ATTACHMENT7GLenum
COLOR_ATTACHMENT8GLenum
COLOR_ATTACHMENT9GLenum
COLOR_ATTACHMENT10GLenum
COLOR_ATTACHMENT11GLenum
COLOR_ATTACHMENT12GLenum
COLOR_ATTACHMENT13GLenum
COLOR_ATTACHMENT14GLenum
COLOR_ATTACHMENT15GLenum
FRAMEBUFFER_INCOMPLETE_MULTISAMPLEGLenum
MAX_SAMPLESGLenum
HALF_FLOATGLenum
RGGLenum
RG_INTEGERGLenum
R8GLenum
RG8GLenum
R16FGLenum
R32FGLenum
RG16FGLenum
RG32FGLenum
R8IGLenum
R8UIGLenum
R16IGLenum
R16UIGLenum
R32IGLenum
R32UIGLenum
RG8IGLenum
RG8UIGLenum
RG16IGLenum
RG16UIGLenum
RG32IGLenum
RG32UIGLenum
VERTEX_ARRAY_BINDINGGLenum
R8_SNORMGLenum
RG8_SNORMGLenum
RGB8_SNORMGLenum
SIGNED_NORMALIZEDGLenum
COPY_READ_BUFFERGLenum
COPY_WRITE_BUFFERGLenum
COPY_READ_BUFFER_BINDINGGLenum
COPY_WRITE_BUFFER_BINDINGGLenum
UNIFORM_BUFFERGLenum
UNIFORM_BUFFER_BINDINGGLenum
UNIFORM_BUFFER_STARTGLenum
UNIFORM_BUFFER_SIZEGLenum
MAX_VERTEX_UNIFORM_BLOCKSGLenum
MAX_FRAGMENT_UNIFORM_BLOCKSGLenum
MAX_COMBINED_UNIFORM_BLOCKSGLenum
MAX_UNIFORM_BUFFER_BINDINGSGLenum
MAX_UNIFORM_BLOCK_SIZEGLenum
MAX_COMBINED_VERTEX_UNIFORM_COMPONENTSGLenum
MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTSGLenum
UNIFORM_BUFFER_OFFSET_ALIGNMENTGLenum
ACTIVE_UNIFORM_BLOCKSGLenum
UNIFORM_TYPEGLenum
UNIFORM_SIZEGLenum
UNIFORM_BLOCK_INDEXGLenum
UNIFORM_OFFSETGLenum
UNIFORM_ARRAY_STRIDEGLenum
UNIFORM_MATRIX_STRIDEGLenum
UNIFORM_IS_ROW_MAJORGLenum
UNIFORM_BLOCK_BINDINGGLenum
UNIFORM_BLOCK_DATA_SIZEGLenum
UNIFORM_BLOCK_ACTIVE_UNIFORMSGLenum
UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICESGLenum
UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADERGLenum
UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADERGLenum
INVALID_INDEXGLenum
MAX_VERTEX_OUTPUT_COMPONENTSGLenum
MAX_FRAGMENT_INPUT_COMPONENTSGLenum
MAX_SERVER_WAIT_TIMEOUTGLenum
OBJECT_TYPEGLenum
SYNC_CONDITIONGLenum
SYNC_STATUSGLenum
SYNC_FLAGSGLenum
SYNC_FENCEGLenum
SYNC_GPU_COMMANDS_COMPLETEGLenum
UNSIGNALEDGLenum
SIGNALEDGLenum
ALREADY_SIGNALEDGLenum
TIMEOUT_EXPIREDGLenum
CONDITION_SATISFIEDGLenum
WAIT_FAILEDGLenum
SYNC_FLUSH_COMMANDS_BITGLenum
VERTEX_ATTRIB_ARRAY_DIVISORGLenum
ANY_SAMPLES_PASSEDGLenum
ANY_SAMPLES_PASSED_CONSERVATIVEGLenum
SAMPLER_BINDINGGLenum
RGB10_A2UIGLenum
INT_2_10_10_10_REVGLenum
TRANSFORM_FEEDBACKGLenum
TRANSFORM_FEEDBACK_PAUSEDGLenum
TRANSFORM_FEEDBACK_ACTIVEGLenum
TRANSFORM_FEEDBACK_BINDINGGLenum
TEXTURE_IMMUTABLE_FORMATGLenum
MAX_ELEMENT_INDEXGLenum
TEXTURE_IMMUTABLE_LEVELSGLenum
TIMEOUT_IGNOREDGLint64
MAX_CLIENT_WAIT_TIMEOUT_WEBGLGLenum

方法

方法返回值類型
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: WebGLTexturenull, level: GLint, layer: GLint)
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: ArrayBufferViewnull)
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: ArrayBufferViewnull, srcOffset?: GLuint)
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: WebGLUniformLocationnull, v0: GLuint)
uniform2ui(location: WebGLUniformLocationnull, v0: GLuint, v1: GLuint)
uniform3ui(location: WebGLUniformLocationnull, v0: GLuint, v1: GLuint, v2: GLuint)
uniform4ui(location: WebGLUniformLocationnull, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint)
uniform1uiv(location: WebGLUniformLocationnull, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint)
uniform2uiv(location: WebGLUniformLocationnull, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint)
uniform3uiv(location: WebGLUniformLocationnull, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint)
uniform4uiv(location: WebGLUniformLocationnull, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint)
uniformMatrix3x2fv(location: WebGLUniformLocationnull, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint)
uniformMatrix4x2fv(location: WebGLUniformLocationnull, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint)
uniformMatrix2x3fv(location: WebGLUniformLocationnull, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint)
uniformMatrix4x3fv(location: WebGLUniformLocationnull, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint)
uniformMatrix2x4fv(location: WebGLUniformLocationnull, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint)
uniformMatrix3x4fv(location: WebGLUniformLocationnull, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint)
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
deleteQuery(query: WebGLQuerynull)
isQuery(query: WebGLQuerynull)
beginQuery(target: GLenum, query: WebGLQuery)void
endQuery(target: GLenum)void
getQuery(target: GLenum, pname: GLenum)WebGLQuery
getQueryParameter(query: WebGLQuery, pname: GLenum)any
createSampler()WebGLSampler
deleteSampler(sampler: WebGLSamplernull)
isSampler(sampler: WebGLSamplernull)
bindSampler(unit: GLuint, sampler: WebGLSamplernull)
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
isSync(sync: WebGLSyncnull)
deleteSync(sync: WebGLSyncnull)
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64)GLenum
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64)void
getSyncParameter(sync: WebGLSync, pname: GLenum)any
createTransformFeedback()WebGLTransformFeedback
deleteTransformFeedback(tf: WebGLTransformFeedbacknull)
isTransformFeedback(tf: WebGLTransformFeedbacknull)
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedbacknull)
beginTransformFeedback(primitiveMode: GLenum)void
endTransformFeedback()void
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum)void
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint)WebGLActiveInfo
pauseTransformFeedback()void
resumeTransformFeedback()void
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffernull)
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffernull, offset: GLintptr, size: GLsizeiptr)
getIndexedParameter(target: GLenum, index: GLuint)any
getUniformIndices(program: WebGLProgram, uniformNames: string[])GLuint[]
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
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint)void
createVertexArray()WebGLVertexArrayObject
deleteVertexArray(vertexArray: WebGLVertexArrayObjectnull)
isVertexArray(vertexArray: WebGLVertexArrayObjectnull)
bindVertexArray(array: WebGLVertexArrayObjectnull)

WebGL2RenderingContextOverloads

WebGL2RenderingContextOverloads

搜狗高速瀏覽器截圖20240326151450.png

方法HarmonyOSOpenHarmony鴻蒙文檔籽料:mau123789是v直接拿返回值類型
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum)void
bufferData(target: GLenum, srcData: BufferSourcenull, usage: GLenum)
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: ArrayBufferViewnull)
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: ArrayBufferViewnull)
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: WebGLUniformLocationnull, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint)
uniform2fv(location: WebGLUniformLocationnull, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint)
uniform3fv(location: WebGLUniformLocationnull, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint)
uniform4fv(location: WebGLUniformLocationnull, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint)
uniform1iv(location: WebGLUniformLocationnull, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint)
uniform2iv(location: WebGLUniformLocationnull, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint)
uniform3iv(location: WebGLUniformLocationnull, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint)
uniform4iv(location: WebGLUniformLocationnull, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint)
uniformMatrix2fv(location: WebGLUniformLocationnull, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint)
uniformMatrix3fv(location: WebGLUniformLocationnull, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint)
uniformMatrix4fv(location: WebGLUniformLocationnull, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint)
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferViewnull)
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

審核編輯 黃宇

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報(bào)投訴
  • 接口
    +關(guān)注

    關(guān)注

    33

    文章

    8691

    瀏覽量

    151716
  • 圖形圖像
    +關(guān)注

    關(guān)注

    0

    文章

    6

    瀏覽量

    996
  • 鴻蒙
    +關(guān)注

    關(guān)注

    57

    文章

    2392

    瀏覽量

    42980
收藏 人收藏

    評論

    相關(guān)推薦

    深入淺出,帶你了解Qualcomm的圖形圖像優(yōu)化之道

    用戶的青睞,為此在2017年8月Qualcomm在深圳、北京、上海舉行了三場“探索移動圖形圖像處理——Qualcomm開發(fā)者公開課”,全面向開發(fā)者介紹深層次的移動端圖形圖像的優(yōu)化之道!
    發(fā)表于 09-07 13:47 ?7386次閱讀

    鴻蒙OS元服務(wù)開發(fā)案例:【WebGL網(wǎng)頁圖形開發(fā)著色器繪制彩色三角形】

    使用WebGL開發(fā)時(shí),為保證界面圖形顯示效果,請使用真機(jī)運(yùn)行。
    的頭像 發(fā)表于 04-02 15:12 ?1889次閱讀

    鴻蒙開發(fā)WebGL】簡單了解

    WebGL的全稱為Web Graphic Library(網(wǎng)頁圖形庫),主要用于交互式渲染2D圖形和3D圖形。目前HarmonyOS中使用的
    發(fā)表于 02-25 21:56

    鴻蒙原生應(yīng)用元服務(wù)開發(fā)-WebGL網(wǎng)頁圖形開發(fā)概述

    。 JavaScript engine為圖形框架,為WebGL模塊提供繪制對象Surface。 WebGL模塊對外暴露OpenGL ES的GPU繪制接口。 中間
    發(fā)表于 03-08 14:24

    鴻蒙原生應(yīng)用元服務(wù)開發(fā)-WebGL網(wǎng)頁圖形開發(fā)接口說明

    一、場景介紹 WebGL主要幫助開發(fā)者在前端開發(fā)中完成圖形圖像的相關(guān)處理,比如繪制彩色圖形等。目前該功能僅支持使用兼容JS的類Web
    發(fā)表于 03-11 15:51

    圖形圖像處理技術(shù)大會搶座中

    圖形圖像處理技術(shù)大會搶座中全球頂級專家和企業(yè)參與。中國電子學(xué)會繼云計(jì)算大會、物聯(lián)網(wǎng)大會、傳感器大會后又一年度盛會。技術(shù)交流、方案展示、產(chǎn)品發(fā)布---期待您的參與。
    發(fā)表于 09-16 14:14

    北京將召開圖形圖像技術(shù)應(yīng)用交流大會 2013年11月將在北京...

    北京將召開圖形圖像技術(shù)應(yīng)用交流大會 2013年11月將在北京舉行圖形圖像技術(shù)應(yīng)用大會,大會將邀請國內(nèi)圖像圖形處理技術(shù)領(lǐng)域的著名專家,就圖形圖像處理技術(shù)的應(yīng)用和最新動態(tài)特邀報(bào)告。敬請關(guān)注
    發(fā)表于 09-17 15:02

    北京將召開圖形圖像技術(shù)應(yīng)用交流大會 2013年11月將在北京...

    北京將召開圖形圖像技術(shù)應(yīng)用交流大會2013年11月將在北京舉行圖形圖像技術(shù)應(yīng)用大會,大會將邀請國內(nèi)圖像圖形處理技術(shù)領(lǐng)域的著名專家,就圖形圖像處理技術(shù)的應(yīng)用和最新動態(tài)特邀報(bào)告。敬請關(guān)注中
    發(fā)表于 09-17 15:06

    計(jì)算機(jī)圖形圖像處理最新應(yīng)用分析

    計(jì)算機(jī)圖形圖像處理最新應(yīng)用分析 圖形圖像處理是研究計(jì)算機(jī)除了圖形圖像的原理、方法和技術(shù)的科學(xué)。它是計(jì)算機(jī)科學(xué)和應(yīng)用的重要分支之一,同時(shí)隨著計(jì)算機(jī)技術(shù)的發(fā)展,圖形圖像技術(shù)在土木工程、機(jī)械
    發(fā)表于 09-23 14:56

    主要做圖形圖像處理,求助板子選擇!

    各位前輩大家好!我主要是做C/C++項(xiàng)目開發(fā)的,最近項(xiàng)目需要用到FPGA板子來做圖形圖像處理,困于自己對FPGA還不了解,特來求助大家啊!{:1:}我想要實(shí)現(xiàn)的功能是讀取SD卡中的視頻然后將視頻里面
    發(fā)表于 03-30 20:19

    圖形圖像處理實(shí)驗(yàn)的工程文件免費(fèi)下載

      本文檔的主要內(nèi)容詳細(xì)介紹的是圖形圖像處理實(shí)驗(yàn)的工程文件免費(fèi)下載。
    發(fā)表于 11-03 17:50 ?9次下載
    <b class='flag-5'>圖形圖像</b>處理實(shí)驗(yàn)的工程文件免費(fèi)下載

    鴻蒙開發(fā)圖形圖像——@ohos.effectKit (圖像效果)

    圖像效果提供處理圖像的一些基礎(chǔ)能力,包括對當(dāng)前圖像的亮度調(diào)節(jié)、模糊化、灰度調(diào)節(jié)、智能取色等。 該模塊提供以下圖像效果相關(guān)的常用功能: Filter:效果類,用于添加指定效果到
    的頭像 發(fā)表于 02-22 16:08 ?448次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發(fā)</b><b class='flag-5'>圖形圖像</b>——@ohos.effectKit (<b class='flag-5'>圖像</b>效果)

    鴻蒙OS元服務(wù)開發(fā)說明:【WebGL網(wǎng)頁圖形開發(fā)接口

    WebGL主要幫助開發(fā)者在前端開發(fā)中完成圖形圖像的相關(guān)處理,比如繪制彩色圖形等。目前該功能僅支持使用兼容JS的類Web
    的頭像 發(fā)表于 04-02 17:02 ?486次閱讀
    <b class='flag-5'>鴻蒙</b>OS元服務(wù)<b class='flag-5'>開發(fā)</b>說明:【<b class='flag-5'>WebGL</b>網(wǎng)頁<b class='flag-5'>圖形</b>庫<b class='flag-5'>開發(fā)</b><b class='flag-5'>接口</b>】

    鴻蒙OS元服務(wù)開發(fā):【WebGL網(wǎng)頁圖形開發(fā)概述】

    WebGL的全稱為Web Graphic Library(網(wǎng)頁圖形庫),主要用于交互式渲染2D圖形和3D圖形。目前HarmonyOS中使用的
    的頭像 發(fā)表于 04-02 17:26 ?475次閱讀
    <b class='flag-5'>鴻蒙</b>OS元服務(wù)<b class='flag-5'>開發(fā)</b>:【<b class='flag-5'>WebGL</b>網(wǎng)頁<b class='flag-5'>圖形</b>庫<b class='flag-5'>開發(fā)</b>概述】

    鴻蒙開發(fā)接口圖形圖像:【WebGL

    WebGL提供圖形繪制的能力,包括對當(dāng)前繪制圖形的位置、顏色等進(jìn)行處理。
    的頭像 發(fā)表于 05-30 09:31 ?566次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>開發(fā)</b><b class='flag-5'>接口</b><b class='flag-5'>圖形圖像</b>:【<b class='flag-5'>WebGL</b>】
    主站蜘蛛池模板: 自拍黄色片 | 13一18TV处流血TV | 高挑人妻无奈张开腿 | 国产成人无码精品久久久免费69 | 永久免费在线观看视频 | 亚洲精品午夜aaa级久久久久 | 99视频免费播放 | 忘忧草日本在线社区WWW电影 | 九九影院午夜理论片无码 | 少妇无码太爽了视频在线播放 | 人人碰国产免费线观看 | 伊人影院中文字幕 | 91久久夜色精品 | 曰批国产精品视频免费观看 | 中文字幕视频在线观看 | 同居了嫂子在线观看 | 99热这里只有精品6 99热这里只有精品 99热这里只有的精品 | 观赏女性排尿 | 日本19xxxx撤尿 | 99国产精品白浆在线观看免费 | 国产精品www视频免费看 | 亚洲乱码AV久久久久久久 | 欧美 亚洲 日韩 中文2019 | 大中国免费视频大全在线观看 | 青草久久伊人 | 亚洲AV美女成人网站P站 | 97成人免费视频 | 99re8热视频这在线视频 | 不分昼夜H1V3 | 鬼灭之刃花街篇免费樱花动漫 | 扒开老师大腿猛进AAA片邪恶 | 免费视频xxx | 男人J桶女人P视频无遮挡网站 | 久久是热频国产在线 | 久久免费特黄毛片 | 中文字幕日本久久2019 | 四虎永久在线精品国产免费 | 国产精品久久国产三级国不卡顿 | 玉娇龙续集春雪瓶txt免费阅读 | 添加一点爱与你电视剧免费观看 | 久久毛片免费看一区二区三区 |