|
Kore
|
Provides functions for handling render-targets. More...
Go to the source code of this file.
Data Structures | |
| struct | kinc_g5_render_target |
Typedefs | |
| typedef enum kinc_g5_render_target_format | kinc_g5_render_target_format_t |
| typedef struct kinc_g5_render_target | kinc_g5_render_target_t |
Functions | |
| KINC_FUNC void | kinc_g5_render_target_init (kinc_g5_render_target_t *target, int width, int height, kinc_g5_render_target_format_t format, int depthBufferBits, int stencilBufferBits) |
| Allocates and initializes a regular render-target. The contents of the render-target are undefined. | |
| KINC_FUNC void | kinc_g5_render_target_init_with_multisampling (kinc_g5_render_target_t *target, int width, int height, kinc_g5_render_target_format_t format, int depthBufferBits, int stencilBufferBits, int samples_per_pixel) |
| Allocates and initializes a regular render-target. Can fall back to a regular render-target. The contents of the render-target are undefined. | |
| KINC_FUNC void | kinc_g5_render_target_init_framebuffer (kinc_g5_render_target_t *target, int width, int height, kinc_g5_render_target_format_t format, int depthBufferBits, int stencilBufferBits) |
| Allocates and initializes a framebuffer. The contents of the framebuffer are undefined. | |
| KINC_FUNC void | kinc_g5_render_target_init_framebuffer_with_multisampling (kinc_g5_render_target_t *target, int width, int height, kinc_g5_render_target_format_t format, int depthBufferBits, int stencilBufferBits, int samples_per_pixel) |
| Allocates and initializes a multisampled framebuffer. Can fall back to a regular framebuffer. The contents of the framebuffer are undefined. | |
| KINC_FUNC void | kinc_g5_render_target_init_cube (kinc_g5_render_target_t *target, int cubeMapSize, kinc_g5_render_target_format_t format, int depthBufferBits, int stencilBufferBits) |
| Allocates and initializes a render-target-cube-map. The contents of the render-target are undefined. | |
| KINC_FUNC void | kinc_g5_render_target_init_cube_with_multisampling (kinc_g5_render_target_t *target, int cubeMapSize, kinc_g5_render_target_format_t format, int depthBufferBits, int stencilBufferBits, int samples_per_pixel) |
| Allocates and initializes a multisampled render-target-cube-map. Can fall back to a regular cube-map. The contents of the render-target are undefined. | |
| KINC_FUNC void | kinc_g5_render_target_destroy (kinc_g5_render_target_t *target) |
| Deallocates and destroys a render-target. | |
| KINC_FUNC void | kinc_g5_render_target_set_depth_stencil_from (kinc_g5_render_target_t *target, kinc_g5_render_target_t *source) |
| Copies the depth and stencil-components of one render-target into another one. | |
Provides functions for handling render-targets.
| KINC_FUNC void kinc_g5_render_target_destroy | ( | kinc_g5_render_target_t * | target | ) |
Deallocates and destroys a render-target.
| renderTarget | The render-target to destroy |
| KINC_FUNC void kinc_g5_render_target_init | ( | kinc_g5_render_target_t * | target, |
| int | width, | ||
| int | height, | ||
| kinc_g5_render_target_format_t | format, | ||
| int | depthBufferBits, | ||
| int | stencilBufferBits ) |
Allocates and initializes a regular render-target. The contents of the render-target are undefined.
| target | |
| width | |
| height | |
| format | |
| depthBufferBits | |
| stencilBufferBits |
| KINC_FUNC void kinc_g5_render_target_init_cube | ( | kinc_g5_render_target_t * | target, |
| int | cubeMapSize, | ||
| kinc_g5_render_target_format_t | format, | ||
| int | depthBufferBits, | ||
| int | stencilBufferBits ) |
Allocates and initializes a render-target-cube-map. The contents of the render-target are undefined.
| target | |
| cubeMapSize | |
| format | |
| depthBufferBits | |
| stencilBufferBits |
| KINC_FUNC void kinc_g5_render_target_init_cube_with_multisampling | ( | kinc_g5_render_target_t * | target, |
| int | cubeMapSize, | ||
| kinc_g5_render_target_format_t | format, | ||
| int | depthBufferBits, | ||
| int | stencilBufferBits, | ||
| int | samples_per_pixel ) |
Allocates and initializes a multisampled render-target-cube-map. Can fall back to a regular cube-map. The contents of the render-target are undefined.
| target | |
| cubeMapSize | |
| format | |
| depthBufferBits | |
| stencilBufferBits | |
| samples_per_pixel |
| KINC_FUNC void kinc_g5_render_target_init_framebuffer | ( | kinc_g5_render_target_t * | target, |
| int | width, | ||
| int | height, | ||
| kinc_g5_render_target_format_t | format, | ||
| int | depthBufferBits, | ||
| int | stencilBufferBits ) |
Allocates and initializes a framebuffer. The contents of the framebuffer are undefined.
| target | |
| width | |
| height | |
| format | |
| depthBufferBits | |
| stencilBufferBits |
| KINC_FUNC void kinc_g5_render_target_init_framebuffer_with_multisampling | ( | kinc_g5_render_target_t * | target, |
| int | width, | ||
| int | height, | ||
| kinc_g5_render_target_format_t | format, | ||
| int | depthBufferBits, | ||
| int | stencilBufferBits, | ||
| int | samples_per_pixel ) |
Allocates and initializes a multisampled framebuffer. Can fall back to a regular framebuffer. The contents of the framebuffer are undefined.
| target | |
| width | |
| height | |
| format | |
| depthBufferBits | |
| stencilBufferBits | |
| samples_per_pixel |
| KINC_FUNC void kinc_g5_render_target_init_with_multisampling | ( | kinc_g5_render_target_t * | target, |
| int | width, | ||
| int | height, | ||
| kinc_g5_render_target_format_t | format, | ||
| int | depthBufferBits, | ||
| int | stencilBufferBits, | ||
| int | samples_per_pixel ) |
Allocates and initializes a regular render-target. Can fall back to a regular render-target. The contents of the render-target are undefined.
| target | |
| width | |
| height | |
| format | |
| depthBufferBits | |
| stencilBufferBits | |
| samples_per_pixel |
| KINC_FUNC void kinc_g5_render_target_set_depth_stencil_from | ( | kinc_g5_render_target_t * | target, |
| kinc_g5_render_target_t * | source ) |
Copies the depth and stencil-components of one render-target into another one.
| renderTarget | The render-target to copy the data into |
| source | The render-target from which to copy the data |