|
srp
software rendering pipeline
|
Internal stuff that cannot be easity grouped into other modules. More...

| #define | SRP_FORCEINLINE inline |
| #define | M_PI 3.14159265358979323846 |
| #define | MIN(a, b) ( (a) > (b) ? (b) : (a) ) |
| #define | MAX(a, b) ( (a) > (b) ? (a) : (b) ) |
| #define | CLAMP(min, max, value) |
| #define | FRACTIONAL(x) ( (x) - floor(x) ) |
| #define | INDEX_VOID_PTR(ptr, idx, nBytesPerElement) ( ( (uint8_t*) (ptr) ) + (idx) * (nBytesPerElement) ) |
| #define | ADD_VOID_PTR(ptr, nBytes) ( ( (uint8_t*) (ptr) ) + (nBytes) ) |
Internal stuff that cannot be easity grouped into other modules.
| #define ADD_VOID_PTR | ( | ptr, | |
| nBytes | |||
| ) | ( ( (uint8_t*) (ptr) ) + (nBytes) ) |
Add nBytes bytes to the void*
| #define CLAMP | ( | min, | |
| max, | |||
| value | |||
| ) |
Clamp the value between min and max
min, if value < min; max, if value > max; value otherwise | #define FRACTIONAL | ( | x | ) | ( (x) - floor(x) ) |
Get the fractional part of float or double
| #define INDEX_VOID_PTR | ( | ptr, | |
| idx, | |||
| nBytesPerElement | |||
| ) | ( ( (uint8_t*) (ptr) ) + (idx) * (nBytesPerElement) ) |
Index void* as if it was an array with nBytesPerElement bytes per element
| #define MAX | ( | a, | |
| b | |||
| ) | ( (a) > (b) ? (a) : (b) ) |
Get the maximum of two values
| #define MIN | ( | a, | |
| b | |||
| ) | ( (a) > (b) ? (b) : (a) ) |
Get the minimum of two values