Ticket #423: 423.patch

File 423.patch, 86.2 KB (added by Samuel, 14 years ago)
  • docs/doxygen/config

     
    33
    44TAB_SIZE               = 4
    55
    6 INPUT                  = ../../source/simulation2 ../../source/scriptinterface ../../source/network ../../source/gui
     6INPUT                  = ../../source
    77INCLUDE_PATH           = ../../source
    88EXAMPLE_PATH           = ../../source
    99RECURSIVE              = YES
    1010EXCLUDE_PATTERNS       = */.svn* */tests/test_*
    11 EXCLUDE                = ../../source/dcdt ../../source/tools ../../source/i18n/tests2
     11EXCLUDE                = ../../source/dcdt ../../source/tools ../../source/i18n/tests2 ../../source/simulation
    1212
    1313JAVADOC_AUTOBRIEF      = YES
    1414
     
    2323
    2424MACRO_EXPANSION        = YES
    2525EXPAND_ONLY_PREDEF     = YES
    26 PREDEFINED             = "UNUSED(x)=x"
     26PREDEFINED             = "UNUSED(x)=x" \
     27                         "METHODDEF(x)=static x" \
     28                         "GLOBAL(x)=x"                 
    2729EXPAND_AS_DEFINED     += DEFAULT_COMPONENT_ALLOCATOR DEFAULT_SCRIPT_WRAPPER DEFAULT_INTERFACE_WRAPPER DEFAULT_MESSAGE_IMPL
    28 EXPAND_AS_DEFINED     += MESSAGE INTERFACE COMPONENT
     30EXPAND_AS_DEFINED     += MESSAGE INTERFACE COMPONENT GUISTDTYPE
     31 
     32WARN_LOGFILE           = doxygen.log
  • source/collada/CommonConvert.h

     
    6666
    6767/**
    6868 * Standard document loader. Based on FCDocument::LoadFromText, but allows
    69  * access to <extra> nodes at the document level (i.e. directly in <COLLADA>).
     69 * access to \<extra\> nodes at the document level (i.e. directly in \<COLLADA\>).
    7070 */
    7171class FColladaDocument
    7272{
     
    8181    /** Returns the FCDocument that was loaded. */
    8282    FCDocument* GetDocument() const { return document.get(); }
    8383
    84     /** Returns the <extra> data from the <COLLADA> element. */
     84    /** Returns the \<extra\> data from the \<COLLADA\> element. */
    8585    FCDExtra* GetExtra() const { return extra.get(); }
    8686
    8787private:
  • source/collada/StdSkeletons.h

     
    8484    /**
    8585     * Initialises the global state with skeleton data loaded from the
    8686     * given XML data. Must only be called once.
    87      * (TODO: stop using global state.)
     87     * @todo Stop using global state.
     88     * @param xmlData   
     89     * @param xmlLength
    8890     * @param xmlErrors output - XML parser error messages; will be non-empty
    89      * on failure (and failure will always throw)
     91     *        on failure (and failure will always throw)
    9092     * @throws ColladaException on failure
    9193     */
    9294    static void LoadSkeletonDataFromXml(const char* xmlData, size_t xmlLength, std::string& xmlErrors);
  • source/graphics/ColladaManager.h

     
    3636     * Performs a (cached) conversion from COLLADA if necessary.
    3737     *
    3838     * @param pathnameNoExtension path and name, minus extension, of file to load.
    39      * One of either "sourceName.pmd" or "sourceName.dae" should exist.
     39     *        One of either "sourceName.pmd" or "sourceName.dae" should exist.
     40     * @param type FileType, .pmd or .psa
    4041     *
    4142     * @return full VFS path (including extension) of file to load; or empty
    4243     * string if there was a problem and it could not be loaded.
  • source/graphics/UnitManager.cpp

     
    125125
    126126///////////////////////////////////////////////////////////////////////////////
    127127// CreateUnit: create a new unit and add it to the world
    128 CUnit* CUnitManager::CreateUnit(const CStrW& actorName, const std::set<CStr>& selections)
     128CUnit* CUnitManager::CreateUnit(const CStrW& actorName, const std::set<CStr8>& selections)
    129129{
    130130    if (! m_ObjectManager)
    131131        return NULL;
  • source/gui/CGUI.h

     
    155155     * @param DefaultColor Color used if no tag applied.
    156156     * @param pos position
    157157     * @param z z value.
     158     * @param clipping
    158159     */
    159160    void DrawText(SGUIText &Text, const CColor &DefaultColor,
    160161                  const CPos &pos, const float &z, const CRect &clipping);
     
    242243     *        can be changed by tags.
    243244     * @param Width Width, 0 if no word-wrapping.
    244245     * @param BufferZone space between text and edge, and space between text and images.
    245      *
    246      * pObject is *only* if error parsing fails, and we need to be able to output
    247      * which object the error occured in to aid the user. The parameter is completely
    248      * optional.
     246     * @param pObject Optional parameter for error output. Used *only* if error parsing fails,
     247     *        and we need to be able to output which object the error occured in to aid the user.
    249248     */
     249     
    250250    SGUIText GenerateText(const CGUIString &Text, const CStr& Font,
    251251                          const float &Width, const float &BufferZone,
    252252                          const IGUIObject *pObject=NULL);
     
    370370     * @param Element   The Xeromyces object that represents
    371371     *                  the objects-tag.
    372372     * @param pFile     The Xeromyces object for the file being read
     373     * @param Paths
    373374     *
    374375     * @see LoadXmlFile()
    375376     */
     
    448449     * @param Element   The Xeromyces object that represents
    449450     *                  the script-tag.
    450451     * @param pFile     The Xeromyces object for the file being read
     452     * @param Paths
    451453     *
    452454     * @see LoadXmlFile()
    453455     */
  • source/gui/CGUISprite.h

     
    120120
    121121/**
    122122 * The GUI sprite, is actually several real sprites (images)
    123  * like a collage. View the section <sprites> in the GUI
     123 * like a collage. View the section \<sprites\> in the GUI
    124124 * TDD for more information.
    125125 *
    126126 * Drawing routine is located in CGUI
  • source/gui/CList.h

     
    111111    virtual void SelectLastElement();
    112112
    113113    /**
    114      * Handle the <item> tag.
     114     * Handle the \<item\> tag.
    115115     */
    116116    virtual bool HandleAdditionalChildren(const XMBElement& child, CXeromyces* pFile);
    117117
  • source/gui/GUIbase.h

     
    6868//  Types
    6969//--------------------------------------------------------
    7070/**
    71  * @enum EGUIMessage
     71 * @enum EGUIMessageType
    7272 * Message types
    7373 *
    7474 * @see SGUIMessage
  • source/gui/GUItext.h

     
    291291     * @param from From character n,
    292292     * @param to to character n.
    293293     * @param FirstLine Whether this is the first line of text, to calculate its height correctly
    294      *
    295      * pObject Only for Error outputting, optional! If NULL
    296      * then no Errors will be reported! Useful when you need
    297      * to make several GenerateTextCall in different phases,
    298      * it avoids duplicates.
     294     * @param pObject Only for Error outputting, optional! If NULL
     295     *        then no Errors will be reported! Useful when you need
     296     *        to make several GenerateTextCall in different phases,
     297     *        it avoids duplicates.
    299298     */
    300299    void GenerateTextCall(SFeedback &Feedback,
    301300                          const CStr& DefaultFont,
  • source/gui/GUIutil.h

     
    140140    /**
    141141     * Retrieves a setting by settings name and object name
    142142     *
    143      * @param GUI GUI Object const ref
     143     * @param GUIinstance GUI Object const ref
    144144     * @param Object Object name
    145145     * @param Setting Setting by name
    146146     * @param Value Stores value here, note type T!
     
    165165     * This is just a wrapper so that we can type the object name
    166166     *  and not input the actual pointer.
    167167     *
    168      * @param GUI GUI Object, reference since we'll be changing values
     168     * @param GUIinstance GUI Object, reference since we'll be changing values
    169169     * @param Object Object name
    170170     * @param Setting Setting by name
    171171     * @param Value Sets value to this, note type T!
     172     * @param SkipMessage Set to true to HandleMessage
    172173     */
    173174    static PSRETURN SetSetting(
    174175        CGUI &GUIinstance, const CStr& Object,
  • source/gui/IGUIObject.h

     
    255255     */
    256256    void CheckSettingsValidity();
    257257
     258    /// @cond Skiping Documentation Block for disabled method
    258259    /**
    259260     * Sets up a map_size_t to include the variables in m_BaseSettings
    260261     *
    261262     * @param SettingsInfo Pointers that should be filled with base variables
    262263     */
     264    /// @endcond
    263265    //void SetupBaseSettingsInfo(map_Settings &SettingsInfo);
    264266
    265267    /**
     
    269271     *
    270272     * @param Setting Setting by name
    271273     * @param Value Value to set to
     274     * @param SkipMessage
    272275     *
    273276     * @return PSERROR (PSRETURN_OK if successful)
    274277     */
     
    416419    /**
    417420     * Same as reference, but returns a const
    418421     */
    419 //  IGUIObject const *GetParent() const;
     422    //  IGUIObject const *GetParent() const;
    420423
     424    /// @cond Excluding the block from documentation since the method is disabled
    421425    /**
    422426     * You input the setting struct you want, and it will return a pointer to
    423427     * the struct.
    424428     *
    425429     * @param SettingsStruct tells us which pointer ot return
    426430     */
     431    /// @endcond
     432
    427433    //virtual void *GetStructPointer(const EGUISettingsStruct &SettingsStruct) const;
     434   
    428435
    429436    /**
    430437     * Get Mouse from CGUI.
     
    500507     *
    501508     * @return the error result
    502509     */
    503     PSRETURN LogInvalidSettings(const CStr& Setting) const;
     510    PSRETURN LogInvalidSettings(const CStr8& Setting) const;
    504511
    505512    // Variables
    506513
  • source/gui/IGUIScrollBar.h

     
    177177    /**
    178178     * Hovering the scroll minus button
    179179     *
    180      * @param m_x mouse x
    181      * @param m_y mouse y
     180     * @param mouse x m_x
     181     * @param mouse y m_y
    182182     * @return True if mouse positions are hovering the button
    183183     */
    184184    virtual bool HoveringButtonMinus(const CPos& UNUSED(mouse)) { return false; }
     
    186186    /**
    187187     * Hovering the scroll plus button
    188188     *
    189      * @param m_x mouse x
    190      * @param m_y mouse y
     189     * @param mouse x m_x
     190     * @param mouse y m_y
    191191     * @return True if mouse positions are hovering the button
    192192     */
    193193    virtual bool HoveringButtonPlus(const CPos& UNUSED(mouse)) { return false; }
     
    289289
    290290    /**
    291291     * Set bar pressed
    292      * @param pressed True if bar is pressed
     292     * @param b True if bar is pressed
    293293     */
    294294    void SetBarPressed(const bool &b) { m_BarPressed = b; }
    295295
  • source/gui/IGUITextOwner.h

     
    8282     * Draws the Text.
    8383     *
    8484     * @param index Index value of text. Mostly this will be 0
     85     * @param color
    8586     * @param pos Position
    8687     * @param z Z value
    8788     * @param clipping Clipping rectangle, don't even add a parameter
  • source/gui/scripting/JSInterface_GUITypes.cpp

     
    2121#include "ps/CStr.h"
    2222
    2323/**** GUISize ****/
    24 
    2524JSClass JSI_GUISize::JSI_class = {
    2625    "GUISize", 0,
    2726        JS_PropertyStub, JS_PropertyStub,
  • source/lib/allocators/allocators.h

     
    5858/**
    5959 * free a previously allocated page-aligned region.
    6060 *
    61  * @param p exact value returned from page_aligned_alloc
    62  * @param size exact value passed to page_aligned_alloc
     61 * @param p Exact value returned from page_aligned_alloc
     62 * @param unaligned_size Exact value passed to page_aligned_alloc
    6363 **/
    6464LIB_API void page_aligned_free(void* p, size_t unaligned_size);
    6565
     
    133133//-----------------------------------------------------------------------------
    134134
    135135/**
    136  * Allocate <size> bytes of zeroed memory.
     136 * Allocate \<size\> bytes of zeroed memory.
    137137 *
    138138 * intended for applications that frequently alloc/free a single
    139139 * fixed-size object. caller provides static storage and an in-use flag;
     
    143143 *
    144144 * note: thread-safe despite use of shared static data.
    145145 *
    146  * @param storage Caller-allocated memory of at least <size> bytes
     146 * @param storage Caller-allocated memory of at least \<size\> bytes
    147147 * (typically a static array of bytes)
    148  * @param in_use_flag Pointer to a flag we set when <storage> is in-use.
     148 * @param in_use_flag Pointer to a flag we set when \<storage\> is in-use.
    149149 * @param size [bytes] to allocate
    150  * @return allocated memory (typically = <storage>, but falls back to
     150 * @return allocated memory (typically = \<storage\>, but falls back to
    151151 * malloc if that's in-use), or 0 (with warning) if out of memory.
    152152 **/
    153153extern void* single_calloc(void* storage, volatile intptr_t* in_use_flag, size_t size);
     
    157157 *
    158158 * @param storage Exact value passed to single_calloc.
    159159 * @param in_use_flag Exact value passed to single_calloc.
    160  * @param Exact value returned by single_calloc.
     160 * @param p Exact value returned by single_calloc.
    161161 **/
    162162extern void single_free(void* storage, volatile intptr_t* in_use_flag, void* p);
    163163
     
    218218    void* end;
    219219};
    220220
    221 // define <size> bytes of storage and prepare <name> for use with
     221// define \<size\> bytes of storage and prepare <name> for use with
    222222// static_calloc.
    223223// must be invoked from file or function scope.
    224224#define STATIC_STORAGE(name, size)\
     
    271271wrapper code in release builds and re-write when looking for overruns.
    272272
    273273example usage:
    274 OverrunProtector<your_class> your_class_wrapper;
     274OverrunProtector\<your_class\> your_class_wrapper;
    275275..
    276276your_class* yc = your_class_wrapper.get();  // unlock, make ready for use
    277277if(!yc)         // your_class_wrapper's one-time alloc of a your_class-
  • source/lib/allocators/bucket.h

     
    6969/**
    7070 * ready the Bucket object for use.
    7171 *
    72  * @param Bucket*
     72 * @param b Bucket*
    7373 * @param el_size 0 to allow variable-sized allocations (which cannot be
    7474 * freed individually); otherwise, it specifies the number of bytes that
    7575 * will be returned by bucket_alloc (whose size parameter is then ignored).
     
    7878LIB_API LibError bucket_create(Bucket* b, size_t el_size);
    7979
    8080/**
    81  * free all memory that ensued from <b>.
     81 * free all memory that ensued from \<b\>.
    8282 *
    8383 * future alloc and free calls on this Bucket will fail.
    8484 *
    85  * @param Bucket*
     85 * @param b Bucket*
    8686 **/
    8787LIB_API void bucket_destroy(Bucket* b);
    8888
     
    9090 * Dole out memory from the Bucket.
    9191 * exhausts the freelist before returning new entries to improve locality.
    9292 *
    93  * @param Bucket*
     93 * @param b Bucket*
    9494 * @param size bytes to allocate; ignored if bucket_create's el_size was not 0.
    9595 * @return allocated memory, or 0 if the Bucket would have to be expanded and
    9696 * there isn't enough memory to do so.
     
    106106 * rationale: avoids having to pass el_size here and compare with size when
    107107 * allocating; also prevents fragmentation and leaking memory.
    108108 *
    109  * @param Bucket*
     109 * @param b Bucket*
    110110 * @param el entry allocated via bucket_alloc.
    111111 **/
    112112LIB_API void bucket_free(Bucket* b, void* el);
  • source/lib/allocators/dynarray.h

     
    6969 *
    7070 * use-after-free is impossible because the memory is unmapped.
    7171 *
    72  * @param DynArray* da; zeroed afterwards.
     72 * @param da DynArray* zeroed afterwards.
    7373 * @return LibError
    7474 **/
    7575LIB_API LibError da_free(DynArray* da);
     
    8686LIB_API LibError da_set_size(DynArray* da, size_t new_size);
    8787
    8888/**
    89  * Make sure at least <size> bytes starting at da->pos are committed and
     89 * Make sure at least \<size\> bytes starting at da-\>pos are committed and
    9090 * ready for use.
    9191 *
    92  * @param DynArray*
     92 * @param da DynArray*
    9393 * @param size Minimum amount to guarantee [bytes]
    9494 * @return LibError
    9595 **/
  • source/lib/allocators/pool.h

     
    5656};
    5757
    5858/**
    59  * pass as pool_create's <el_size> param to indicate variable-sized allocs
     59 * pass as pool_create's \<el_size\> param to indicate variable-sized allocs
    6060 * are required (see below).
    6161 **/
    6262const size_t POOL_VARIABLE_ALLOCS = ~(size_t)0u;
     
    6464/**
    6565 * Ready Pool for use.
    6666 *
    67  * @param Pool*
     67 * @param p Pool*
    6868 * @param max_size Max size [bytes] of the Pool; this much
    6969 * (rounded up to next page multiple) virtual address space is reserved.
    7070 * no virtual memory is actually committed until calls to pool_alloc.
     
    8484 * impossible because it is marked not-present via MMU.
    8585 * (* no matter if in freelist or unused or "allocated" to user)
    8686 *
    87  * @param Pool*
     87 * @param p Pool*
    8888 * @return LibError.
    8989 **/
    9090LIB_API LibError pool_destroy(Pool* p);
     
    9494 *
    9595 * this is useful for callers that use several types of allocators.
    9696 *
    97  * @param Pool*
     97 * @param p Pool*
     98 * @param el
    9899 * @return bool.
    99100 **/
    100101LIB_API bool pool_contains(const Pool* p, void* el);
     
    103104 * Dole out memory from the pool.
    104105 * exhausts the freelist before returning new entries to improve locality.
    105106 *
    106  * @param Pool*
     107 * @param p Pool*
    107108 * @param size bytes to allocate; ignored if pool_create's el_size was not 0.
    108109 * @return allocated memory, or 0 if the Pool would have to be expanded and
    109110 * there isn't enough memory to do so.
     
    117118 * rationale: avoids having to pass el_size here and compare with size when
    118119 * allocating; also prevents fragmentation and leaking memory.
    119120 *
    120  * @param Pool*
     121 * @param p Pool*
    121122 * @param el Element returned by pool_alloc.
    122123 **/
    123124LIB_API void pool_free(Pool* p, void* el);
     
    128129 * this resets it as if freshly pool_create-d, but doesn't release the
    129130 * underlying reserved virtual memory.
    130131 *
    131  * @param Pool*
     132 * @param p Pool*
    132133 **/
    133134LIB_API void pool_free_all(Pool* p);
    134135
  • source/lib/base32.h

     
    3030/**
    3131 * generate the base32 textual representation of a buffer.
    3232 *
    33  * @param len size [bytes] of input
    34  * @param big-endian input data (assumed to be integral number of bytes)
    35  * @param output string; zero-terminated. must be big enough
     33 * @param len Size [bytes] of input
     34 * @param in Big-endian input data (assumed to be integral number of bytes)
     35 * @param out Output string; zero-terminated. must be big enough
    3636 * (i.e. at least ceil(len*CHAR_BIT/5) + 1 chars)
    3737 **/
    3838extern void base32(const size_t len, const u8* in, u8* out);
  • source/lib/bits.h

     
    2828#define INCLUDED_BITS
    2929
    3030/**
    31  * value of bit number <n>.
     31 * value of bit number \<n\>.
    3232 *
    3333 * @param n bit index.
    3434 *
     
    4444}
    4545
    4646/**
    47  * pretty much the same as Bit<unsigned>.
     47 * pretty much the same as Bit\<unsigned\>.
    4848 * this is intended for the initialization of enum values, where a
    4949 * compile-time constant is required.
    5050 **/
    5151#define BIT(n) (1u << (n))
    5252
    53 
    5453template<typename T>
    5554bool IsBitSet(T value, size_t index)
    5655{
     
    6766/**
    6867 * a mask that includes the lowest N bits
    6968 *
    70  * @param num_bits number of bits in mask
     69 * @param numBits Number of bits in mask.
    7170 **/
    7271template<typename T>
    7372T bit_mask(size_t numBits)
     
    162161 * floor(log2(f))
    163162 * fast, uses the FPU normalization hardware.
    164163 *
    165  * @param f (float) input; MUST be > 0, else results are undefined.
     164 * @param x (float) input; MUST be > 0, else results are undefined.
    166165 * @return floor of the base-2 logarithm (i.e. rounded down).
    167166 **/
    168167extern int floor_log2(const float x);
     
    179178/**
    180179 * round number up/down to the next given multiple.
    181180 *
    182  * @param multiple: must be a power of two.
     181 * @param n Number to round.
     182 * @param multiple Must be a power of two.
    183183 **/
    184184template<typename T>
    185185T round_up(T n, T multiple)
  • source/lib/byte_order.h

     
    113113LIB_API void write_be64(void* p, u64 x);    /// see write_be16
    114114
    115115/**
    116  * zero-extend <size> (truncated to 8) bytes of little-endian data to u64,
    117  * starting at address <p> (need not be aligned).
     116 * zero-extend \<size\> (truncated to 8) bytes of little-endian data to u64,
     117 * starting at address \<p\> (need not be aligned).
    118118 **/
    119119LIB_API u64 movzx_le64(const u8* p, size_t size);
    120120LIB_API u64 movzx_be64(const u8* p, size_t size);
    121121
    122122/**
    123  * sign-extend <size> (truncated to 8) bytes of little-endian data to i64,
    124  * starting at address <p> (need not be aligned).
     123 * sign-extend \<size\> (truncated to 8) bytes of little-endian data to i64,
     124 * starting at address \<p\> (need not be aligned).
    125125 **/
    126126LIB_API i64 movsx_le64(const u8* p, size_t size);
    127127LIB_API i64 movsx_be64(const u8* p, size_t size);
  • source/lib/code_annotation.h

     
    124124#define UID2__ PASTE3__(LINE_, __LINE__, _2)
    125125
    126126/**
    127  * compile-time debug_assert. causes a compile error if the expression
    128  * evaluates to zero/false.
     127 * @param expr Expression that is expected to evaluate to non-zero at compile-time.
     128 *        Compile-time debug_assert. Causes a compile error if the expression
     129 *        evaluates to zero/false.
    129130 *
    130  * no runtime overhead; may be used anywhere, including file scope.
    131  * especially useful for testing sizeof types.
    132  *
    133  * @param expression that is expected to evaluate to non-zero at compile-time.
     131 * No runtime overhead; may be used anywhere, including file scope.
     132 * Especially useful for testing sizeof types.
    134133 **/
    135134#define cassert(expr) typedef static_assert_<(expr)>::type UID__
    136135template<bool> struct static_assert_;
     
    140139};
    141140
    142141/**
    143  * compile-time debug_assert. causes a compile error if the expression
    144  * evaluates to zero/false.
     142 *@copydoc cassert(expr)
    145143 *
    146  * no runtime overhead; may be used anywhere, including file scope.
    147  * especially useful for testing sizeof types.
    148  *
    149  * this version has a less helpful error message, but redefinition doesn't
     144 * This version has a less helpful error message, but redefinition doesn't
    150145 * trigger warnings.
    151  *
    152  * @param expression that is expected to evaluate to non-zero at compile-time.
    153146 **/
    154147#define cassert2(expr) extern u8 CASSERT_FAILURE[1][(expr)]
    155148
  • source/lib/debug.h

     
    6565 * write a formatted string to the debug channel, subject to filtering
    6666 * (see below). implemented via debug_puts - see performance note there.
    6767 *
    68  * @param format string and varargs; see printf.
     68 * @param fmt Format string and varargs; see printf.
    6969 **/
    7070LIB_API void debug_printf(const wchar_t* fmt, ...) WPRINTF_ARGS(1);
    7171
     
    188188 * depending on "debug level", because changing that entails lengthy
    189189 * compiles and it's too coarse-grained. instead, we require all
    190190 * strings to start with "tag_string|" (exact case and no quotes;
    191  * the alphanumeric-only <tag_string> identifies output type).
     191 * the alphanumeric-only \<tag_string\> identifies output type).
    192192 * they are then subject to filtering: only if the tag has been
    193193 * "added" via debug_filter_add is the appendant string displayed.
    194194 *
     
    231231 * write to memory buffer (fast)
    232232 * used for "last activity" reporting in the crashlog.
    233233 *
    234  * @param format string and varags; see printf.
     234 * @param fmt Format string and varags; see printf.
    235235 **/
    236236LIB_API void debug_wprintf_mem(const wchar_t* fmt, ...) WPRINTF_ARGS(1);
    237237
     
    253253//-----------------------------------------------------------------------------
    254254
    255255/**
    256  * make sure the expression <expr> evaluates to non-zero. used to validate
     256 * make sure the expression \<expr\> evaluates to non-zero. used to validate
    257257 * invariants in the program during development and thus gives a
    258258 * very helpful warning if something isn't going as expected.
    259259 * sprinkle these liberally throughout your code!
     
    267267 * - consistency (everything here is prefixed with debug_) and
    268268 * - to avoid inadvertent use of the much less helpful built-in CRT assert.
    269269 *   if we were to override assert, it would be difficult to tell whether
    270  *   user source has included <assert.h> (possibly indirectly via other
     270 *   user source has included \<assert.h\> (possibly indirectly via other
    271271 *   headers) and thereby stomped on our definition.
    272272 **/
    273273#define debug_assert(expr) \
     
    407407
    408408
    409409/**
    410  * maximum number of characters (including trailing \0) written to
     410 * Maximum number of characters (including trailing \\0) written to
    411411 * user's buffers by debug_ResolveSymbol.
    412412 **/
    413413const size_t DBG_SYMBOL_LEN = 1000;
     
    437437 * write a complete stack trace (including values of local variables) into
    438438 * the specified buffer.
    439439 *
    440  * @param buf target buffer
    441  * @param max_chars of buffer (should be several thousand)
    442  * @param context platform-specific representation of execution state
    443  * (e.g. Win32 CONTEXT). if not NULL, tracing starts there; this is useful
    444  * for exceptions. otherwise, tracing starts from the current call stack.
    445  * @param lastFuncToSkip is used for omitting error-reporting functions like
    446  * debug_OnAssertionFailure from the stack trace. it is either 0 (skip nothing) or
    447  * a substring of a function's name (this allows platform-independent
    448  * matching of stdcall-decorated names).
    449  * rationale: this is safer than specifying a fixed number of frames,
    450  * which can be incorrect due to inlining.
     440 * @param buf Target buffer.
     441 * @param maxChars Max chars of buffer (should be several thousand).
     442 * @param context Platform-specific representation of execution state
     443 *        (e.g. Win32 CONTEXT). if not NULL, tracing starts there; this is useful
     444 *        for exceptions. Otherwise, tracing starts from the current call stack.
     445 * @param lastFuncToSkip Is used for omitting error-reporting functions like
     446 *        debug_OnAssertionFailure from the stack trace. It is either 0 (skip nothing) or
     447 *        a substring of a function's name (this allows platform-independent
     448 *        matching of stdcall-decorated names).
     449 *        Rationale: this is safer than specifying a fixed number of frames,
     450 *        which can be incorrect due to inlining.
    451451 * @return LibError; ERR::REENTERED if reentered via recursion or
    452  * multithreading (not allowed since static data is used).
     452 *        multithreading (not allowed since static data is used).
    453453 **/
    454454LIB_API LibError debug_DumpStack(wchar_t* buf, size_t maxChars, void* context, const wchar_t* lastFuncToSkip);
    455455
     
    523523/**
    524524 * free memory from the error message.
    525525 *
    526  * @param ErrorMessageMem*
     526 * @param emm ErrorMessageMem*
    527527 **/
    528528LIB_API void debug_FreeErrorMessage(ErrorMessageMem* emm);
    529529
  • source/lib/debug_stl.h

     
    4040 * reduce complicated STL symbol names to human-readable form.
    4141 *
    4242 * algorithm: remove/replace undesired substrings in one pass (fast).
    43  * example: "std::basic_string<char, char_traits<char>,
    44  * std::allocator<char> >" => "string".
     43 * example: "std::basic_string\<char\>, char_traits\<char\>,
     44 * std::allocator\<char\> "\>" =\> "string".
    4545 *
    46  * @param buffer holding input symbol name; modified in-place.
    47  * there is no length limit; must be large enough to hold typical STL
    48  * strings. DBG_SYMBOL_LEN chars is a good measure.
     46 * @param name Buffer holding input symbol name; modified in-place.
     47 *        There is no length limit; must be large enough to hold typical STL
     48 *        strings. DBG_SYMBOL_LEN chars is a good measure.
    4949 * @return name for convenience.
    5050 **/
    5151extern wchar_t* debug_stl_simplify_name(wchar_t* name);
  • source/lib/file/archive/archive_zip.cpp

     
    422422
    423423private:
    424424    /**
    425      * scan buffer for a Zip file record.
     425     * Scan buffer for a Zip file record.
    426426     *
     427     * @param buf
     428     * @param size
    427429     * @param start position within buffer
    428430     * @param magic signature of record
    429431     * @param recordSize size of record (including signature)
  • source/lib/file/archive/codec.h

     
    5858    /**
    5959     * process (i.e. compress or decompress) data.
    6060     *
    61      * @param outSize bytes remaining in the output buffer; shall not be zero.
    62      * @param inConsumed, outProduced how many bytes in the input and
    63      * output buffers were used. either or both of these can be zero if
    64      * the input size is small or there's not enough output space.
     61     * @param in
     62     * @param inSize
     63     * @param out
     64     * @param outSize Bytes remaining in the output buffer; shall not be zero.
     65     * @param inConsumed,outProduced How many bytes in the input and
     66     *        output buffers were used. either or both of these can be zero if
     67     *        the input size is small or there's not enough output space.
    6568     **/
    6669    virtual LibError Process(const u8* in, size_t inSize, u8* out, size_t outSize, size_t& inConsumed, size_t& outProduced) = 0;
    6770
    6871    /**
    69      * flush buffers and make sure all output has been produced.
     72     * Flush buffers and make sure all output has been produced.
    7073     *
    71      * @param checksum over all input data.
     74     * @param checksum Checksum over all input data.
     75     * @param outProduced
    7276     * @return error status for the entire operation.
    7377     **/
    7478    virtual LibError Finish(u32& checksum, size_t& outProduced) = 0;
     
    7781     * update a checksum to reflect the contents of a buffer.
    7882     *
    7983     * @param checksum the initial value (must be 0 on first call)
     84     * @param in
     85     * @param inSize
    8086     * @return the new checksum. note: after all data has been seen, this is
    8187     * identical to the what Finish would return.
    8288     **/
  • source/lib/file/common/trace.h

     
    108108    /**
    109109     * load entries from file.
    110110     *
    111      * @param pathname (native, absolute)
     111     * @param osPathname (native, absolute)
    112112     *
    113113     * replaces any existing entries.
    114114     **/
  • source/lib/file/file_system_util.h

     
    5959/**
    6060 * call back for each file in a directory tree
    6161 *
    62  * @param cb see DirCallback
     62 * @param fs
     63 * @param path
     64 * @param cb See DirCallback
     65 * @param cbData
    6366 * @param pattern that file names must match. '*' and '&' wildcards
    64  * are allowed. 0 matches everything.
    65  * @param flags see DirFlags
    66  * @param LibError
     67 *        are allowed. 0 matches everything.
     68 * @param flags @ref DirFlags
     69 * @return LibError
    6770 **/
    6871extern LibError ForEachFile(const PIVFS& fs, const VfsPath& path, FileCallback cb, uintptr_t cbData, const wchar_t* pattern = 0, size_t flags = 0);
    6972
    7073
    7174/**
    72  * determine the next available pathname with a given format.
    73  * this is useful when creating new files without overwriting the previous
     75 * Determine the next available pathname with a given format.
     76 * This is useful when creating new files without overwriting the previous
    7477 * ones (screenshots are a good example).
    7578 *
    76  * @param pathnameFormat format string for the pathname; must contain one
    77  * format specifier for an integer.
    78  * example: "screenshots/screenshot%04d.png"
     79 * @param fs
     80 * @param pathnameFormat Format string for the pathname; must contain one
     81 *        format specifier for an integer.
     82 *        Example: "screenshots/screenshot%04d.png"
    7983 * @param nextNumber in: the first number to try; out: the next number.
    80  * if 0, numbers corresponding to existing files are skipped.
     84 *        If 0, numbers corresponding to existing files are skipped.
    8185 * @param nextPathname receives the output.
    8286 **/
    8387extern void NextNumberedFilename(const PIVFS& fs, const VfsPath& pathnameFormat, size_t& nextNumber, VfsPath& nextPathname);
  • source/lib/file/io/block_cache.h

     
    6464    /**
    6565     * Add a block to the cache.
    6666     *
    67      * @param id key that will be used to Retrieve the block.
     67     * @param id Key that will be used to Retrieve the block.
     68     * @param buf
    6869     *
    69      * call this when the block's IO has completed; its data will
     70     * Call this when the block's IO has completed; its data will
    7071     * satisfy subsequent Retrieve calls for the same id.
    71      * if CONFIG2_CACHE_READ_ONLY, the memory is made read-only.
     72     * If CONFIG2_CACHE_READ_ONLY, the memory is made read-only.
    7273     **/
    7374    void Add(BlockId id, const shared_ptr<u8>& buf);
    7475
  • source/lib/file/vfs/file_cache.h

     
    6868    /**
    6969     * Add a file's contents to the cache.
    7070     *
    71      * the cache will be able to satisfy subsequent Retrieve() calls by
     71     * The cache will be able to satisfy subsequent Retrieve() calls by
    7272     * returning this data; if CONFIG2_CACHE_READ_ONLY, the buffer is made
    73      * read-only. if need be and no references are currently attached to it,
     73     * read-only. If need be and no references are currently attached to it,
    7474     * the memory can also be commandeered by Reserve().
    7575     *
     76     * @param data
     77     * @param size
    7678     * @param pathname key that will be used to Retrieve file contents.
    7779     * @param cost is the expected cost of retrieving the file again and
    78      * influences how/when it is evicted from the cache.
     80     *        influences how/when it is evicted from the cache.
    7981     **/
    8082    void Add(const VfsPath& pathname, const shared_ptr<u8>& data, size_t size, size_t cost = 1);
    8183
  • source/lib/file/vfs/vfs.h

     
    6969     *
    7070     * @param mountPoint (will be created if it does not already exist)
    7171     * @param path real directory path
     72     * @param flags
     73     * @param priority
    7274     * @return LibError.
    7375     *
    7476     * if files are encountered that already exist in the VFS (sub)directories,
     
    8082    virtual LibError Mount(const VfsPath& mountPoint, const fs::wpath& path, size_t flags = 0, size_t priority = 0) = 0;
    8183
    8284    /**
    83      * retrieve information about a file (similar to POSIX stat)
     85     * Retrieve information about a file (similar to POSIX stat).
    8486     *
    85      * @param pfileInfo receives information about the file. passing NULL
    86      * suppresses warnings if the file doesn't exist.
     87     * @param pathname
     88     * @param pfileInfo receives information about the file. Passing NULL
     89     *        suppresses warnings if the file doesn't exist.
    8790     *
    8891     * @return LibError.
    8992     **/
    9093    virtual LibError GetFileInfo(const VfsPath& pathname, FileInfo* pfileInfo) const = 0;
    9194
    9295    /**
    93      * retrieve lists of all files and subdirectories in a directory.
     96     * Retrieve lists of all files and subdirectories in a directory.
    9497     *
    9598     * @return LibError.
    9699     *
    97      * rationale:
     100     * Rationale:
    98101     * - this interface avoids having to lock the directory while an
    99102     *   iterator is extant.
    100103     * - we cannot efficiently provide routines for returning files and
     
    103106    virtual LibError GetDirectoryEntries(const VfsPath& path, FileInfos* fileInfos, DirectoryNames* subdirectoryNames) const = 0;
    104107
    105108    /**
    106      * create a file with the given contents.
    107      *
     109     * Create a file with the given contents.
     110     * @param pathname
     111     * @param fileContents
    108112     * @param size [bytes] of the contents, will match that of the file.
    109113     * @return LibError.
    110114     *
     
    114118    virtual LibError CreateFile(const VfsPath& pathname, const shared_ptr<u8>& fileContents, size_t size) = 0;
    115119
    116120    /**
    117      * read an entire file into memory.
     121     * Read an entire file into memory.
    118122     *
     123     * @param pathname
    119124     * @param fileContents receives a smart pointer to the contents.
    120      *   CAVEAT: this will be taken from the file cache if the VFS was
    121      *   created with cacheSize != 0 and size < cacheSize. there is no
    122      *   provision for Copy-on-Write, which means that such buffers
    123      *   must not be modified (this is enforced via mprotect).
     125     *        CAVEAT: this will be taken from the file cache if the VFS was
     126     *        created with cacheSize != 0 and size < cacheSize. There is no
     127     *        provision for Copy-on-Write, which means that such buffers
     128     *        must not be modified (this is enforced via mprotect).
    124129     * @param size receives the size [bytes] of the file contents.
    125130     * @return LibError.
    126131     **/
  • source/lib/file/vfs/vfs_lookup.h

     
    4949 * Resolve a pathname.
    5050 *
    5151 * @param pathname
    52  * @param vfsStartDirectory
     52 * @param startDirectory VfsStartDirectory.
    5353 * @param directory is set to the last directory component that is encountered.
    54  * @param file is set to 0 if there is no name component, otherwise the
    55  * corresponding file.
    56  * @param flags see VfsLookupFlags.
     54 * @param pfile File is set to 0 if there is no name component, otherwise the
     55 *        corresponding file.
     56 * @param flags @see VfsLookupFlags.
    5757 * @return LibError (INFO::OK if all components in pathname exist).
    5858 *
    5959 * to allow noiseless file-existence queries, this does not raise warnings.
  • source/lib/path_util.h

     
    7070LIB_API bool path_is_subpath(const wchar_t* s1, const wchar_t* s2);
    7171
    7272/**
    73  * get the name component of a path.
     73 * Get the name component of a path.
     74 * Skips over all characters up to the last dir separator, if any.
    7475 *
    75  * skips over all characters up to the last dir separator, if any.
    76  * @param path input path.
    77  * @return pointer to name component within <path>.
     76 * @param path Input path.
     77 * @return pointer to name component within \<path\>.
    7878 **/
    7979LIB_API const wchar_t* path_name_only(const wchar_t* path);
    8080
  • source/lib/res/graphics/cursor.h

     
    3030#include "lib/file/vfs/vfs.h"
    3131
    3232/**
    33  * draw the cursor on-screen.
     33 * Draw the cursor on-screen.
    3434 *
    35  * @param name base name of cursor or zero to hide the cursor.
    36  * @param x,y coordinates [pixels] (origin at lower left)
    37  * (the origin is convenient for drawing via OpenGL, but requires the
    38  * mouse Y coordinate to be subtracted from the client area height.
    39  * making the caller responsible for this avoids a dependency on
    40  * the g_yres global variable.)
     35 * @param vfs
     36 * @param name Base name of cursor or zero to hide the cursor.
     37 * @param x,y Coordinates [pixels] (origin at lower left)
     38 *        (the origin is convenient for drawing via OpenGL, but requires the
     39 *        mouse Y coordinate to be subtracted from the client area height.
     40 *        Making the caller responsible for this avoids a dependency on
     41 *        the g_yres global variable.)
    4142 *
    42  * uses a hardware mouse cursor where available, otherwise a
     43 * Uses a hardware mouse cursor where available, otherwise a
    4344 * portable OpenGL implementation.
    4445 **/
    4546extern LibError cursor_draw(const PIVFS& vfs, const wchar_t* name, int x, int y);
  • source/lib/res/graphics/ogl_shader.h

     
    5454/**
    5555 * Create, load and compile a shader object.
    5656 *
    57  * @param pathname location of the file containing the shader's source code.
    58  * @param type e.g. GL_VERTEX_SHADER_ARB.
     57 * @param vfs
     58 * @param pathname Location of the file containing the shader's source code.
     59 * @param type Type e.g. GL_VERTEX_SHADER_ARB.
    5960 **/
    6061Handle ogl_shader_load(const PIVFS& vfs, const VfsPath& pathname, GLenum type);
    6162
     
    7879/**
    7980 * Load a program object.
    8081 *
     82 * @param vfs
    8183 * @param pathname XML file describing the program.
    8284 *
    8385 * note: Shader objects are loaded and attached automatically.
  • source/lib/res/graphics/ogl_tex.h

     
    216216/**
    217217* Load and return a handle to the texture.
    218218*
     219* @param vfs
     220* @param pathname
    219221* @param flags h_alloc flags.
    220222* @return Handle to texture or negative LibError
    221223* for a list of supported formats, see tex.h's tex_load.
     
    226228* Find and return an existing texture object, if it has already been
    227229* loaded and is still in memory.
    228230*
    229 * @param fn VFS filename of texture.
     231* @param pathname fn VFS filename of texture.
    230232* @return Handle to texture or negative LibError
    231233*/
    232234extern Handle ogl_tex_find(const VfsPath& pathname);
     
    237239* had been loaded by ogl_tex_load.
    238240*
    239241* @param t Texture object.
    240 * @param fn filename or description of texture. not strictly needed,
     242* @param vfs
     243* @param pathname fn filename or description of texture. not strictly needed,
    241244*        but would allow h_filename to return meaningful info for
    242245*        purposes of debugging.
     246* @param flags
    243247* @return Handle to texture or negative LibError
    244248*
    245249* note: because we cannot guarantee that callers will pass distinct
     
    272276* Override default filter (see {@link #ogl_tex_set_defaults}) for
    273277* this texture.
    274278*
     279* @param ht Texture handle
    275280* @param filter OpenGL minification and magnification filter
    276281*        (rationale: see {@link OglTexState})
    277282* @return LibError
     
    283288/**
    284289* Override default wrap mode (GL_REPEAT) for this texture.
    285290*
     291* @param ht Texture handle
    286292* @param wrap OpenGL wrap mode (for both S and T coordinates)
    287293*        (rationale: see {@link OglTexState})
    288294* @return LibError
     
    312318* Override the default decision and force/disallow use of the
    313319* given feature. Typically called from ah_override_gl_upload_caps.
    314320*
    315 * @param what feature to influence
    316 * @param allow disable/enable flag
     321* @param what Feature to influence.
     322* @param allow Disable/enable flag.
    317323*/
    318324extern void ogl_tex_override(OglTexOverrides what, OglTexAllow allow);
    319325
    320326/**
    321327* Upload texture to OpenGL.
    322328*
     329* @param ht Texture handle
    323330* @param fmt_ovr optional override for OpenGL format (e.g. GL_RGB),
    324331*        which is decided from bpp / Tex flags
    325332* @param q_flags_ovr optional override for global default
    326333*        OglTexQualityFlags
    327334* @param int_fmt_ovr optional override for OpenGL internal format
    328335*        (e.g. GL_RGB8), which is decided from fmt / q_flags.
    329 * @return LibError
     336* @return LibError.
     337*
    330338* Side Effects:
    331 * <UL>
    332 *   <LI>enables texturing on TMU 0 and binds the texture to it;
    333 *   <LI>frees the texel data! see ogl_tex_get_data.
    334 * </UL>
     339* - enables texturing on TMU 0 and binds the texture to it;
     340* - frees the texel data! see ogl_tex_get_data.
    335341*/
    336342extern LibError ogl_tex_upload(const Handle ht, GLenum fmt_ovr = 0, int q_flags_ovr = 0, GLint int_fmt_ovr = 0);
    337343
     
    404410/**
    405411* (partially) Transform pixel format of the texture.
    406412*
    407 * @param ht Texture handle
    408 * @param flags the TexFlags that are to be <em>changed</em>
     413* @param ht Texture handle.
     414* @param flags the TexFlags that are to be \<em\>changed\</em\>.
    409415* @return LibError
    410416* @see tex_transform
    411417*
     
    416422/**
    417423* Transform pixel format of the texture.
    418424*
    419 * @param ht Texture handle
    420 * @param flags desired new TexFlags indicating pixel format.
     425* @param ht Texture handle.
     426* @param new_flags Flags desired new TexFlags indicating pixel format.
    421427* @return LibError
    422428* @see tex_transform
    423429*
     
    431437 * Return whether native S3TC texture compression support is available.
    432438 * If not, textures will be decompressed automatically, hurting performance.
    433439 *
    434  * @return true if native S3TC supported
     440 * @return true if native S3TC supported.
    435441 *
    436442 * ogl_tex_upload must be called at least once before this.
    437443 */
  • source/lib/res/graphics/unifont.h

     
    3535/**
    3636 * Load a font.
    3737 *
     38 * @param vfs
    3839 * @param pathname path and basename of the font definition file
    39  * (.fnt) and its texture (.png)
     40 *        (.fnt) and its texture (.png)
     41 * @param flags
    4042 **/
    4143extern Handle unifont_load(const PIVFS& vfs, const VfsPath& pathname, size_t flags = 0);
    4244
     
    6971extern void glwprintf(const wchar_t* fmt, ...) WPRINTF_ARGS(1);
    7072
    7173/**
    72  * varargs version of glwprintf.
     74 * Varargs version of glwprintf.
    7375 *
    74  * @param fmt, args - see vfprintf
     76 * @param fmt
     77 * @param args
     78 * @see vfprintf
    7579 **/
    7680extern void glvwprintf(const wchar_t* fmt, va_list args) VWPRINTF_ARGS(1);
    7781
    7882/**
    7983 * Determine pixel extents of a string.
    8084 *
     85 * @param h
    8186 * @param text string in question.
     87 * @param width
    8288 * @param height is roughly the pixel height of a capital letter, for use
    8389 * when aligning text in an aesthetically pleasing way.
    8490 *
  • source/lib/res/sound/snd_mgr.cpp

     
    899899
    900900
    901901/**
    902  * open and return a handle to a sound file's data.
     902 * Open and return a handle to a sound file's data.
    903903 *
     904 * @param vfs
     905 * @param pathname
    904906 * @param is_stream (default false) indicates whether this file should be
    905  * streamed in (opening is faster, it won't be kept in memory, but
    906  * only one instance can be open at a time; makes sense for large music files)
    907  * or loaded immediately.
     907 *        streamed in (opening is faster, it won't be kept in memory, but
     908 *        only one instance can be open at a time; makes sense for large music files)
     909 *        or loaded immediately.
    908910 * @return Handle or LibError on failure
    909911 */
    910912static Handle snd_data_load(const PIVFS& vfs, const VfsPath& pathname, bool is_stream)
     
    915917}
    916918
    917919
    918 
    919920/**
    920921 * Free the sound.
    921922 *
     
    11601161/**
    11611162 * Is the fade operation currently active?
    11621163 *
    1163  * @param FadeInfo
     1164 * @param fi FadeInfo.
    11641165 * @return bool
    11651166 */
    11661167static bool fade_is_active(FadeInfo& fi)
     
    13271328
    13281329
    13291330/**
    1330  * open and return a handle to a sound instance.
     1331 * Open and return a handle to a sound instance.
    13311332 *
    1332  * @param pathname. if a text file (extension ".txt"),
     1333 * @param vfs
     1334 * @param pathname If a text file (extension ".txt"),
    13331335 * it is assumed to be a definition file containing the
    13341336 * sound file name and its gain (0.0 .. 1.0).
    13351337 * otherwise, it is taken to be the sound file name and
     
    14821484}
    14831485
    14841486
    1485 //-----------------------------------------------------------------------------
    1486 
    14871487/**
    14881488 * Send the VSrc properties to OpenAL (when we actually have a source).
    14891489 * called by snd_set * and vsrc_grant.
    14901490 *
    1491  * @param VSrc*
     1491 * @param vs VSrc*
    14921492 */
    14931493static void vsrc_latch(VSrc* vs)
    14941494{
     
    15511551/**
    15521552 * Dequeue any of the VSrc's sound buffers that are finished playing.
    15531553 *
    1554  * @param VSrc*
     1554 * @param vs VSrc*
    15551555 * @return int number of entries that were removed.
    15561556 */
    15571557static int vsrc_deque_finished_bufs(VSrc* vs)
     
    15851585 * Update the VSrc - perform fade (if active), queue/unqueue buffers.
    15861586 * Called once a frame.
    15871587 *
    1588  * @param VSrc*
     1588 * @param vs VSrc*
    15891589 * @return LibError
    15901590 */
    15911591static LibError vsrc_update(VSrc* vs)
     
    16451645 * Try to give the VSrc an AL source so that it can (re)start playing.
    16461646 * called by snd_play and voice management.
    16471647 *
    1648  * @param VSrc*
     1648 * @param vs VSrc*
    16491649 * @return LibError (ERR::FAIL if no AL source is available)
    16501650 */
    16511651static LibError vsrc_grant(VSrc* vs)
     
    16781678 * called when closing the VSrc, or when voice management decides
    16791679 * this VSrc must yield to others of higher priority.
    16801680 *
    1681  * @param VSrc*
     1681 * @param vs VSrc*
    16821682 * @return LibError
    16831683 */
    16841684static LibError vsrc_reclaim(VSrc* vs)
     
    17621762 *
    17631763 * @param hvs Handle to VSrc
    17641764 * @param x,y,z coordinates (interpretation: see below)
    1765  * @param relative if true, (x,y,z) is treated as relative to the listener;
     1765 * @param relative If true, (x,y,z) is treated as relative to the listener;
    17661766 * otherwise, it is the position in world coordinates (default).
    17671767 * @return LibError
    17681768 */
     
    18481848 * - once looping is again disabled and the sound has reached its end,
    18491849 *   the sound instance is freed automatically (as if never looped).
    18501850 *
    1851  * @param hvs Handle to VSrc
    1852  * @param bool loop
     1851 * @param hvs Handle to VSrc.
     1852 * @param loop Boolean to enable/disable looping on the sound source.
    18531853 * @return LibError
    18541854 */
    18551855LibError snd_set_loop(Handle hvs, bool loop)
     
    18651865
    18661866/**
    18671867 * Fade the sound source in or out over time.
    1868  * Its gain starts at <initial_gain> immediately and is moved toward
    1869  * <final_gain> over <length> seconds.
     1868 * Its gain starts at \<initial_gain\> immediately and is moved toward
     1869 * \<final_gain\> over \<length\> seconds.
    18701870 *
    18711871 * may be called at any time; fails with invalid handle return if
    18721872 * the sound has already been closed (e.g. it never played).
     
    19541954    return v[0]*v[0] + v[1]*v[1] + v[2]*v[2];
    19551955}
    19561956
    1957 
    19581957/**
    1959  * determine new priority of the VSrc based on distance to listener and
     1958 * Determine new priority of the VSrc based on distance to listener and
    19601959 * static priority.
    1961  * called via list_foreach.
     1960 * Called via list_foreach.
    19621961 *
    1963  * @param VSrc*
     1962 * @param vs VSrc*
    19641963 */
    19651964static void calc_cur_pri(VSrc* vs)
    19661965{
  • source/lib/res/sound/snd_mgr.h

     
    142142extern LibError snd_dev_set(const char* alc_new_dev_name);
    143143
    144144/**
    145  * set maximum number of voices to play simultaneously;
     145 * Set maximum number of voices to play simultaneously;
    146146 * this can be used to reduce mixing cost on low-end systems.
    147147 *
    148  * @param cap maximum number of voices. ignored if higher than
    149  * an implementation-defined limit anyway.
     148 * @param limit Maximum number of voices. Ignored if higher than
     149 *        an implementation-defined limit anyway.
    150150 * @return LibError
    151151 **/
    152 extern LibError snd_set_max_voices(size_t cap);
     152extern LibError snd_set_max_voices(size_t limit);
    153153
    154154/**
    155155 * set amplitude modifier, which is effectively applied to all sounds.
     
    167167//
    168168
    169169/**
    170  * open and return a handle to a sound instance.
    171  * this loads the sound data and makes it ready for other snd_* APIs.
     170 * Open and return a handle to a sound instance.
     171 * This loads the sound data and makes it ready for other snd_* APIs.
    172172 *
    173  * @param pathname. if a text file (extension ".txt"), it is
    174  *   assumed to be a definition file containing the sound file name and
    175  *   its gain (0.0 .. 1.0).
    176  * otherwise, it is taken to be the sound file name and
    177  *   gain is set to the default of 1.0 (no attenuation).
    178  *
    179  * @param is_stream (default false) forces the sound to be opened as a
    180  * stream: opening is faster, it won't be kept in memory, but
    181  * only one instance can be open at a time.
     173 * @param vfs
     174 * @param pathname If a text file (extension ".txt"), it is
     175 *        assumed to be a definition file containing the sound file name and
     176 *        its gain (0.0 .. 1.0).
     177 *        Otherwise, it is taken to be the sound file name and
     178 *        gain is set to the default of 1.0 (no attenuation).
     179 * @param is_stream (Default false) Set to true to forces the sound to be opened as a
     180 *        stream: opening is faster, it won't be kept in memory, but
     181 *        only one instance can be open at a time.
    182182 * @return Handle or LibError
    183183 **/
    184 extern Handle snd_open(const PIVFS& vfs, const VfsPath& name, bool stream = false);
     184extern Handle snd_open(const PIVFS& vfs, const VfsPath& pathname, bool is_stream = false);
    185185
    186186/**
    187  * close the sound instance. if it was playing, it will be stopped.
     187 * Close the sound instance. If it was playing, it will be stopped.
    188188 *
    189  * rationale: sounds are already closed automatically when done playing;
     189 * Rationale: sounds are already closed automatically when done playing;
    190190 * this API is provided for completeness only.
    191191 *
    192  * @param hs Handle to sound instance. zeroed afterwards.
     192 * @param hvs Handle to sound instance. Zeroed afterwards.
    193193 * @return LibError
    194194 **/
    195 extern LibError snd_free(Handle& hs);
     195extern LibError snd_free(Handle& hvs);
    196196
    197197/**
    198  * start playing the sound.
     198 * Start playing the sound.
    199199 *
    200200 * Notes:
    201  * <UL>
    202  *   <LI> once done playing, the sound is automatically closed (allows
    203  *        fire-and-forget play code).
    204  *   <LI> if no hardware voice is available, this sound may not be
    205  *        played at all, or in the case of looped sounds, start later.
    206  * </UL>
     201 * - once done playing, the sound is automatically closed (allows
     202 *   fire-and-forget play code).
     203 * - if no hardware voice is available, this sound may not be
     204 *   played at all, or in the case of looped sounds, start later.
    207205 *
    208  * @param priority (min 0 .. max 1, default 0) indicates which sounds are
     206 * @param hvs Handle to VSrc.
     207 * @param static_pri (min 0 .. max 1, default 0) indicates which sounds are
    209208 * considered more important (i.e. will override others when no hardware
    210209 * voices are available). the static priority is attenuated by
    211210 * distance to the listener; see snd_update.
    212211 *
    213212 * @return LibError
    214213 **/
    215 extern LibError snd_play(Handle hs, float priority = 0.0f);
     214extern LibError snd_play(Handle hvs, float static_pri = 0.0f);
    216215
    217216/**
    218  * change 3d position of the sound source.
     217 * Change 3d position of the sound source.
    219218 *
    220  * may be called at any time; fails with invalid handle return if
     219 * May be called at any time; fails with invalid handle return if
    221220 * the sound has already been closed (e.g. it never played).
    222221 *
     222 * @param hvs Handle to the sound.
     223 * @param x,y,z
    223224 * @param relative treat (x,y,z) as relative to the listener;
    224  * if false (the default), it is the position in world coordinates.
     225 *        if false (the default), it is the position in world coordinates.
    225226 * @return LibError
    226227 **/
    227 extern LibError snd_set_pos(Handle hs, float x, float y, float z, bool relative = false);
     228extern LibError snd_set_pos(Handle hvs, float x, float y, float z, bool relative = false);
    228229
    229230/**
    230231 * change gain (amplitude modifier) of the sound source.
     
    234235 * closed (e.g. it never played).
    235236 *
    236237 * @param gain amplitude modifier. must be non-negative;
    237  * 1 -> unattenuated, 0.5 -> -6 dB, 0 -> silence.
     238 * 1 -\> unattenuated, 0.5 -\> -6 dB, 0 -\> silence.
    238239 * @return LibError
    239240 **/
    240241extern LibError snd_set_gain(Handle hs, float gain);
     
    252253extern LibError snd_set_pitch(Handle hs, float pitch);
    253254
    254255/**
    255  * enable/disable looping on the sound source.
    256  * used to implement variable-length sounds (e.g. while building).
     256 * Enable/disable looping on the sound source.
     257 * Used to implement variable-length sounds (e.g. while building).
    257258 *
    258  * may be called at any time; fails with invalid handle return if
     259 * May be called at any time; fails with invalid handle return if
    259260 * the sound has already been closed (e.g. it never played).
    260261 *
    261262 * Notes:
    262  * <UL>
    263  *   <LI> looping sounds are not discarded if they cannot be played for
    264  *        lack of a hardware voice at the moment play was requested.
    265  *   <LI> once looping is again disabled and the sound has reached its end,
    266  *        the sound instance is freed automatically (as if never looped).
    267  * </UL>
     263 * - looping sounds are not discarded if they cannot be played for
     264 * - lack of a hardware voice at the moment play was requested.
     265 * - once looping is again disabled and the sound has reached its end,
     266 *   the sound instance is freed automatically (as if never looped).
     267 *
     268 * @param hvs Handle to the sound.
     269 * @param loop Boolean to enable/disable lopping on the sound.
    268270 * @return LibError
    269271 **/
    270 extern LibError snd_set_loop(Handle hs, bool loop);
     272extern LibError snd_set_loop(Handle hvs, bool loop);
    271273
    272274/// types of fade in/out operations
    273275enum FadeType
     
    281283};
    282284
    283285/**
    284  * fade the sound source in or out over time.
     286 * Fade the sound source in or out over time.
    285287 *
    286  * may be called at any time; fails with invalid handle return if
     288 * May be called at any time; fails with invalid handle return if
    287289 * the sound has already been closed (e.g. it never played).
    288290 *
    289  * gain starts at <initial_gain> (immediately) and is moved toward
    290  * <final_gain> over <length> seconds.
    291  * @param type of fade curve: linear, exponential or S-curve.
    292  * for guidance on which to use, see
     291 * Gain starts at \<initial_gain\> (immediately) and is moved toward
     292 * \<final_gain\> over \<length\> seconds.
     293 *
     294 * @param hvs Handle to the sound.
     295 * @param initial_gain
     296 * @param final_gain
     297 * @param length
     298 * @param type Type of fade curve: linear, exponential or S-curve.
     299 *
     300 * For guidance on which to use, see
    293301 * http://www.transom.org/tools/editing_mixing/200309.stupidfadetricks.html
    294302 * you can also pass FT_ABORT to stop fading (if in progress) and
    295  * set gain to the current <final_gain> parameter.
    296  * special cases:
    297  * - if <initial_gain> < 0 (an otherwise illegal value), the sound's
     303 * set gain to the current \<final_gain\> parameter.
     304 * Special cases:
     305 * - if \<initial_gain\> \< 0 (an otherwise illegal value), the sound's
    298306 *   current gain is used as the start value (useful for fading out).
    299  * - if <final_gain> is 0, the sound is freed when the fade completes or
     307 * - if \<final_gain\> is 0, the sound is freed when the fade completes or
    300308 *   is aborted, thus allowing fire-and-forget fadeouts. no cases are
    301309 *   foreseen where this is undesirable, and it is easier to implement
    302310 *   than an extra set-free-after-fade-flag function.
    303311 *
    304  * note that this function doesn't busy-wait until the fade is complete;
     312 * Note that this function doesn't busy-wait until the fade is complete;
    305313 * any number of fades may be active at a time (allows cross-fading).
    306  * each snd_update calculates a new gain value for all pending fades.
    307  * it is safe to start another fade on the same sound source while
     314 * Each snd_update calculates a new gain value for all pending fades.
     315 * It is safe to start another fade on the same sound source while
    308316 * one is already in progress; the old one will be discarded.
     317 *
    309318 * @return LibError
    310319 **/
    311320extern LibError snd_fade(Handle hvs, float initial_gain, float final_gain,
     
    330339 *
    331340 * can later be called to reactivate sound; all settings ever changed
    332341 * will be applied and subsequent sound load / play requests will work.
     342 *
     343 * @param disabled
    333344 * @return LibError
    334345 **/
    335346extern LibError snd_disable(bool disabled);
    336347
    337348/**
    338  * perform housekeeping (e.g. streaming); call once a frame.
     349 * Perform housekeeping (e.g. streaming); call once a frame.
    339350 *
    340  * all parameters are expressed in world coordinates. they can all be NULL
     351 * All parameters are expressed in world coordinates. they can all be NULL
    341352 * to avoid updating the listener data; this is useful when the game world
    342353 * has not been initialized yet.
    343354 * @param pos listener's position
     
    347358 **/
    348359extern LibError snd_update(const float* pos, const float* dir, const float* up);
    349360
    350 /** added by GF
     361/**
     362 * Added by GF
    351363 * find out if a sound is still playing
    352364 *
    353  * @param hvs - handle to the snd to check
     365 * @param hvs Handle to the snd to check.
    354366 * @return bool true if playing
    355367
    356368**/
  • source/lib/sysdep/arch/x86_x64/topology.cpp

     
    192192
    193193
    194194/**
    195  * count the number of values assumed by a certain field within APIC IDs.
     195 * Count the number of values assumed by a certain field within APIC IDs.
    196196 *
    197  * @param offset index of the lowest bit that is part of the field.
    198  * @param numValues number of values that can be assumed by the field.
    199  * if equal to one, the field is zero-width.
     197 * @param apicIds
     198 * @param offset Index of the lowest bit that is part of the field.
     199 * @param numValues Number of values that can be assumed by the field.
     200 *        If equal to one, the field is zero-width.
    200201 * @return number of unique values (for convenience of the topology code,
    201202 * this is always at least one)
    202203 **/
     
    286287{
    287288public:
    288289    /**
    289      * add processor to the processor mask owned by cache identified by <id>
     290     * add processor to the processor mask owned by cache identified by \<id\>
    290291     **/
    291292    void Add(u8 cacheId, size_t processor)
    292293    {
  • source/lib/sysdep/arch/x86_x64/topology.h

     
    8181LIB_API size_t cache_topology_NumCaches();
    8282
    8383/**
    84  * @return L2 cache number (zero-based) to which <processor> belongs.
     84 * @return L2 cache number (zero-based) to which \<processor\> belongs.
    8585 **/
    8686LIB_API size_t cache_topology_CacheFromProcessor(size_t processor);
    8787
    8888/**
    89  * @return bit-mask of all processors sharing <cache>.
     89 * @return bit-mask of all processors sharing \<cache\>.
    9090 **/
    9191LIB_API uintptr_t cache_topology_ProcessorMaskFromCache(size_t cache);
    9292
  • source/lib/sysdep/cursor.h

     
    3030typedef void* sys_cursor;
    3131
    3232/**
    33  * create a cursor from the given color image.
     33 * Create a cursor from the given color image.
    3434 *
    35  * @ w, h image dimensions [pixels]. the maximum value is
    36  * implementation-defined; 32x32 is typical and safe.
     35 * @param w,h Image dimensions [pixels]. the maximum value is
     36 *        implementation-defined; 32x32 is typical and safe.
    3737 * @param bgra_img cursor image (BGRA format, bottom-up).
    38  * it is copied and can be freed after this call returns.
     38 *        It is copied and can be freed after this call returns.
    3939 * @param hx,hy 'hotspot', i.e. offset from the upper-left corner to the
    40  * position where mouse clicks are registered.
    41  * @param cursor is 0 if the return code indicates failure, otherwise
    42  * a valid cursor that must be sys_cursor_free-ed when no longer needed.
     40 *        position where mouse clicks are registered.
     41 * @param cursor Is 0 if the return code indicates failure, otherwise
     42 *        a valid cursor that must be sys_cursor_free-ed when no longer needed.
    4343 **/
    4444extern LibError sys_cursor_create(int w, int h, void* bgra_img, int hx, int hy, sys_cursor* cursor);
    4545
    4646/**
    47  * create a transparent cursor (used to hide the system cursor)
     47 * Create a transparent cursor (used to hide the system cursor).
    4848 *
    4949 * @param cursor is 0 if the return code indicates failure, otherwise
    5050 * a valid cursor that must be sys_cursor_free-ed when no longer needed.
  • source/lib/sysdep/numa.h

     
    3232LIB_API size_t numa_NumNodes();
    3333
    3434/**
    35  * @return node number (zero-based) to which <processor> belongs.
     35 * @param processor
     36 * @return node number (zero-based) to which \<processor\> belongs.
    3637 **/
    3738LIB_API size_t numa_NodeFromProcessor(size_t processor);
    3839
    3940/**
    40  * @return bit-mask of all processors constituting <node>.
     41 * @param node
     42 * @return bit-mask of all processors constituting \<node\>.
    4143 **/
    4244LIB_API uintptr_t numa_ProcessorMaskFromNode(size_t node);
    4345
     
    4749
    4850
    4951/**
    50  * @return bytes of memory available for allocation on <node>.
     52 * @param node
     53 * @return bytes of memory available for allocation on \<node\>.
    5154 **/
    5255LIB_API size_t numa_AvailableMemory(size_t node);
    5356
  • source/lib/sysdep/os/win/wdbg_sym.h

     
    4444typedef LibError (*StackFrameCallback)(const _tagSTACKFRAME64* frame, uintptr_t cbData);
    4545
    4646/**
    47  * iterate over a call stack, invoking a callback for each frame encountered.
     47 * Iterate over a call stack, invoking a callback for each frame encountered.
    4848 *
    49  * @param pcontext processor context from which to start (usually taken from
    50  * an exception record), or 0 to walk the current stack.
     49 * @param cb
     50 * @param cbData
     51 * @param pcontext Processor context from which to start (usually taken from
     52 *        an exception record), or 0 to walk the current stack.
     53 * @param lastFuncToSkip
    5154 *
    52  * note: it is safe to use debug_assert/debug_warn/CHECK_ERR even during a
     55 * @note It is safe to use debug_assert/debug_warn/CHECK_ERR even during a
    5356 * stack trace (which is triggered by debug_assert et al. in app code) because
    5457 * nested stack traces are ignored and only the error is displayed.
    5558 **/
  • source/lib/sysdep/os/win/wdll_ver.h

     
    2828#define INCLUDED_WDLL_VER
    2929
    3030/**
    31  * read DLL version information and append it to a string.
     31 * Read DLL version information and append it to a string.
    3232 *
    3333 * @param pathname of DLL (preferably the complete path, so that we don't
    34  * inadvertently load another one on the library search path.)
    35  * if no extension is given, .dll will be appended.
     34 *        inadvertently load another one on the library search path.)
     35 *        If no extension is given, .dll will be appended.
     36 * @param list
    3637 *
    37  * the text output includes the module name.
    38  * on failure, the version is given as "unknown".
     38 * The text output includes the module name.
     39 * On failure, the version is given as "unknown".
    3940 **/
    4041extern void wdll_ver_Append(const fs::wpath& pathname, std::wstring& list);
    4142
  • source/lib/sysdep/os/win/whrt/counter.cpp

     
    4343// create/destroy counters
    4444
    4545/**
    46  * @return pointer to a newly constructed ICounter subclass of type <id> at
    47  * the given address, or 0 iff the ID is invalid.
    48  * @param size maximum allowable size [bytes] of the subclass instance
     46 * @param id
     47 * @param address
     48 * @param size Maximum allowable size [bytes] of the subclass instance
     49 * @return pointer to a newly constructed ICounter subclass of type \<id\> at
     50 *         the given address, or 0 iff the ID is invalid.
    4951 **/
    5052static ICounter* ConstructCounterAt(size_t id, void* address, size_t size)
    5153{
  • source/lib/sysdep/os/win/whrt/counter.h

     
    7575
    7676
    7777/**
    78  * @return a newly created ICounter of type <id> or 0 iff the ID is invalid.
     78 * @return a newly created ICounter of type \<id\> or 0 iff the ID is invalid.
    7979 * @param id integer ID (0..N-1)
    8080 *
    8181 * there can only be one active counter at a time; the previous one must
  • source/lib/sysdep/os/win/wseh.cpp

     
    9595}
    9696
    9797/**
    98  * @param er an exception record for which IsCppException returned true.
     98 * @param er An exception record for which IsCppException returned true.
     99 * @param description
     100 * @param maxChars
    99101 **/
    100102static const wchar_t* GetCppExceptionDescription(const EXCEPTION_RECORD* er,
    101103    wchar_t* description, size_t maxChars)
  • source/lib/sysdep/sysdep.h

     
    8989/**
    9090 * determine filename of the module to whom an address belongs.
    9191 *
    92  * @param path full path to module (unchanged unless INFO::OK is returned).
     92 * @param addr
     93 * @param pathname Full path to module (unchanged unless INFO::OK is returned).
    9394 * @return LibError
    9495 *
    9596 * note: this is useful for handling exceptions in other modules.
     
    9798LibError sys_get_module_filename(void* addr, fs::wpath& pathname);
    9899
    99100/**
    100  * get path to the current executable.
     101 * Get path to the current executable.
    101102 *
    102  * @param path full path to executable (unchanged unless INFO::OK is returned).
     103 * @param pathname Full path to executable (unchanged unless INFO::OK is returned).
    103104 * @return LibError
    104105 *
    105106 * this is useful for determining installation directory, e.g. for VFS.
     
    107108LIB_API LibError sys_get_executable_name(fs::wpath& pathname);
    108109
    109110/**
    110  * get the current user's login name.
     111 * Get the current user's login name.
    111112 *
    112113 * @return login name, or empty string on error
    113114 */
    114115extern std::wstring sys_get_user_name();
    115116
    116117/**
    117  * have the user choose a directory via OS dialog.
     118 * Have the user choose a directory via OS dialog.
    118119 *
    119  * @param path's input value determines the starting directory for
    120  * faster browsing. if INFO::OK is returned, it receives
    121  * chosen directory path.
     120 * @param path Path's input value determines the starting directory for
     121 *        faster browsing. if INFO::OK is returned, it receives
     122 *        chosen directory path.
    122123 **/
    123124extern LibError sys_pick_directory(fs::wpath& path);
    124125
    125126/**
    126  * open the user's default web browser to the given URL.
     127 * Open the user's default web browser to the given URL.
    127128 **/
    128129extern LibError sys_open_url(const std::string& url);
    129130
  • source/lib/tex/tex.h

     
    235235
    236236
    237237/**
    238  * is the texture object valid and self-consistent?
     238 * Is the texture object valid and self-consistent?
     239 *
     240 * @param t
    239241 * @return LibError
    240242 **/
    241243extern LibError tex_validate(const Tex* t);
    242244
    243245
    244246/**
    245  * set the orientation to which all loaded images will
     247 * Set the orientation to which all loaded images will
    246248 * automatically be converted (excepting file formats that don't specify
    247  * their orientation, i.e. DDS). see "Default Orientation" in docs.
    248  * @param orientation either TEX_BOTTOM_UP or TEX_TOP_DOWN
     249 * their orientation, i.e. DDS). See "Default Orientation" in docs.
     250 * @param orientation Either TEX_BOTTOM_UP or TEX_TOP_DOWN;
    249251 **/
    250252extern void tex_set_global_orientation(int orientation);
    251253
    252254
    253255/**
    254  * manually register codecs. must be called before first use of a
     256 * Manually register codecs. must be called before first use of a
    255257 * codec (e.g. loading a texture).
    256258 *
    257  * this would normally be taken care of by TEX_CODEC_REGISTER, but
     259 * This would normally be taken care of by TEX_CODEC_REGISTER, but
    258260 * no longer works when building as a static library.
    259  * workaround: hard-code a list of codecs in tex_codec.cpp and
     261 * Workaround: hard-code a list of codecs in tex_codec.cpp and
    260262 * call their registration functions.
    261263 **/
    262264extern void tex_codec_register_all();
     
    272274 * FYI, currently BMP, TGA, JPG, JP2, PNG, DDS are supported - but don't
    273275 * rely on this (not all codecs may be included).
    274276 *
    275  * @param data input data
    276  * @param data_size its size [bytes]
    277  * @param t output texture object.
     277 * @param data Input data.
     278 * @param data_size Its size [bytes].
     279 * @param t Output texture object.
    278280 * @return LibError.
    279281 **/
    280282extern LibError tex_decode(const shared_ptr<u8>& data, size_t data_size, Tex* t);
     
    282284/**
    283285 * encode a texture into a memory buffer in the desired file format.
    284286 *
    285  * @param t input texture object
    286  * @param extension (including '.')
    287  * @param da output memory array. allocated here; caller must free it
    288  * when no longer needed. invalid unless function succeeds.
     287 * @param t Input texture object.
     288 * @param extension (including '.').
     289 * @param da Output memory array. Allocated here; caller must free it
     290 *        when no longer needed. Invalid unless function succeeds.
    289291 * @return LibError
    290292 **/
    291293extern LibError tex_encode(Tex* t, const std::wstring& extension, DynArray* da);
     
    299301 *   however, we don't want to provide an alternate interface for each API;
    300302 *   these would have to be changed whenever fields are added to Tex.
    301303 *   instead, provide one entry point for specifying images.
    302  * note: since we do not know how <img> was allocated, the caller must free
     304 * note: since we do not know how \<img\> was allocated, the caller must free
    303305 *   it themselves (after calling tex_free, which is required regardless of
    304306 *   alloc type).
    305307 *
    306308 * we need only add bookkeeping information and "wrap" it in
    307309 * our Tex struct, hence the name.
    308310 *
    309  * @param w, h pixel dimensions
    310  * @param bpp bits per pixel
    311  * @param flags TexFlags
    312  * @param img texture data. note: size is calculated from other params.
     311 * @param w,h Pixel dimensions.
     312 * @param bpp Bits per pixel.
     313 * @param flags TexFlags.
     314 * @param data Img texture data. note: size is calculated from other params.
     315 * @param ofs
    313316 * @param t output texture object.
    314317 * @return LibError
    315318 **/
     
    330333//
    331334
    332335/**
    333  * change <t>'s pixel format.
     336 * Change \<t\>'s pixel format.
    334337 *
     338 * @param t Input texture object.
    335339 * @param transforms TexFlags that are to be flipped.
    336340 * @return LibError
    337341 **/
    338342extern LibError tex_transform(Tex* t, size_t transforms);
    339343
    340344/**
    341  * change <t>'s pixel format (2nd version)
    342  * (note: this is equivalent to tex_transform(t, t->flags^new_flags).
     345 * Change \<t\>'s pixel format (2nd version)
     346 * (note: this is equivalent to tex_transform(t, t-\>flags^new_flags).
    343347 *
     348 * @param t Input texture object.
    344349 * @param new_flags desired new value of TexFlags.
    345350 * @return LibError
    346351 **/
     
    400405 * for a series of mipmaps stored from base to highest, call back for
    401406 * each level.
    402407 *
    403  * @param w, h pixel dimensions
    404  * @param bpp bits per pixel
    405  * @param data series of mipmaps
    406  * @param levels_to_skip number of levels (counting from base) to skip, or
    407  * TEX_BASE_LEVEL_ONLY to only call back for the base image.
    408  * rationale: this avoids needing to special case for images with or
    409  * without mipmaps.
    410  * @param data_padding minimum pixel dimensions of mipmap levels.
    411  * this is used in S3TC images, where each level is actually stored in
    412  * 4x4 blocks. usually 1 to indicate levels are consecutive.
    413  * @param cb MipmapCB to call
    414  * @param cbData extra data to pass to cb
     408 * @param w,h Pixel dimensions.
     409 * @param bpp Bits per pixel.
     410 * @param data Series of mipmaps.
     411 * @param levels_to_skip Number of levels (counting from base) to skip, or
     412 *        TEX_BASE_LEVEL_ONLY to only call back for the base image.
     413 *        Rationale: this avoids needing to special case for images with or
     414 *        without mipmaps.
     415 * @param data_padding Minimum pixel dimensions of mipmap levels.
     416 *        This is used in S3TC images, where each level is actually stored in
     417 *        4x4 blocks. usually 1 to indicate levels are consecutive.
     418 * @param cb MipmapCB to call.
     419 * @param cbData Extra data to pass to cb.
    415420 **/
    416421extern void tex_util_foreach_mipmap(size_t w, size_t h, size_t bpp, const u8* data, int levels_to_skip, size_t data_padding, MipmapCB cb, void* RESTRICT cbData);
    417422
     
    421426//
    422427
    423428/**
    424  * is the file's extension that of a texture format supported by tex_load?
     429 * Is the file's extension that of a texture format supported by tex_load?
    425430 *
    426  * rationale: tex_load complains if the given file is of an
     431 * Rationale: tex_load complains if the given file is of an
    427432 * unsupported type. this API allows users to preempt that warning
    428433 * (by checking the filename themselves), and also provides for e.g.
    429434 * enumerating only images in a file picker.
    430435 * an alternative might be a flag to suppress warning about invalid files,
    431436 * but this is open to misuse.
    432437 *
    433  * @param pathname only the extension (starting with '.') is used. case-insensitive.
     438 * @param pathname Only the extension (starting with '.') is used. case-insensitive.
    434439 * @return bool
    435440 **/
    436441extern bool tex_is_known_extension(const VfsPath& pathname);
     
    444449 * extra and pass the pointer as base+hdr_size. this allows writing the
    445450 * header directly into the output buffer and makes for zero-copy IO.
    446451 *
    447  * @param fn filename; only the extension (that after '.') is used.
    448  * case-insensitive.
     452 * @param filename Filename; only the extension (that after '.') is used.
     453 *        case-insensitive.
    449454 * @return size [bytes] or 0 on error (i.e. no codec found).
    450455 **/
    451456extern size_t tex_hdr_size(const VfsPath& filename);
  • source/lib/tex/tex_codec.h

     
    162162
    163163
    164164/**
    165  * find codec that recognizes the desired output file extension.
     165 * Find codec that recognizes the desired output file extension.
    166166 *
     167 * @param extension
    167168 * @param c (out) vtbl of responsible codec
    168169 * @return LibError; ERR::RES_UNKNOWN_FORMAT (without warning, because this is
    169170 * called by tex_is_known_extension) if no codec indicates they can
  • source/lib/timer.h

     
    322322 * billed to it, along with a description string. These are displayed when
    323323 * timer_DisplayClientTotals is called.
    324324 * Invoke this at file or function scope; a (static) TimerClient pointer of
    325  * name <id> will be defined, which should be passed to TIMER_ACCRUE.
     325 * name \<id\> will be defined, which should be passed to TIMER_ACCRUE.
    326326 **/
    327327#define TIMER_ADD_CLIENT(id)\
    328328    static TimerClient UID__;\
  • source/maths/scripting/JSInterface_Vector3D.h

     
    5757        Vector3D_Info( float x, float y, float z );
    5858        Vector3D_Info( const CVector3D& copy );
    5959        Vector3D_Info( CVector3D* attach, IPropertyOwner* _owner );
    60         Vector3D_Info( CVector3D* attach, IPropertyOwner* _owner, void (IPropertyOwner::*_updateFn)() );
    61         Vector3D_Info( CVector3D* attach, IPropertyOwner* _owner, void (IPropertyOwner::*_updateFn)(), void (IPropertyOwner::*_freshenFn)() );
     60        Vector3D_Info( CVector3D* attach, IPropertyOwner* _owner, void (IPropertyOwner::*_updateFn)(void) );
     61        Vector3D_Info( CVector3D* attach, IPropertyOwner* _owner, void (IPropertyOwner::*_updateFn)(void), void (IPropertyOwner::*_freshenFn)(void) );
    6262        ~Vector3D_Info();
    6363    };
    6464    extern JSClass JSI_class;
  • source/ps/FileIo.cpp

     
    162162}
    163163
    164164
    165 void CFileUnpacker::UnpackString(CStr& result)
     165void CFileUnpacker::UnpackString(CStr8& result)
    166166{
    167167    const size_t length = UnpackSize();
    168168
  • source/ps/Game.cpp

     
    190190 * Periodic heartbeat that controls the process.
    191191 * Simulation update is called and game status update is called.
    192192 *
    193  * @param double deltaTime elapsed time since last beat in seconds.
    194  * @param bool doInterpolate perform interpolation if true.
     193 * @param deltaTime Double. Elapsed time since last beat in seconds.
     194 * @param doInterpolate Bool. Perform interpolation if true.
    195195 * @return bool false if it can't keep up with the desired simulation rate
    196196 *  indicating that you might want to render less frequently.
    197197 **/
  • source/ps/Game.h

     
    148148    /**
    149149     * Set the simulation scale multiplier.
    150150     *
    151      * @param float simRate value to set m_SimRate to.
     151     * @param simRate Float value to set m_SimRate to.
    152152     *                      Because m_SimRate is also used to
    153153     *                      scale TimeSinceLastFrame it must be
    154154     *                      clamped to 0.0f.
  • source/ps/Overlay.cpp

     
    2727#include "Parser.h"
    2828
    2929
    30 bool CColor::ParseString(const CStr& Value, float DefaultAlpha)
     30bool CColor::ParseString(const CStr8& Value, float DefaultAlpha)
    3131{
    3232    // Use the parser to parse the values
    3333    CParser& parser (CParserCache::Get("_[-$arg(_minus)]$value_[-$arg(_minus)]$value_[-$arg(_minus)]$value_[[-$arg(_minus)]$value_]"));
  • source/ps/World.cpp

     
    5252/**
    5353 * Constructor.
    5454 *
    55  * @param CGame * pGame pointer to the container game object.
     55 * @param pGame CGame * pGame pointer to the container game object.
    5656 **/
    5757CWorld::CWorld(CGame *pGame):
    5858    m_pGame(pGame),
  • source/renderer/TerrainRenderer.h

     
    8282     * preconditions  : PrepareForRendering must have been called this
    8383     * frame before calling RenderTerrain.
    8484     *
    85      * @param shadow a prepared shadow map, in case rendering with shadows is enabled
    86      * @param shadowColor color of shadows
     85     * @param shadow A prepared shadow map, in case rendering with shadows is enabled.
     86     * \@param shadowColor color of shadows
    8787     */
    8888    void RenderTerrain(ShadowMap* shadow);
    8989
  • source/renderer/TransparencyRenderer.cpp

     
    9191     * BackToFrontIndexSort: Sort polygons by distance to camera for
    9292     * transparency rendering and fill the indices array appropriately.
    9393     *
    94      * @param worldToCam World to camera coordinate space transform
     94     * @param objToCam World to camera coordinate space transform
    9595     *
    9696     * @return Square of the estimated distance to the nearest triangle.
    9797     */
  • source/simulation2/components/ICmpObstructionManager.h

     
    211211     * Return true if the shape should be counted for collisions.
    212212     * This is called for all shapes that would collide, and also for some that wouldn't.
    213213     * @param tag tag of shape being tested
     214     * @param moving boolean moving
    214215     */
    215216    virtual bool Allowed(ICmpObstructionManager::tag_t tag, bool moving) const = 0;
    216217};
  • source/simulation2/serialization/ISerializer.h

     
    150150        PutNumber(name, value);
    151151    }
    152152
    153     void NumberI32_Unbounded(const char* name, int32_t value) ///< @copydoc NumberU8_Unbounded
     153    void NumberI32_Unbounded(const char* name, int32_t value) ///@copydoc NumberU8_Unbounded()
    154154    {
    155155        PutNumber(name, value);
    156156    }
    157157
    158     void NumberU32_Unbounded(const char* name, uint32_t value) ///< @copydoc NumberU8_Unbounded
     158    void NumberU32_Unbounded(const char* name, uint32_t value) ///@copydoc NumberU8_Unbounded()
    159159    {
    160160        PutNumber(name, value);
    161161    }
    162162
    163     void NumberFloat_Unbounded(const char* name, float value) ///< @copydoc NumberU8_Unbounded
     163    void NumberFloat_Unbounded(const char* name, float value) ///@copydoc NumberU8_Unbounded()
    164164    {
    165165        PutNumber(name, value);
    166166    }
    167167
    168     void NumberDouble_Unbounded(const char* name, double value) ///< @copydoc NumberU8_Unbounded
     168    void NumberDouble_Unbounded(const char* name, double value) ///@copydoc NumberU8_Unbounded()
    169169    {
    170170        PutNumber(name, value);
    171171    }
    172172
    173     void NumberFixed_Unbounded(const char* name, fixed value) ///< @copydoc NumberU8_Unbounded
     173    void NumberFixed_Unbounded(const char* name, fixed value) ///@copydoc NumberU8_Unbounded()
    174174    {
    175175        PutNumber(name, value);
    176176    }