Code Monkey home page Code Monkey logo

Comments (5)

YunHsiao avatar YunHsiao commented on September 26, 2024

扩展函数当然并不是所有平台都支持,尤其桌面端目前其实都是借 PVRVFrame 这个第三方库实现的 GLES 转桌面 GL 的。引擎里初始化 device 时会先查询当前平台支持哪些,然后运行时走不同的 code branch。

from engine-native.

minggo avatar minggo commented on September 26, 2024

@Xrysnow 是有遇到什么问题吗?

from engine-native.

Xrysnow avatar Xrysnow commented on September 26, 2024

因为我看加载时是直接在动态库里取函数地址,但libGLESv2没有导出扩展函数,而个别地方直接调用了扩展函数,比如
https://github.com/cocos-creator/engine-native/blob/10c7d816a7c320836f84541202e30d299a5e2023/cocos/renderer/gfx-gles2/GLES2Context.cpp#L548
所以想确认一下win上的扩展函数是从哪里获得的

from engine-native.

YunHsiao avatar YunHsiao commented on September 26, 2024

libGLESv2没有导出扩展函数

当然有导出,也有加载,你这个结论是从哪来的。。

from engine-native.

Xrysnow avatar Xrysnow commented on September 26, 2024

应该是我理解错误了,dumpbin看不到,但不是直接取的。

from engine-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.