Panda3D
Functions
pnmBrush.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "pnmBrush.h"
#include "pnmImage.h"
#include "config_pnmimage.h"
#include "cmath.h"

Go to the source code of this file.

Functions

 PT (PNMBrush) PNMBrush
 Returns a new brush that does not paint anything. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
2007-02-01

Definition in file pnmBrush.cxx.

Function Documentation

◆ PT()

PT ( PNMBrush  )

Returns a new brush that does not paint anything.

Returns a new brush that paints with the indicated image.

Returns a new brush that paints a spot of the indicated color and radius.

Returns a new brush that paints a single pixel of the indicated color on a border, or paints a solid color in an interior.

Can be used as either a pen or a fill brush to make borderless or unfilled shapes, respectively.

If fuzzy is true, the spot is fuzzy; otherwise, it is hard-edged.

xc and yc indicate the pixel in the center of the brush.

The brush makes a copy of the image; it is safe to deallocate or modify the image after making this call.

Definition at line 258 of file pnmBrush.cxx.