Lines Matching refs:m

16 rsMatrixLoadIdentity(rs_matrix4x4 *m) {  in rsMatrixLoadIdentity()  argument
17 m->m[0] = 1.f; in rsMatrixLoadIdentity()
18 m->m[1] = 0.f; in rsMatrixLoadIdentity()
19 m->m[2] = 0.f; in rsMatrixLoadIdentity()
20 m->m[3] = 0.f; in rsMatrixLoadIdentity()
21 m->m[4] = 0.f; in rsMatrixLoadIdentity()
22 m->m[5] = 1.f; in rsMatrixLoadIdentity()
23 m->m[6] = 0.f; in rsMatrixLoadIdentity()
24 m->m[7] = 0.f; in rsMatrixLoadIdentity()
25 m->m[8] = 0.f; in rsMatrixLoadIdentity()
26 m->m[9] = 0.f; in rsMatrixLoadIdentity()
27 m->m[10] = 1.f; in rsMatrixLoadIdentity()
28 m->m[11] = 0.f; in rsMatrixLoadIdentity()
29 m->m[12] = 0.f; in rsMatrixLoadIdentity()
30 m->m[13] = 0.f; in rsMatrixLoadIdentity()
31 m->m[14] = 0.f; in rsMatrixLoadIdentity()
32 m->m[15] = 1.f; in rsMatrixLoadIdentity()
36 rsMatrixLoadIdentity(rs_matrix3x3 *m) { in rsMatrixLoadIdentity() argument
37 m->m[0] = 1.f; in rsMatrixLoadIdentity()
38 m->m[1] = 0.f; in rsMatrixLoadIdentity()
39 m->m[2] = 0.f; in rsMatrixLoadIdentity()
40 m->m[3] = 0.f; in rsMatrixLoadIdentity()
41 m->m[4] = 1.f; in rsMatrixLoadIdentity()
42 m->m[5] = 0.f; in rsMatrixLoadIdentity()
43 m->m[6] = 0.f; in rsMatrixLoadIdentity()
44 m->m[7] = 0.f; in rsMatrixLoadIdentity()
45 m->m[8] = 1.f; in rsMatrixLoadIdentity()
48 rsMatrixLoadIdentity(rs_matrix2x2 *m) { in rsMatrixLoadIdentity() argument
49 m->m[0] = 1.f; in rsMatrixLoadIdentity()
50 m->m[1] = 0.f; in rsMatrixLoadIdentity()
51 m->m[2] = 0.f; in rsMatrixLoadIdentity()
52 m->m[3] = 1.f; in rsMatrixLoadIdentity()
56 rsMatrixLoad(rs_matrix4x4 *m, const float *f) { in rsMatrixLoad() argument
57 m->m[0] = f[0]; in rsMatrixLoad()
58 m->m[1] = f[1]; in rsMatrixLoad()
59 m->m[2] = f[2]; in rsMatrixLoad()
60 m->m[3] = f[3]; in rsMatrixLoad()
61 m->m[4] = f[4]; in rsMatrixLoad()
62 m->m[5] = f[5]; in rsMatrixLoad()
63 m->m[6] = f[6]; in rsMatrixLoad()
64 m->m[7] = f[7]; in rsMatrixLoad()
65 m->m[8] = f[8]; in rsMatrixLoad()
66 m->m[9] = f[9]; in rsMatrixLoad()
67 m->m[10] = f[10]; in rsMatrixLoad()
68 m->m[11] = f[11]; in rsMatrixLoad()
69 m->m[12] = f[12]; in rsMatrixLoad()
70 m->m[13] = f[13]; in rsMatrixLoad()
71 m->m[14] = f[14]; in rsMatrixLoad()
72 m->m[15] = f[15]; in rsMatrixLoad()
75 rsMatrixLoad(rs_matrix3x3 *m, const float *f) { in rsMatrixLoad() argument
76 m->m[0] = f[0]; in rsMatrixLoad()
77 m->m[1] = f[1]; in rsMatrixLoad()
78 m->m[2] = f[2]; in rsMatrixLoad()
79 m->m[3] = f[3]; in rsMatrixLoad()
80 m->m[4] = f[4]; in rsMatrixLoad()
81 m->m[5] = f[5]; in rsMatrixLoad()
82 m->m[6] = f[6]; in rsMatrixLoad()
83 m->m[7] = f[7]; in rsMatrixLoad()
84 m->m[8] = f[8]; in rsMatrixLoad()
87 rsMatrixLoad(rs_matrix2x2 *m, const float *f) { in rsMatrixLoad() argument
88 m->m[0] = f[0]; in rsMatrixLoad()
89 m->m[1] = f[1]; in rsMatrixLoad()
90 m->m[2] = f[2]; in rsMatrixLoad()
91 m->m[3] = f[3]; in rsMatrixLoad()
95 rsMatrixLoad(rs_matrix4x4 *m, const rs_matrix4x4 *s) { in rsMatrixLoad() argument
96 m->m[0] = s->m[0]; in rsMatrixLoad()
97 m->m[1] = s->m[1]; in rsMatrixLoad()
98 m->m[2] = s->m[2]; in rsMatrixLoad()
99 m->m[3] = s->m[3]; in rsMatrixLoad()
100 m->m[4] = s->m[4]; in rsMatrixLoad()
101 m->m[5] = s->m[5]; in rsMatrixLoad()
102 m->m[6] = s->m[6]; in rsMatrixLoad()
103 m->m[7] = s->m[7]; in rsMatrixLoad()
104 m->m[8] = s->m[8]; in rsMatrixLoad()
105 m->m[9] = s->m[9]; in rsMatrixLoad()
106 m->m[10] = s->m[10]; in rsMatrixLoad()
107 m->m[11] = s->m[11]; in rsMatrixLoad()
108 m->m[12] = s->m[12]; in rsMatrixLoad()
109 m->m[13] = s->m[13]; in rsMatrixLoad()
110 m->m[14] = s->m[14]; in rsMatrixLoad()
111 m->m[15] = s->m[15]; in rsMatrixLoad()
114 rsMatrixLoad(rs_matrix4x4 *m, const rs_matrix3x3 *v) { in rsMatrixLoad() argument
115 m->m[0] = v->m[0]; in rsMatrixLoad()
116 m->m[1] = v->m[1]; in rsMatrixLoad()
117 m->m[2] = v->m[2]; in rsMatrixLoad()
118 m->m[3] = 0.f; in rsMatrixLoad()
119 m->m[4] = v->m[3]; in rsMatrixLoad()
120 m->m[5] = v->m[4]; in rsMatrixLoad()
121 m->m[6] = v->m[5]; in rsMatrixLoad()
122 m->m[7] = 0.f; in rsMatrixLoad()
123 m->m[8] = v->m[6]; in rsMatrixLoad()
124 m->m[9] = v->m[7]; in rsMatrixLoad()
125 m->m[10] = v->m[8]; in rsMatrixLoad()
126 m->m[11] = 0.f; in rsMatrixLoad()
127 m->m[12] = 0.f; in rsMatrixLoad()
128 m->m[13] = 0.f; in rsMatrixLoad()
129 m->m[14] = 0.f; in rsMatrixLoad()
130 m->m[15] = 1.f; in rsMatrixLoad()
133 rsMatrixLoad(rs_matrix4x4 *m, const rs_matrix2x2 *v) { in rsMatrixLoad() argument
134 m->m[0] = v->m[0]; in rsMatrixLoad()
135 m->m[1] = v->m[1]; in rsMatrixLoad()
136 m->m[2] = 0.f; in rsMatrixLoad()
137 m->m[3] = 0.f; in rsMatrixLoad()
138 m->m[4] = v->m[2]; in rsMatrixLoad()
139 m->m[5] = v->m[3]; in rsMatrixLoad()
140 m->m[6] = 0.f; in rsMatrixLoad()
141 m->m[7] = 0.f; in rsMatrixLoad()
142 m->m[8] = 0.f; in rsMatrixLoad()
143 m->m[9] = 0.f; in rsMatrixLoad()
144 m->m[10] = 1.f; in rsMatrixLoad()
145 m->m[11] = 0.f; in rsMatrixLoad()
146 m->m[12] = 0.f; in rsMatrixLoad()
147 m->m[13] = 0.f; in rsMatrixLoad()
148 m->m[14] = 0.f; in rsMatrixLoad()
149 m->m[15] = 1.f; in rsMatrixLoad()
152 rsMatrixLoad(rs_matrix3x3 *m, const rs_matrix3x3 *s) { in rsMatrixLoad() argument
153 m->m[0] = s->m[0]; in rsMatrixLoad()
154 m->m[1] = s->m[1]; in rsMatrixLoad()
155 m->m[2] = s->m[2]; in rsMatrixLoad()
156 m->m[3] = s->m[3]; in rsMatrixLoad()
157 m->m[4] = s->m[4]; in rsMatrixLoad()
158 m->m[5] = s->m[5]; in rsMatrixLoad()
159 m->m[6] = s->m[6]; in rsMatrixLoad()
160 m->m[7] = s->m[7]; in rsMatrixLoad()
161 m->m[8] = s->m[8]; in rsMatrixLoad()
164 rsMatrixLoad(rs_matrix2x2 *m, const rs_matrix2x2 *s) { in rsMatrixLoad() argument
165 m->m[0] = s->m[0]; in rsMatrixLoad()
166 m->m[1] = s->m[1]; in rsMatrixLoad()
167 m->m[2] = s->m[2]; in rsMatrixLoad()
168 m->m[3] = s->m[3]; in rsMatrixLoad()
173 rsMatrixSet(rs_matrix4x4 *m, uint32_t col, uint32_t row, float v) { in rsMatrixSet() argument
174 m->m[col * 4 + row] = v; in rsMatrixSet()
178 rsMatrixGet(const rs_matrix4x4 *m, uint32_t col, uint32_t row) { in rsMatrixGet() argument
179 return m->m[col * 4 + row]; in rsMatrixGet()
183 rsMatrixSet(rs_matrix3x3 *m, uint32_t col, uint32_t row, float v) { in rsMatrixSet() argument
184 m->m[col * 3 + row] = v; in rsMatrixSet()
188 rsMatrixGet(const rs_matrix3x3 *m, uint32_t col, uint32_t row) { in rsMatrixGet() argument
189 return m->m[col * 3 + row]; in rsMatrixGet()
193 rsMatrixSet(rs_matrix2x2 *m, uint32_t col, uint32_t row, float v) { in rsMatrixSet() argument
194 m->m[col * 2 + row] = v; in rsMatrixSet()
198 rsMatrixGet(const rs_matrix2x2 *m, uint32_t col, uint32_t row) { in rsMatrixGet() argument
199 return m->m[col * 2 + row]; in rsMatrixGet()
203 rsMatrixMultiply(const rs_matrix2x2 *m, float2 in) { in rsMatrixMultiply() argument
205 ret.x = (m->m[0] * in.x) + (m->m[2] * in.y); in rsMatrixMultiply()
206 ret.y = (m->m[1] * in.x) + (m->m[3] * in.y); in rsMatrixMultiply()
210 rsMatrixMultiply(rs_matrix2x2 *m, float2 in) { in rsMatrixMultiply() argument
211 return rsMatrixMultiply((const rs_matrix2x2 *)m, in); in rsMatrixMultiply()
215 rsMatrixMultiply(rs_matrix4x4 *m, float4 in) { in rsMatrixMultiply() argument
216 return rsMatrixMultiply((const rs_matrix4x4 *)m, in); in rsMatrixMultiply()
220 rsMatrixMultiply(rs_matrix4x4 *m, float3 in) { in rsMatrixMultiply() argument
221 return rsMatrixMultiply((const rs_matrix4x4 *)m, in); in rsMatrixMultiply()
225 rsMatrixMultiply(rs_matrix4x4 *m, float2 in) { in rsMatrixMultiply() argument
226 return rsMatrixMultiply((const rs_matrix4x4 *)m, in); in rsMatrixMultiply()
230 rsMatrixMultiply(rs_matrix3x3 *m, float3 in) { in rsMatrixMultiply() argument
231 return rsMatrixMultiply((const rs_matrix3x3 *)m, in); in rsMatrixMultiply()
235 rsMatrixMultiply(rs_matrix3x3 *m, float2 in) { in rsMatrixMultiply() argument
236 return rsMatrixMultiply((const rs_matrix3x3 *)m, in); in rsMatrixMultiply()
324 left->x = viewProj->m[3] + viewProj->m[0]; in rsExtractFrustumPlanes()
325 left->y = viewProj->m[7] + viewProj->m[4]; in rsExtractFrustumPlanes()
326 left->z = viewProj->m[11] + viewProj->m[8]; in rsExtractFrustumPlanes()
327 left->w = viewProj->m[15] + viewProj->m[12]; in rsExtractFrustumPlanes()
329 right->x = viewProj->m[3] - viewProj->m[0]; in rsExtractFrustumPlanes()
330 right->y = viewProj->m[7] - viewProj->m[4]; in rsExtractFrustumPlanes()
331 right->z = viewProj->m[11] - viewProj->m[8]; in rsExtractFrustumPlanes()
332 right->w = viewProj->m[15] - viewProj->m[12]; in rsExtractFrustumPlanes()
334 top->x = viewProj->m[3] - viewProj->m[1]; in rsExtractFrustumPlanes()
335 top->y = viewProj->m[7] - viewProj->m[5]; in rsExtractFrustumPlanes()
336 top->z = viewProj->m[11] - viewProj->m[9]; in rsExtractFrustumPlanes()
337 top->w = viewProj->m[15] - viewProj->m[13]; in rsExtractFrustumPlanes()
339 bottom->x = viewProj->m[3] + viewProj->m[1]; in rsExtractFrustumPlanes()
340 bottom->y = viewProj->m[7] + viewProj->m[5]; in rsExtractFrustumPlanes()
341 bottom->z = viewProj->m[11] + viewProj->m[9]; in rsExtractFrustumPlanes()
342 bottom->w = viewProj->m[15] + viewProj->m[13]; in rsExtractFrustumPlanes()
344 near->x = viewProj->m[3] + viewProj->m[2]; in rsExtractFrustumPlanes()
345 near->y = viewProj->m[7] + viewProj->m[6]; in rsExtractFrustumPlanes()
346 near->z = viewProj->m[11] + viewProj->m[10]; in rsExtractFrustumPlanes()
347 near->w = viewProj->m[15] + viewProj->m[14]; in rsExtractFrustumPlanes()
349 far->x = viewProj->m[3] - viewProj->m[2]; in rsExtractFrustumPlanes()
350 far->y = viewProj->m[7] - viewProj->m[6]; in rsExtractFrustumPlanes()
351 far->z = viewProj->m[11] - viewProj->m[10]; in rsExtractFrustumPlanes()
352 far->w = viewProj->m[15] - viewProj->m[14]; in rsExtractFrustumPlanes()