Kore
Loading...
Searching...
No Matches
vertexstructure.h
Go to the documentation of this file.
1#pragma once
2
3#include <kinc/global.h>
4
6
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef kinc_g4_vertex_data_t kinc_g5_vertex_data_t;
16
17// typedef kinc_g4_vertex_attribute_t kinc_g5_vertex_attribute_t;
18
19typedef kinc_g4_vertex_element_t kinc_g5_vertex_element_t;
20
21typedef kinc_g4_vertex_structure_t kinc_g5_vertex_structure_t;
22
28static inline void kinc_g5_vertex_structure_init(kinc_g5_vertex_structure_t *structure) {
30}
31
39static inline void kinc_g5_vertex_structure_add(kinc_g5_vertex_structure_t *structure, const char *name, kinc_g5_vertex_data_t data) {
40 kinc_g4_vertex_structure_add(structure, name, data);
41}
42
43#ifdef __cplusplus
44}
45#endif
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
Provides functions for setting up the structure of vertices in a vertex-buffer.
KINC_FUNC void kinc_g4_vertex_structure_add(kinc_g4_vertex_structure_t *structure, const char *name, kinc_g4_vertex_data_t data)
Adds an element to a vertex-structure.
Definition vertexbuffer.c.h:13
KINC_FUNC void kinc_g4_vertex_structure_init(kinc_g4_vertex_structure_t *structure)
Initializes a vertex-structure.
Definition vertexbuffer.c.h:8
static void kinc_g5_vertex_structure_init(kinc_g5_vertex_structure_t *structure)
Initializes a vertex-structure.
Definition vertexstructure.h:28
static void kinc_g5_vertex_structure_add(kinc_g5_vertex_structure_t *structure, const char *name, kinc_g5_vertex_data_t data)
Adds an element to a vertex-structure.
Definition vertexstructure.h:39