-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MOGL: Fix wrong definition of glPathGlyphIndexRangeNV().
This causes compiler errors recently, so fix it. This due to spec weirdness: Spec says GLuint baseAndCount[2] in some places, GLuint* baseAndCount in others, and our parser chose the first definition as GLuint baseAndCount, because it does not know how to handle this one and only instance ever, where an array is defined. Fix this up by manual implementation and fixup interface on Matlab side as well.
- Loading branch information
Showing
4 changed files
with
24 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
Psychtoolbox/PsychOpenGL/MOGL/wrap/glPathGlyphIndexRangeNV.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
function r = glPathGlyphIndexRangeNV( fontTarget, fontName, fontStyle, pathParameterTemplate, emScale, baseAndCount ) | ||
function [r, baseAndCount] = glPathGlyphIndexRangeNV( fontTarget, fontName, fontStyle, pathParameterTemplate, emScale, baseAndCount ) | ||
|
||
% glPathGlyphIndexRangeNV Interface to OpenGL function glPathGlyphIndexRangeNV | ||
% | ||
% usage: r = glPathGlyphIndexRangeNV( fontTarget, fontName, fontStyle, pathParameterTemplate, emScale, baseAndCount ) | ||
% usage: [r, baseAndCount] = glPathGlyphIndexRangeNV( fontTarget, fontName, fontStyle, pathParameterTemplate, emScale ) | ||
% | ||
% C function: GLenum glPathGlyphIndexRangeNV(GLenum fontTarget, const void* fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint baseAndCount) | ||
% C function: GLenum glPathGlyphIndexRangeNV(GLenum fontTarget, const void* fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint baseAndCount[2]) | ||
|
||
% 08-Aug-2020 -- created (generated automatically from header files) | ||
|
||
if nargin~=6, | ||
% ---allocate--- | ||
% ---protected--- | ||
|
||
if nargin~=5 | ||
error('invalid number of arguments'); | ||
end | ||
|
||
baseAndCount = zeros(2, 1, 'uint32'); | ||
r = moglcore( 'glPathGlyphIndexRangeNV', fontTarget, fontName, fontStyle, pathParameterTemplate, emScale, baseAndCount ); | ||
|
||
return |