srp
software rendering pipeline
Loading...
Searching...
No Matches
color.h File Reference
#include <stdint.h>
#include <arpa/inet.h>
Include dependency graph for color.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SRPColor
 
#define SRP_COLOR_TO_UINT32_T(color)   (htonl(*(uint32_t*) &color))
 
typedef struct SRPColor SRPColor
 

Detailed Description

Macro Definition Documentation

◆ SRP_COLOR_TO_UINT32_T

#define SRP_COLOR_TO_UINT32_T (   color)    (htonl(*(uint32_t*) &color))

Convert the SRPColor to uint32_t RGBA8888