File tree Expand file tree Collapse file tree 4 files changed +1674
-999
lines changed
src/Graphics/Rendering/OpenGL/Raw Expand file tree Collapse file tree 4 files changed +1674
-999
lines changed Original file line number Diff line number Diff line change
1
+ 2.5.5.0
2
+ -------
3
+ * Added retrieval of version info and extensions.
4
+ * Added extension predicates.
5
+ * Added documentation for vector equivalents and aliases.
6
+ * Consistently use UTF-8 as the encoding.
7
+
1
8
2.5.4.0
2
9
-------
3
10
* Added documentation for enumerant groups.
Original file line number Diff line number Diff line change @@ -552,7 +552,7 @@ showCommand :: API -> Registry -> M.Map String String -> Command -> String
552
552
showCommand api registry sigMap c =
553
553
showString (take 80 (" -- " ++ name ++ " " ++ repeat ' -' ) ++ " \n\n " ) .
554
554
555
- showString man .
555
+ showString comment .
556
556
557
557
showString (name ++ " \n " ) .
558
558
showString (" :: MonadIO m\n " ) .
@@ -572,11 +572,16 @@ showCommand api registry sigMap c =
572
572
compactSignature = signature False
573
573
signature withComment = showSignatureFromCommand registry c withComment
574
574
urls = M. findWithDefault [] (api, CommandName name) manPageURLs
575
- links = L. intercalate " or " (map renderURL urls) ++ " \n "
575
+ links = L. intercalate " or " (map renderURL urls)
576
+ comment = case concat (man ++ ve ++ al) of
577
+ " " -> " "
578
+ cs -> " -- |" ++ cs ++ " \n "
576
579
man = case urls of
577
- [] -> " "
578
- [_] -> " -- | Manual page for " ++ links
579
- _ -> " -- | Manual pages for " ++ links
580
+ [] -> []
581
+ [_] -> [" Manual page for " ++ links ++ " ." ]
582
+ _ -> [" Manual pages for " ++ links ++ " ." ]
583
+ ve = [ " The vector equivalent of this command is '" ++ unCommandName v ++ " '." | Just v <- [vecEquiv c] ]
584
+ al = [ " This command is an alias for '" ++ unCommandName a ++ " '." | Just a <- [alias c] ]
580
585
renderURL (u, l) = " <" ++ u ++ " " ++ l ++ " >"
581
586
args = [1 .. length (paramTypes c)] >>= \ i -> " v" ++ show i
582
587
Original file line number Diff line number Diff line change @@ -149,7 +149,9 @@ joinWords = L.intercalate [splitChar]
149
149
data Command = Command {
150
150
resultType :: SignatureElement ,
151
151
paramTypes :: [SignatureElement ],
152
- referencedTypes :: S. Set R. TypeName
152
+ referencedTypes :: S. Set R. TypeName ,
153
+ vecEquiv :: Maybe CommandName ,
154
+ alias :: Maybe CommandName
153
155
} deriving (Eq , Ord , Show )
154
156
155
157
toCommand :: R. Command -> Command
@@ -163,7 +165,9 @@ toCommand c = Command {
163
165
filter (not . (" struct " `L.isPrefixOf` ) . R. unTypeName) $
164
166
DM. catMaybes $
165
167
map (R. protoPtype . R. paramProto) $
166
- (pr : ps) }
168
+ (pr : ps),
169
+ vecEquiv = (CommandName . R. unName) `fmap` R. commandVecEquiv c,
170
+ alias = (CommandName . R. unName) `fmap` R. commandAlias c }
167
171
where pr = R. Param { R. paramLen = Nothing , R. paramProto = R. commandProto c }
168
172
ps = R. commandParams c
169
173
varSupply = map (R. TypeName . showIntUsingDigits [' a' .. ' z' ]) [0 .. ]
You can’t perform that action at this time.
0 commit comments