src/ascension/datatypes.h

changeset 32
86468a71dd73
parent 19
d0e88022e209
child 37
8a8cc6725b48
equal deleted inserted replaced
31:8324037e0148 32:86468a71dd73
90 r.alpha = (asc_ubyte)asc_clamp_i(alpha, 0, 255); 90 r.alpha = (asc_ubyte)asc_clamp_i(alpha, 0, 255);
91 return r; 91 return r;
92 } 92 }
93 93
94 static inline SDL_Color asc_col_sdl(asc_col4i col) { 94 static inline SDL_Color asc_col_sdl(asc_col4i col) {
95 return (SDL_Color) {.r = col.red, .g = col.green, .b =col.blue, .a = col.alpha}; 95 return (SDL_Color) {.r = col.red, .g = col.green, .b = col.blue, .a = col.alpha};
96 } 96 }
97 97
98 // -------------------------------------------------------------------------- 98 // --------------------------------------------------------------------------
99 // Matrix Functions 99 // Matrix Functions
100 // -------------------------------------------------------------------------- 100 // --------------------------------------------------------------------------

mercurial