Skip to content

Whether emscripten supports canvas2dContext #20746

@yangfangfang1204

Description

@yangfangfang1204

i create webgl context by emscripten_webgl_create_context, so how could i create canvas 2d context in c/c++ ,emscripten_2d_create_context? match the canvas.getContext('2d').
and in c/c++, could i use canvas2dcontext features, such as
let 2dContext = emscripten_2d_create_context("canvasID"); 2dContext.filltext("text",0,0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions