HarmonyOS 初始化EGL环境失败?

NativeImage文档中EGL环境的初始化,eglSurface\_ = eglCreateWindowSurface(eglDisplay\_, config\_, eglNativeWindow\_,context\_attribs); 这行代码中的eglNativeWindow\_无法强制类型转换。

阅读 528
1 个回答

需要在cmakelist.txt添加add\_definitions(-DOHOS\_PLATFORM) \#must add this

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进