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
7
#pragma once
8
9
#include <stdint.h>
10
#ifdef _WIN32
11
#include <winsock.h>
12
#else
13
#include <arpa/inet.h>
14
#endif
15
20
typedef
struct
SRPColor
21
{
22
uint8_t r, g, b, a;
23
}
SRPColor
;
24
26
// Using `htonl` since we need to convert host endian data to big endian data
27
// (we want red component to be the most significant one!)
28
#define SRP_COLOR_TO_UINT32_T(color) (htonl(*(uint32_t*) &color))
29
// ingroup Framebuffer
31
SRPColor
Definition
color.h:21
include
color.h
Generated by
1.9.8