Home
last modified time | relevance | path

Searched refs:colorBuffer (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/
H A Dshadow_demo.js128 initAttributeVariable(gl, program.a_Color, o.colorBuffer);
147 initAttributeVariable(gl, program.a_Color, o.colorBuffer);
185 o.colorBuffer = initArrayBuffer(gl, colors, 3, gl.FLOAT);
189 if (!o.vertexBuffer || !o.colorBuffer || !o.indexBuffer) {
265 o.colorBuffer = initArrayBuffer(gl, colors, 3, gl.FLOAT); // colorBuffer
268 if (!o.vertexBuffer || !o.colorBuffer || !o.indexBuffer) {
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample2/
H A Dshadow2_demo.js130 initAttributeVariable(gl, program.a_Color, o.colorBuffer);
149 initAttributeVariable(gl, program.a_Color, o.colorBuffer);
187 o.colorBuffer = initArrayBuffer(gl, colors, 3, gl.FLOAT);
191 if (!o.vertexBuffer || !o.colorBuffer || !o.indexBuffer) {
267 o.colorBuffer = initArrayBuffer(gl, colors, 3, gl.FLOAT); // colorBuffer
270 if (!o.vertexBuffer || !o.colorBuffer || !o.indexBuffer) {
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/utils/
H A DPlaneShape.js30 colorBuffer = null;
102 if (!this.colorBuffer) {
103 this.colorBuffer = gl.createBuffer();
131 gl.bindBuffer(gl.ARRAY_BUFFER, this.colorBuffer);
H A DCubeShape.js37 colorBuffer = null;
224 if (!this.colorBuffer) {
225 this.colorBuffer = gl.createBuffer();
226 this.colorBuffer.num = 3;
227 this.colorBuffer.type = gl.FLOAT;
258 gl.bindBuffer(gl.ARRAY_BUFFER, this.colorBuffer);
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libgifplugin/src/
H A Dgif_encoder.cpp281 uint8_t *colorBuffer = (uint8_t *)malloc(frameSize); in processFrame() local
282 if (colorBuffer == NULL) { in processFrame()
287 if (colorQuantize(index, width, height, colorBuffer, colorMap)) { in processFrame()
289 free(colorBuffer); in processFrame()
299 if (LZWEncodeFrame(colorBuffer, width, height)) { in processFrame()
301 free(colorBuffer); in processFrame()
306 free(colorBuffer); in processFrame()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_bitmap.cpp308 SkAutoMalloc colorBuffer(size); in Deserialize() local
309 if (!reader.readByteArray(colorBuffer.get(), size)) { in Deserialize()
312 colorSpace = SkColorSpace::Deserialize(colorBuffer.get(), size); in Deserialize()
H A Dskia_image.cpp649 SkAutoMalloc colorBuffer(size); in Deserialize() local
650 if (!reader.readByteArray(colorBuffer.get(), size)) { in Deserialize()
653 colorSpace = SkColorSpace::Deserialize(colorBuffer.get(), size); in Deserialize()
/ohos5.0/docs/zh-cn/third-party-cases/
H A Dhow-to-use-opengl-to-draw-3d-graphics.md404 创建缓冲区colorBuffer,传入顶点颜色数据colorData
406 unsigned int colorBuffer;
407 glGenBuffers(1, &colorBuffer);
408 glBindBuffer(GL_ARRAY_BUFFER, colorBuffer);