Template:Apifunc2: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
Add {{apifunc2}} so we can link to reference pages for DSA funcs
(No difference)

Revision as of 15:49, 30 July 2024

This template is similar to Template:Apifunc but allows specifying a different reference page than the function being referenced. This is sometimes needed when the reference page you're linking to documents several functions, but with names that can't be constructed just by appending to a base name - as is the case with many Direct State Access functions.

You must spell the target API function exactly correctly, or the link will not work.

{{apifunc2|glBufferStorage|glNamedBufferStorage}} becomes: glNamedBufferStorage.