srp
software rendering pipeline
Loading...
Searching...
No Matches
color.h
Go to the documentation of this file.
1
// Software Rendering Pipeline (SRP) library
2
// Licensed under GNU GPLv3
3
8
#pragma once
9
10
#include <stdint.h>
11
#ifdef _WIN32
12
#include <winsock.h>
13
#else
14
#include <arpa/inet.h>
15
#endif
16
21
typedef
struct
SRPColor
22
{
23
uint8_t r, g, b, a;
24
}
SRPColor
;
25
27
// Using `htonl` since we need to convert host endian data to big endian data
28
// (we want red component to be the most significant one!)
29
#define SRP_COLOR_TO_UINT32_T(color) (htonl(*(uint32_t*) &color))
30
// ingroup Framebuffer
SRPColor
Definition
color.h:22
include
srp
color.h
Generated by
1.9.8