44 void draw_line(
float xa,
float ya,
float xb,
float yb);
48 INLINE
void draw_hline_point(
int x,
float xa,
float ya,
51 INLINE
void draw_vline_point(
int y,
float xa,
float ya,
This class is used to control the shape and color of the drawing operations performed by a PNMPainter...
The name of this class derives from the fact that we originally implemented it as a layer on top of t...
get_pen
Returns the current pen.
set_fill
Specifies a PNMBrush that will be used for filling in the interiors of objects.
void draw_line(float xa, float ya, float xb, float yb)
Draws an antialiased line on the PNMImage, using the current pen.
PNMPainter(PNMImage &image, int xo=0, int yo=0)
The constructor stores a pointer to the PNMImage you pass it, but it does not take ownership of the o...
void draw_rectangle(float xa, float ya, float xb, float yb)
Draws a filled rectangule on the PNMImage, using the current pen for the outline, and the current fil...
get_fill
Returns the current fill brush.
void draw_point(float x, float y)
Draws an antialiased point on the PNMImage, using the current pen.
set_pen
Specifies a PNMBrush that will be used for drawing lines and edges.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.