/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk
27 by Gustav Hartvigsson
* added skeleton for the SBox type.
1
#include "vec.h"
2
61 by Gustav Hartvigsson
* Made the code more easy to read.
3
Vec3 *
72 by Gustav Hartvigsson
* Added our own types for stability and shit and giggles.
4
vec3_new (sint a, sint b, sint c) {
27 by Gustav Hartvigsson
* added skeleton for the SBox type.
5
  Vec3 * self = malloc (sizeof (Vec3));
6
  self->a = a;
7
  self->b = b;
8
  self->c = c;
32 by Gustav Hartvigsson
* Added some compile options to the root CMakeLists.txt
9
  return self;
27 by Gustav Hartvigsson
* added skeleton for the SBox type.
10
}
11
61 by Gustav Hartvigsson
* Made the code more easy to read.
12
Vec3_16 *
72 by Gustav Hartvigsson
* Added our own types for stability and shit and giggles.
13
vec3_16_new (sshort a, sshort b, sshort c) {
32 by Gustav Hartvigsson
* Added some compile options to the root CMakeLists.txt
14
  Vec3_16 * self = malloc (sizeof (Vec3_16));
27 by Gustav Hartvigsson
* added skeleton for the SBox type.
15
  self->a = a;
16
  self->b = b;
17
  self->c = c;
32 by Gustav Hartvigsson
* Added some compile options to the root CMakeLists.txt
18
  return self;
27 by Gustav Hartvigsson
* added skeleton for the SBox type.
19
}
72 by Gustav Hartvigsson
* Added our own types for stability and shit and giggles.
20
21
Vec3_f *
22
vec3_f_new (sfloat a, sfloat b, sfloat c) {
23
  Vec3_f * self = malloc (sizeof (Vec3_f));
24
  self->a = a;
25
  self->b = b;
26
  self->c = c;
27
  return self;
28
}