NHP_Wrist_Center_Out 1.1.1
Compiled `c` application run on Jetson Nano 2, which renders uses `XLib11` libraries to render the white cursor and targets on a black background, moving the cursor and showing or hiding targets as a function of received UDP messages.
Loading...
Searching...
No Matches
Rendering Functions

Functions that render graphics onto the canvas.
More...

Functions

void drawCircle (Display *display, Window window, GC gc, int x, int y, int radius)
 Draws a circle on the specified display and window.
 
void drawTarget (Display *display, Window window, GC gc, struct Circle target)
 Draws a target circle on the specified display and window.
 

Detailed Description

Functions that render graphics onto the canvas.

Function Documentation

◆ drawCircle()

void drawCircle ( Display * display,
Window window,
GC gc,
int x,
int y,
int radius )

Draws a circle on the specified display and window.

Parameters
displayThe X display.
windowThe X window.
gcThe graphics context.
xThe x-coordinate of the circle's center.
yThe y-coordinate of the circle's center.
radiusThe radius of the circle.

◆ drawTarget()

void drawTarget ( Display * display,
Window window,
GC gc,
struct Circle target )

Draws a target circle on the specified display and window.

Parameters
displayThe X display.
windowThe X window.
gcThe graphics context.
targetThe target circle to draw.