harmony 鸿蒙drawing_gpu_context.h

2025-06-12 浏览 (1)

drawing_gpu_context.h

Overview

The drawing_gpu_context.h file declares the functions related to the GPU context in the drawing module.

File to include: <native_drawing/drawing_gpu_context.h>

Library: libnative_drawing.so

Since: 12

Related module: Drawing

Summary

Structs

NameDescription
struct OH_Drawing_GpuContextOptionsDescribes the options about the GPU context.

Types

NameDescription
typedef struct OH_Drawing_GpuContextOptions OH_Drawing_GpuContextOptionsDefines a struct for the options about the GPU context.

Functions

NameDescription
OH_Drawing_GpuContext * OH_Drawing_GpuContextCreateFromGL (OH_Drawing_GpuContextOptions)Creates an OH_Drawing_GpuContext object that uses OpenGL as the backend interface.
OH_Drawing_GpuContext * OH_Drawing_GpuContextCreate (void)Creates an OH_Drawing_GpuContext object, for which the backend type depends on the device.
void OH_Drawing_GpuContextDestroy (OH_Drawing_GpuContext *)Destroys an OH_Drawing_GpuContext object and reclaims the memory occupied by the object.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkGraphics 2D

harmony 鸿蒙BufferHandle

harmony 鸿蒙ColorSpacePrimaries

harmony 鸿蒙DisplaySoloist_ExpectedRateRange

harmony 鸿蒙_drawing

harmony 鸿蒙NativeColorSpaceManager

harmony 鸿蒙NativeDisplaySoloist

harmony 鸿蒙NativeVsync

harmony 鸿蒙NativeWindow

harmony 鸿蒙OH_Drawing_BitmapFormat

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/paWc1Y