nicegraf
|
This module contains routines and structures that provide auxiliary functionality or help reduce boilerplate.
Data Structures | |
struct | ngf_util_graphics_pipeline_data |
Functions | |
void | ngf_util_create_default_graphics_pipeline_data (ngf_util_graphics_pipeline_data *result) |
const char * | ngf_util_get_error_name (const ngf_error err) |
void ngf_util_create_default_graphics_pipeline_data | ( | ngf_util_graphics_pipeline_data * | result | ) |
Creates a configuration for a graphics pipeline object with some pre-set defaults.
The fields of the members of the resulting ngf_util_graphics_pipeline_data are set such that they match OpenGL defaults. They can be adjusted later. The pointer fields of ngf_util_graphics_pipeline_data::pipeline_info are set to point to the corresponding members of ngf_util_graphics_pipeline_data.
The only aspect of configuration that this function does not set are the programmable shader stages. After the application code sets those, ngf_util_graphics_pipeline_data::pipeline_info can be used to create a new pipeline object.
result | Pipeline configuration data will be stored here. |
const char * ngf_util_get_error_name | ( | const ngf_error | err | ) |
Converts a nicegraf error code to a human-readable string.
err | The error enum to get the string for. |