srp
software rendering pipeline
Loading...
Searching...
No Matches
color_p.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 "
srp/color.h
"
11
#ifdef _WIN32
12
#include <winsock.h>
13
#else
14
#include <arpa/inet.h>
15
#endif
16
21
// Using `htonl` since we need to convert host endian data to big endian data
22
// (we want red component to be the most significant one!)
23
#define SRP_COLOR_TO_UINT32_T(color) (htonl(*(uint32_t*) &color))
24
26
uint32_t
colorPack
(
float
color[4]);
27
// ingroup Framebuffer_internal
color.h
colorPack
uint32_t colorPack(float color[4])
Definition
color.c:14
src
core
color_p.h
Generated by
1.9.8