factor/library/sdl/sdl-gfx.factor

109 lines
3.4 KiB
Factor
Raw Normal View History

2005-03-06 20:03:22 -05:00
! Copyright (C) 2004, 2005 Slava Pestov.
! See http://factor.sf.net/license.txt for BSD license.
IN: sdl USING: alien ;
2004-10-16 21:55:13 -04:00
: pixelColor ( surface x y color -- )
"void" "sdl-gfx" "pixelColor"
[ "surface*" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: hlineColor ( surface x1 x2 y color -- )
"void" "sdl-gfx" "hlineColor"
[ "surface*" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: vlineColor ( surface x y1 y2 color -- )
"void" "sdl-gfx" "vlineColor"
[ "surface*" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: rectangleColor ( surface x1 y1 x2 y2 color -- )
"void" "sdl-gfx" "rectangleColor"
[ "surface*" "short" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: boxColor ( surface x1 y1 x2 y2 color -- )
"void" "sdl-gfx" "boxColor"
[ "surface*" "short" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: lineColor ( surface x1 y1 x2 y2 color -- )
"void" "sdl-gfx" "lineColor"
[ "surface*" "short" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: aalineColor ( surface x1 y1 x2 y2 color -- )
"void" "sdl-gfx" "aalineColor"
[ "surface*" "short" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: circleColor ( surface x y r color -- )
"void" "sdl-gfx" "circleColor"
[ "surface*" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: aacircleColor ( surface x y r color -- )
"void" "sdl-gfx" "aacircleColor"
[ "surface*" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: filledCircleColor ( surface x y r color -- )
"void" "sdl-gfx" "filledCircleColor"
[ "surface*" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: ellipseColor ( surface x y rx ry color -- )
"void" "sdl-gfx" "ellipseColor"
[ "surface*" "short" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: aaellipseColor ( surface x y rx ry color -- )
"void" "sdl-gfx" "aaellipseColor"
[ "surface*" "short" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: filledEllipseColor ( surface x y rx ry color -- )
"void" "sdl-gfx" "filledEllipseColor"
[ "surface*" "short" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: trigonColor ( surface x1 y1 x2 y2 x3 y3 color -- )
"void" "sdl-gfx" "trigonColor"
[ "surface*" "short" "short" "short" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: aatrigonColor ( surface x1 y1 x2 y2 x3 y3 color -- )
"void" "sdl-gfx" "aatrigonColor"
[ "surface*" "short" "short" "short" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: filledTrigonColor ( surface x1 y1 x2 y2 x3 y3 color -- )
"void" "sdl-gfx" "filledTrigonColor"
[ "surface*" "short" "short" "short" "short" "short" "short" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: polygonColor ( surface vx vy n color -- )
"void" "sdl-gfx" "polygonColor"
[ "surface*" "short*" "short*" "int" "int" ]
alien-invoke ;
: aapolygonColor ( surface vx vy n color -- )
"void" "sdl-gfx" "aapolygonColor"
[ "surface*" "short*" "short*" "int" "int" ]
alien-invoke ;
: filledPolygonColor ( surface vx vy n color -- )
"void" "sdl-gfx" "filledPolygonColor"
[ "surface*" "short*" "short*" "int" "int" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: characterColor ( surface x y c color -- )
"void" "sdl-gfx" "characterColor"
[ "surface*" "short" "short" "char" "uint" ]
alien-invoke ;
2004-10-16 21:55:13 -04:00
: stringColor ( surface x y str color -- )
"void" "sdl-gfx" "stringColor"
[ "surface*" "short" "short" "char*" "uint" ]
alien-invoke ;