graphics.drawRectangle: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 6: Line 6:
|parameters = Surface surface, Vec2 position, Vec2 size, [ int colour1 = COLOUR_WHITE ], [ int colour2 = COLOUR_WHITE ], [ int colour3 = COLOUR_WHITE ], [ int colour4 = COLOUR_WHITE ], [ float rotation = 0.0 ], [ Vec2 center = Vec2(0.0,0.0) ], [ Vec2 sourcePos = Vec2(0.0,0.0) ], [ Vec2 sourceSize = Vec2(1.0,1.0) ], [ Vec2 scale = Vec2(1.0,1.0) ]
|parameters = Surface surface, Vec2 position, Vec2 size, [ int colour1 = COLOUR_WHITE ], [ int colour2 = COLOUR_WHITE ], [ int colour3 = COLOUR_WHITE ], [ int colour4 = COLOUR_WHITE ], [ float rotation = 0.0 ], [ Vec2 center = Vec2(0.0,0.0) ], [ Vec2 sourcePos = Vec2(0.0,0.0) ], [ Vec2 sourceSize = Vec2(1.0,1.0) ], [ Vec2 scale = Vec2(1.0,1.0) ]
|parameter1 = Surface surface The surface object, which can be null.
|parameter1 = Surface surface The surface object, which can be null.
|parameter2 = Vec3 position The 2D position for the rectangle., in pixels.
|parameter2 = Vec3 position The 2D position for the rectangle, in pixels.
|parameter3 = Vec3 size The 2D size for the rectangle, in pixels.
|parameter3 = Vec3 size The 2D size for the rectangle, in pixels.
|parameter4 = int colour1 optional COLOUR_WHITE The 1st colour for the rectangle.
|parameter4 = int colour1 optional COLOUR_WHITE The 1st colour for the rectangle.
6,834

edits

Navigation menu