Kohi Game Engine
|
This file contains the types for common resources the engine uses. More...
#include "math/math_types.h"
Go to the source code of this file.
Data Structures | |
struct | resource_header |
The header data for binary resource types. More... | |
struct | resource |
A generic structure for a resource. All resource loaders load data into these. More... | |
struct | image_resource_data |
A structure to hold image resource data. More... | |
struct | image_resource_params |
Parameters used when loading an image. More... | |
struct | texture |
Represents a texture. More... | |
struct | texture_map |
A structure which maps a texture, use and other properties. More... | |
struct | font_glyph |
struct | font_kerning |
struct | font_data |
struct | bitmap_font_page |
struct | bitmap_font_resource_data |
struct | system_font_face |
struct | system_font_resource_data |
struct | geometry |
Represents actual geometry in the world. Typically (but not always, depending on use) paired with a material. More... | |
struct | mesh_config |
struct | mesh |
struct | shader_attribute_config |
Configuration for an attribute. More... | |
struct | shader_uniform_config |
Configuration for a uniform. More... | |
struct | shader_config |
Configuration for a shader. Typically created and destroyed by the shader resource loader, and set to the properties found in a .shadercfg resource file. More... | |
struct | material_config_prop |
struct | material_map |
struct | material_config |
struct | material_phong_properties |
struct | material_ui_properties |
struct | material_terrain_properties |
struct | material |
A material, which represents various properties of a surface in the world such as texture, colour, bumpiness, shininess and more. More... | |
struct | skybox_simple_scene_config |
struct | directional_light_simple_scene_config |
struct | point_light_simple_scene_config |
struct | mesh_simple_scene_config |
struct | terrain_simple_scene_config |
struct | simple_scene_config |
Macros | |
#define | TERRAIN_MAX_MATERIAL_COUNT 4 |
#define | RESOURCE_MAGIC 0xcafebabe |
A magic number indicating the file as a kohi binary file. More... | |
#define | TEXTURE_NAME_MAX_LENGTH 512 |
The maximum length of a texture name. More... | |
#define | MATERIAL_NAME_MAX_LENGTH 256 |
The maximum length of a material name. More... | |
#define | GEOMETRY_NAME_MAX_LENGTH 256 |
The maximum length of a geometry name. More... | |
Typedefs | |
typedef enum resource_type | resource_type |
Pre-defined resource types. More... | |
typedef struct resource_header | resource_header |
The header data for binary resource types. More... | |
typedef struct resource | resource |
A generic structure for a resource. All resource loaders load data into these. More... | |
typedef struct image_resource_data | image_resource_data |
A structure to hold image resource data. More... | |
typedef struct image_resource_params | image_resource_params |
Parameters used when loading an image. More... | |
typedef enum face_cull_mode | face_cull_mode |
Determines face culling mode during rendering. More... | |
typedef enum primitive_topology_type | primitive_topology_type |
typedef enum texture_flag | texture_flag |
typedef u8 | texture_flag_bits |
Holds bit flags for textures.. More... | |
typedef enum texture_type | texture_type |
Represents various types of textures. More... | |
typedef struct texture | texture |
Represents a texture. More... | |
typedef enum texture_filter | texture_filter |
Represents supported texture filtering modes. More... | |
typedef enum texture_repeat | texture_repeat |
typedef struct texture_map | texture_map |
A structure which maps a texture, use and other properties. More... | |
typedef struct font_glyph | font_glyph |
typedef struct font_kerning | font_kerning |
typedef enum font_type | font_type |
typedef struct font_data | font_data |
typedef struct bitmap_font_page | bitmap_font_page |
typedef struct bitmap_font_resource_data | bitmap_font_resource_data |
typedef struct system_font_face | system_font_face |
typedef struct system_font_resource_data | system_font_resource_data |
typedef struct geometry | geometry |
Represents actual geometry in the world. Typically (but not always, depending on use) paired with a material. More... | |
typedef struct mesh_config | mesh_config |
typedef struct mesh | mesh |
typedef enum shader_stage | shader_stage |
Shader stages available in the system. More... | |
typedef enum shader_attribute_type | shader_attribute_type |
Available attribute types. More... | |
typedef enum shader_uniform_type | shader_uniform_type |
Available uniform types. More... | |
typedef enum shader_scope | shader_scope |
Defines shader scope, which indicates how often it gets updated. More... | |
typedef struct shader_attribute_config | shader_attribute_config |
Configuration for an attribute. More... | |
typedef struct shader_uniform_config | shader_uniform_config |
Configuration for a uniform. More... | |
typedef struct shader_config | shader_config |
Configuration for a shader. Typically created and destroyed by the shader resource loader, and set to the properties found in a .shadercfg resource file. More... | |
typedef enum material_type | material_type |
typedef struct material_config_prop | material_config_prop |
typedef struct material_map | material_map |
typedef struct material_config | material_config |
typedef struct material_phong_properties | material_phong_properties |
typedef struct material_ui_properties | material_ui_properties |
typedef struct material_terrain_properties | material_terrain_properties |
typedef struct material | material |
A material, which represents various properties of a surface in the world such as texture, colour, bumpiness, shininess and more. More... | |
typedef struct skybox_simple_scene_config | skybox_simple_scene_config |
typedef struct directional_light_simple_scene_config | directional_light_simple_scene_config |
typedef struct point_light_simple_scene_config | point_light_simple_scene_config |
typedef struct mesh_simple_scene_config | mesh_simple_scene_config |
typedef struct terrain_simple_scene_config | terrain_simple_scene_config |
typedef struct simple_scene_config | simple_scene_config |
This file contains the types for common resources the engine uses.
#define GEOMETRY_NAME_MAX_LENGTH 256 |
The maximum length of a geometry name.
#define MATERIAL_NAME_MAX_LENGTH 256 |
The maximum length of a material name.
#define RESOURCE_MAGIC 0xcafebabe |
A magic number indicating the file as a kohi binary file.
#define TERRAIN_MAX_MATERIAL_COUNT 4 |
#define TEXTURE_NAME_MAX_LENGTH 512 |
The maximum length of a texture name.
typedef struct bitmap_font_page bitmap_font_page |
typedef struct bitmap_font_resource_data bitmap_font_resource_data |
typedef enum face_cull_mode face_cull_mode |
Determines face culling mode during rendering.
typedef struct font_glyph font_glyph |
typedef struct font_kerning font_kerning |
Represents actual geometry in the world. Typically (but not always, depending on use) paired with a material.
typedef struct image_resource_data image_resource_data |
A structure to hold image resource data.
typedef struct image_resource_params image_resource_params |
Parameters used when loading an image.
A material, which represents various properties of a surface in the world such as texture, colour, bumpiness, shininess and more.
typedef struct material_config material_config |
typedef struct material_config_prop material_config_prop |
typedef struct material_map material_map |
typedef struct material_phong_properties material_phong_properties |
typedef struct material_terrain_properties material_terrain_properties |
typedef enum material_type material_type |
typedef struct material_ui_properties material_ui_properties |
typedef struct mesh_config mesh_config |
typedef struct mesh_simple_scene_config mesh_simple_scene_config |
typedef struct point_light_simple_scene_config point_light_simple_scene_config |
typedef enum primitive_topology_type primitive_topology_type |
A generic structure for a resource. All resource loaders load data into these.
typedef struct resource_header resource_header |
The header data for binary resource types.
typedef enum resource_type resource_type |
Pre-defined resource types.
typedef struct shader_attribute_config shader_attribute_config |
Configuration for an attribute.
typedef enum shader_attribute_type shader_attribute_type |
Available attribute types.
typedef struct shader_config shader_config |
Configuration for a shader. Typically created and destroyed by the shader resource loader, and set to the properties found in a .shadercfg resource file.
typedef enum shader_scope shader_scope |
Defines shader scope, which indicates how often it gets updated.
typedef enum shader_stage shader_stage |
Shader stages available in the system.
typedef struct shader_uniform_config shader_uniform_config |
Configuration for a uniform.
typedef enum shader_uniform_type shader_uniform_type |
Available uniform types.
typedef struct simple_scene_config simple_scene_config |
typedef struct skybox_simple_scene_config skybox_simple_scene_config |
typedef struct system_font_face system_font_face |
typedef struct system_font_resource_data system_font_resource_data |
typedef struct terrain_simple_scene_config terrain_simple_scene_config |
typedef enum texture_filter texture_filter |
Represents supported texture filtering modes.
typedef enum texture_flag texture_flag |
typedef u8 texture_flag_bits |
Holds bit flags for textures..
typedef struct texture_map texture_map |
A structure which maps a texture, use and other properties.
typedef enum texture_repeat texture_repeat |
typedef enum texture_type texture_type |
Represents various types of textures.
enum face_cull_mode |
enum font_type |
enum material_type |
enum resource_type |
Pre-defined resource types.
Available attribute types.
enum shader_scope |
Defines shader scope, which indicates how often it gets updated.
enum shader_stage |
enum shader_uniform_type |
Available uniform types.
enum texture_filter |
enum texture_flag |
enum texture_repeat |
enum texture_type |