Internals of the Framebuffer module.
More...
Internals of the Framebuffer module.
- See also
- Framebuffer
◆ framebufferGetColorAndDepthPointers()
| void framebufferGetColorAndDepthPointers |
( |
const SRPFramebuffer * |
this, |
|
|
size_t |
x, |
|
|
size_t |
y, |
|
|
uint32_t ** |
pColor, |
|
|
float ** |
pDepth |
|
) |
| |
Get pointers inside color and depth buffers for pixel at (x, y)
- Parameters
-
| [in] | this | Pointer to the SRPFramebuffer |
| [in] | x,y | Coordinates of the needed pixel |
| [out] | pColor | Pointer to the color buffer |
| [out] | pDepth | Pointer to the depth buffer |
◆ framebufferNDCToScreenSpace()
| void framebufferNDCToScreenSpace |
( |
const SRPFramebuffer * |
this, |
|
|
const float * |
NDC, |
|
|
float * |
SS |
|
) |
| |
Convert Normalized Device Coordinates to screen-space coordiantes
- Parameters
-
| [in] | this | The pointer to SRPFramebuffer, as returned from srpNewFramebuffer |
| [in] | NDC | Pointer to 3-element float array containing NDC position |
| [out] | SS | Pointer to 3-element float array that will contain SS position after the call. The z-component is the same as z-component of NDC coordinates. |
◆ 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