Template:Apifunc2

From OpenGL Wiki
Revision as of 15:49, 30 July 2024 by 0x5fmanpat (talk | contribs) (Add {{apifunc2}} so we can link to reference pages for DSA funcs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.