mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Wrote a quick draft for QuakeC Menu coding
This commit is contained in:
parent
3ad92d30d5
commit
2bf1182d19
1 changed files with 27 additions and 0 deletions
27
doc/QCMenuCondingStyle
Normal file
27
doc/QCMenuCondingStyle
Normal file
|
@ -0,0 +1,27 @@
|
|||
QuakeC Menu Coding Style
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
(by elmex <Robin Redeker>)
|
||||
|
||||
For QuakeC you should use the normal coding style, which is
|
||||
describes in the file "CodingStyle" in doc/
|
||||
|
||||
But you may use not the same prefixes.
|
||||
|
||||
Use these prefixes where it makes sense:
|
||||
CB_ Input callback
|
||||
MENU_ Menu making function
|
||||
DRAW_ Draw callback
|
||||
|
||||
|
||||
Comment functions like this:
|
||||
/*
|
||||
[PREFIX_]FunctionName
|
||||
|
||||
Description
|
||||
*/
|
||||
returntype (args)
|
||||
[PREFIX_]FunctionName =
|
||||
{
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue