Giter Site home page Giter Site logo

mesadoc's Introduction

How a open gles program run on Linux

Mesa create context

  1. In libglut.so.3 will call glutCreateWindow
  2. fgCreateWindow
  3. fgOpenWindow
  4. call glxcmds.c::glXCreateNewContext
  5. call glxcmds.c::CreateContext
  6. dri_common.c::dri_common_create_context
  7. drisw_glx.c::drisw_create_context_attribs
  8. dri_util.c::driCreateContextAttribs
  9. dri_context.c::dri_create_context
  10. st_manager.c::st_api_create_context
  11. context.c::_mesa_initialize

Load library

  1. call dlopen to load necessary lib:libGL.so.1, libGL.so, if success, call dlsym to find glXGetProcAddressARB address.
  2. when need to use a gl function,load-->get_proc-->glXGetProcAddressARB(glname) to get function address。
  3. glXGetProcAddressARB call glxcmds.cpp::get_glx_proc_address(name) to find func addr in function table[name]
  4. glXGetProcAddressARB call mapi_glapi.c::_glapi_get_proc_address-->_glapi_get_stub-->stub_find_public
  5. call func_name()

mesadoc's People

Contributors

cothello avatar

Watchers

 avatar

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.