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
 
sorry
 
Line 4: Line 4:


<nowiki>{{apifunc2|glBufferStorage|glNamedBufferStorage}}</nowiki> becomes: {{apifunc2|glBufferStorage|glNamedBufferStorage}}.
<nowiki>{{apifunc2|glBufferStorage|glNamedBufferStorage}}</nowiki> becomes: {{apifunc2|glBufferStorage|glNamedBufferStorage}}.
(I'm sorry its just called apifunc2 - I couldn't think of anything better)


[[Category:Inline Formatting Templates]]
[[Category:Inline Formatting Templates]]
</noinclude><includeonly>{{code|[[GLAPI/{{{1}}}|{{{2}}}]]}}</includeonly>
</noinclude><includeonly>{{code|[[GLAPI/{{{1}}}|{{{2}}}]]}}</includeonly>

Latest revision as of 15:50, 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.

(I'm sorry its just called apifunc2 - I couldn't think of anything better)