zondag 22 september 2019
C type declarations
De volgende C type declarations gebruik ik (onder andere) in m'n motorracer spel:
Declaratie: void (*manuallyDrawElement)(void*);
Uitleg: manuallyDrawElement is pointer to a function that takes a void* as argument.
Declaratie: Position_VisibleGrid (*fovVisibleGridPrecalculated)[100] = NULL;
Uitleg: fovVisibleGridPrecalculated is pointer to array[100] of Position_VisibleGrid
Vind je dit lastig? Gebruik de volgende webpagina's voor extra uitleg:
Reading C declarations
C operator precedence
Function pointer to member function in C++
Abonneren op:
Posts (Atom)