Module core.plugins.tracking.cl_init

Trackers Client.

Module Overview

Functions

surface.DrawTexturedRectRotatedPoint(x, y, w, h, rot, x0, y0) Draw a rotated rectangle, rotated around non-origin point.
draw.Arc(cx, cy, radius, thickness, startang, endang, roughness, color) Draw an arc on screen.
surface.PrecacheArc(cx, cy, radius, thickness, startang, endang, roughness) Create a list of points to create an arc from.
surface.DrawArc(arc) Draw an pre-generated arc.

Functions

surface.DrawTexturedRectRotatedPoint(x, y, w, h, rot, x0, y0)
Draw a rotated rectangle, rotated around non-origin point.

Parameters:

  • x The x centre of the rectangle.
  • y The y centre of the rectangle.
  • w The width of the rectangle.
  • h The height of the shape
  • rot Rotation angle (degrees)
  • x0 The rotation x origin.
  • y0 The rotation y origin.
draw.Arc(cx, cy, radius, thickness, startang, endang, roughness, color)
Draw an arc on screen.

Parameters:

  • cx Centre X
  • cy Centre Y
  • radius Radius of the arc.
  • thickness Thickness of the arc line.
  • startang The starting angle of the arc.
  • endang The ending angle of the arc.
  • roughness Measure of how many "points" are created for the arc.
  • color The color of the arc.
surface.PrecacheArc(cx, cy, radius, thickness, startang, endang, roughness)
Create a list of points to create an arc from.

Parameters:

  • cx Centre X
  • cy Centre Y
  • radius Radius of the arc.
  • thickness Thickness of the arc line.
  • startang The starting angle of the arc.
  • endang The ending angle of the arc.
  • roughness Measure of how many "points" are created for the arc.
surface.DrawArc(arc)
Draw an pre-generated arc.

Parameters:

  • arc ArcData from surface.PrecacheArc

See also: