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 // -------------------------------------------------------------------------- |