harmony 鸿蒙drawing_gpu_context.h

  • 2025-06-12
  • 浏览 (4)

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

Name Description
struct OH_Drawing_GpuContextOptions Describes the options about the GPU context.

Types

Name Description
typedef struct OH_Drawing_GpuContextOptions OH_Drawing_GpuContextOptions Defines a struct for the options about the GPU context.

Functions

Name Description
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

0  赞