face_cull_mode
Determines face culling mode during rendering.
Definition: core_render_types.h:16
texture_channel
Definition: core_render_types.h:85
kmaterial_model
Definition: core_render_types.h:332
shader_binding_type
Definition: core_render_types.h:243
shader_sampler_type
Definition: core_render_types.h:144
texture_filter
Represents supported texture filtering modes.
Definition: core_render_types.h:70
u32 primitive_topology_type_bits
A combination of topology bit flags.
Definition: core_render_types.h:44
shader_attribute_type
Available attribute types.
Definition: core_render_types.h:101
kpixel_format
Represents the format of image (or texture) pixel data.
Definition: core_render_types.h:47
projection_matrix_type
Definition: core_render_types.h:7
ktexture_type
Represents various types of textures.
Definition: core_render_types.h:124
texture_repeat
Definition: core_render_types.h:77
shader_stage
Shader stages available in the system.
Definition: core_render_types.h:93
kmaterial_type
Definition: core_render_types.h:323
#define KAPI
Import/export qualifier.
Definition: defines.h:209
unsigned int u32
Unsigned 32-bit integer.
Definition: defines.h:27
_Bool b8
8-bit boolean type
Definition: defines.h:60
float f32
32-bit floating point number
Definition: defines.h:49
unsigned short u16
Unsigned 16-bit integer.
Definition: defines.h:24
unsigned char u8
Unsigned 8-bit integer.
Definition: defines.h:21
const char * format
Definition: kstring.h:180
KAPI shader_stage string_to_shader_stage(const char *str)
Converts the given string into a shader stage. Case-insensitive.
KAPI texture_channel string_to_texture_channel(const char *str)
KAPI primitive_topology_type_bits string_to_topology_type(const char *str)
Converts the given string to a primitive topology type.
KAPI shader_binding_type shader_binding_type_from_string(const char *str)
KAPI kmaterial_model string_to_kmaterial_model(const char *str)
Converts the given string into a material model. Case-insensitive.
KAPI const char * shader_stage_to_string(shader_stage stage)
Returns the string representation of the given shader stage.
KAPI b8 pixel_data_has_transparency(const void *pixels, u32 pixel_count, kpixel_format format)
Determines if any pixel has an alpha less than opaque.
KAPI const char * shader_sampler_type_to_string(shader_sampler_type type)
KAPI kpixel_format string_to_kpixel_format(const char *str)
Converts the given string into a kpixel_format. Case-insensitive.
KAPI mat4 generate_projection_matrix(rect_2di rect, f32 fov, f32 near_clip, f32 far_clip, projection_matrix_type matrix_type)
KAPI shader_sampler_type shader_sampler_type_from_string(const char *str)
KAPI const char * ktexture_type_to_string(ktexture_type type)
KAPI u8 channel_count_from_pixel_format(kpixel_format format)
KAPI const char * face_cull_mode_to_string(face_cull_mode mode)
Returns the string representation of the given cull mode.
KAPI u16 size_from_shader_attribute_type(shader_attribute_type type)
Returns the size in bytes of the attribute type.
KAPI const char * texture_channel_to_string(texture_channel channel)
KAPI const char * kmaterial_type_to_string(kmaterial_type type)
Returns the string representation of the given material type.
KAPI const char * string_from_kpixel_format(kpixel_format format)
Returns the string representation of the given kpixel_format.
KAPI const char * kmaterial_model_to_string(kmaterial_model model)
Returns the string representation of the given material model.
KAPI texture_repeat string_to_texture_repeat(const char *str)
Converts the given string into a texture repeat. Case-insensitive.
KAPI kmaterial_type string_to_kmaterial_type(const char *str)
Converts the given string into a material type. Case-insensitive.
KAPI shader_attribute_type string_to_shader_attribute_type(const char *str)
Converts the given string into a shader attribute type. Case-insensitive.
KAPI u8 calculate_mip_levels_from_dimension(u32 width, u32 height)
Calculate mip levels based on the given dimensions.
KAPI const char * texture_filter_mode_to_string(texture_filter filter)
Returns the string representation of the given texture filter.
KAPI const char * topology_type_to_string(primitive_topology_type_bits type)
Returns the string representation of the given primitive topology type.
KAPI face_cull_mode string_to_face_cull_mode(const char *str)
Converts the given string to a face cull mode.
KAPI const char * texture_repeat_to_string(texture_repeat repeat)
Returns the string representation of the given texture repeat.
KAPI texture_filter string_to_texture_filter_mode(const char *str)
Converts the given string into a texture filter. Case-insensitive.
KAPI ktexture_type ktexture_type_from_string(const char *str)
KAPI const char * shader_binding_type_to_string(shader_binding_type type)
KAPI const char * shader_attribute_type_to_string(shader_attribute_type type)
Returns the string representation of the given shader attribute type.
a 4x4 matrix, typically used to represent object transformations.
Definition: math_types.h:383
A 4-element integer-based vector.
Definition: math_types.h:574