Color and depth buffer management.
More...
Color and depth buffer management.
◆ SRP_COLOR_TO_UINT32_T
| #define SRP_COLOR_TO_UINT32_T |
( |
|
color | ) |
(htonl(*(uint32_t*) &color)) |
Convert the SRPColor to uint32_t RGBA8888
◆ SRPColor
Holds RGBA8888 color data
◆ SRPFramebuffer
Holds RBGA8888 color buffer and depth buffer
◆ colorPack()
| uint32_t colorPack |
( |
float |
color[4] | ) |
|
|
inline |
Pack a color represented via float[4] into uint32_t RGBA8888
◆ srpFramebufferClear()
Clear a framebuffer: fill the color with black and depth with -1
- Parameters
-
◆ srpFreeFramebuffer()
Free a framebuffer
- Parameters
-
◆ srpNewFramebuffer()
Create a framebuffer
- Parameters
-
| [in] | width | Width of a new framebuffer in pixels |
| [in] | height | Height of a new framebuffer in pixels |
- Returns
- A pointer to the created framebuffer