src/ascension/datatypes.h

changeset 14
9dbfc0031887
parent 12
d89e0ebc76d2
child 16
c5dde81b6fb2
equal deleted inserted replaced
13:f04a49b2aeee 14:9dbfc0031887
26 */ 26 */
27 27
28 #ifndef ASCENSION_DATATYPES_H 28 #ifndef ASCENSION_DATATYPES_H
29 #define ASCENSION_DATATYPES_H 29 #define ASCENSION_DATATYPES_H
30 30
31 #ifdef __cplusplus
32 #error You cannot ascend using C++
33 #endif
34
31 #include <stdbool.h> 35 #include <stdbool.h>
32 #include <SDL2/SDL_endian.h> 36 #include <SDL2/SDL_endian.h>
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 37
38 // -------------------------------------------------------------------------- 38 // --------------------------------------------------------------------------
39 // Datatype Definitions 39 // Datatype Definitions
40 // -------------------------------------------------------------------------- 40 // --------------------------------------------------------------------------
41 41
117 mat[2][2] = -1; 117 mat[2][2] = -1;
118 mat[3][0] = -(right + left) / (right - left); 118 mat[3][0] = -(right + left) / (right - left);
119 mat[3][1] = -(top + bottom) / (top - bottom); 119 mat[3][1] = -(top + bottom) / (top - bottom);
120 } 120 }
121 121
122 #ifdef __cplusplus
123 } // extern "C"
124 #endif
125
126 #endif //ASCENSION_DATATYPES_H 122 #endif //ASCENSION_DATATYPES_H

mercurial