void ossimRgbImage::drawFilledRectangle(double x1, double y1, double x2, double y2) { // drawFilledRectangle((int)ossim::round<int>(x1), // (int)ossim::round<int>(y1), // (int)ossim::round<int>(x2), // (int)ossim::round<int>(y2)); drawFilledRectangle((int)(x1), (int)(y1), (int)(x2), (int)(y2)); }
/* Draw a filled rectangle in color at (x,y) with the width x height size * @param color is the indexted color * @param (x, y) is the reference position * @param width is the rectangle width * @param height is the rectangle height */ void SDLInterface::drawFilledRectangle(int color, int x, int y, int width, int height) { drawFilledRectangle(colorPalette[color].r, colorPalette[color].g, colorPalette[color].b, colorPalette[color].a, x, y, width, height); }