File: IOGfxSurface.cpp

package info (click to toggle)
freedink 109.6-6
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 7,944 kB
  • sloc: ansic: 27,668; cpp: 23,643; sh: 5,524; java: 1,224; makefile: 257; javascript: 106; xml: 103; perl: 52; python: 17; sed: 16
file content (19 lines) | stat: -rw-r--r-- 450 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "config.h"

#include "IOGfxSurface.h"

IOGfxSurface::IOGfxSurface(int w, int h)
: w(w), h(h) {
}

IOGfxSurface::~IOGfxSurface() {
}

void IOGfxSurface::vlineRGB(Sint16 x, Sint16 y1, Sint16 y2, Uint8 r, Uint8 g, Uint8 b) {
	SDL_Rect dst = { x, y1, 1, y2-y1 };
	fillRect(&dst, r, g, b);
}
void IOGfxSurface::hlineRGB(Sint16 x1, Sint16 x2, Sint16 y, Uint8 r, Uint8 g, Uint8 b) {
	SDL_Rect dst = { x1, y, x2-x1, 1 };
	fillRect(&dst, r, g, b);
}