summaryrefslogtreecommitdiff
path: root/include/cglm/call/mat3x4.h
blob: 5ead2f462bbe0c1b93e35e3d3a825f3c09e75afb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Copyright (c), Recep Aslantas.
 *
 * MIT License (MIT), http://opensource.org/licenses/MIT
 * Full license can be found in the LICENSE file
 */

#ifndef cglmc_mat3x4_h
#define cglmc_mat3x4_h
#ifdef __cplusplus
extern "C" {
#endif

#include "../cglm.h"

CGLM_EXPORT
void
glmc_mat3x4_copy(mat3x4 src, mat3x4 dest);

CGLM_EXPORT
void
glmc_mat3x4_zero(mat3x4 m);

CGLM_EXPORT
void
glmc_mat3x4_make(const float * __restrict src, mat3x4 dest);

CGLM_EXPORT
void
glmc_mat3x4_mul(mat3x4 m1, mat4x3 m2, mat4 dest);

CGLM_EXPORT
void
glmc_mat3x4_mulv(mat3x4 m, vec3 v, vec4 dest);

CGLM_EXPORT
void
glmc_mat3x4_transpose(mat3x4 src, mat4x3 dest);

CGLM_EXPORT
void
glmc_mat3x4_scale(mat3x4 m, float s);

#ifdef __cplusplus
}
#endif
#endif /* cglmc_mat3x4_h */