Function in ldk_os.h

ldk_os_graphics_context_destroy

Destroy the OS graphics context.

LDK_API void ldk_os_graphics_context_destroy(LDKGCtx context);

Parameters

LDKGCtx context
Context used by this operation.
Function in ldk_os.h

ldk_os_graphics_context_make_current

Make a graphics context current for a window.

LDK_API void ldk_os_graphics_context_make_current(
 LDKWindow window,
 LDKGCtx context
);

Parameters

LDKWindow window
Native window handle.
LDKGCtx context
Context used by this operation.
Function in ldk_os.h

ldk_os_graphics_context_opengl_create

Create the OS graphics context opengl.

LDK_API LDKGCtx ldk_os_graphics_context_opengl_create(
 i32 version_major,
 i32 version_minor,
 i32 color_bits,
 i32 depth_bits
);

Parameters

i32 version_major
Requested major graphics API version.
i32 version_minor
Requested minor graphics API version.
i32 color_bits
Requested number of color bits.
i32 depth_bits
Requested number of depth bits.

Returns

The requested value.

Function in ldk_os.h

ldk_os_graphics_context_opengles_create

Create the OS graphics context opengles.

LDK_API LDKGCtx ldk_os_graphics_context_opengles_create(
 i32 version_major,
 i32 version_minor,
 i32 color_bits,
 i32 depth_bits
);

Parameters

i32 version_major
Requested major graphics API version.
i32 version_minor
Requested minor graphics API version.
i32 color_bits
Requested number of color bits.
i32 depth_bits
Requested number of depth bits.

Returns

The requested value.