Code Monkey home page Code Monkey logo

Comments (4)

BSVino avatar BSVino commented on July 26, 2024

Certainly, Iā€™d be happy to pull a PR :)

from docs.gl.

hunterashner avatar hunterashner commented on July 26, 2024

I tried adding an new .xhtml file with glGetShaderiv, and running the build script again to compile, thinking it would then pickup on this file from the opengl SDK, but I think the issue actually lies with khronos groups documentation. I have attached a picture for reference, the glGetShaderiv function and glGetShader function are both present in their navigation bar, but upon clicking each of these links, both take you to the /html/glGetShader.xhtml endpoint.

image

I actually think they need to fix their documentation and remove glGetShader for glGetShaderiv (looks like a typo maybe), so your compile script will pickup on the correct function.

will definitely try to contribute somewhere else in the project, I am assuming you do not want to manually add a separate html file for this function after compilation?

from docs.gl.

BSVino avatar BSVino commented on July 26, 2024

It's been a while since I applied my brain to docs.gl so I'll lean on you a bit for this one:

What are our options for fixing it on our side? Can we just rename glGetShader.xhtml to glGetShaderiv.xhtml or will we break links? Can we also update all the links? I see that the gles versions already have glGetShaderiv.xhtml so it can't be that bad?

from docs.gl.

ForeverZer0 avatar ForeverZer0 commented on July 26, 2024

I am not certain this is something that should ever be fixed, as it is following the same convention as the rest of the API. Whether it be g;GetUniformXXX, glGetVertexAttribXXX, glGetSamplerParameterXXX, or anything else, the suffix is dropped and there is a single page with the base name that documents all variations together.

The only difference here is that shaders objects (currently) only have a single "get" function, and do not have -ui or -f suffixed variants, in which case it would be more obvious.

from docs.gl.

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.