예제 #1
0
void glColorRGBA(const RGBAColour& rgba) {
    glColor4ub(rgba.r(), rgba.g(), rgba.b(), rgba.a());
}
예제 #2
0
Uint32 MapRGBA(SDL_PixelFormat *fmt, const RGBAColour& in) {
  return SDL_MapRGBA(fmt, in.r(), in.g(), in.b(), in.a());
}