mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 23:34:57 -04:00
grutil: Add clear_color method to CardMaker
This commit is contained in:
parent
9fd39e1aef
commit
262bde3082
@ -101,6 +101,15 @@ set_color(const LVecBase4 &color) {
|
||||
_has_color = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets the color of the card.
|
||||
*/
|
||||
INLINE void CardMaker::
|
||||
clear_color() {
|
||||
_has_color = false;
|
||||
_color.set(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the flag indicating whether vertices will be generated with normals or
|
||||
* not. Normals are required if you intend to enable lighting on the card,
|
||||
|
@ -49,6 +49,7 @@ PUBLISHED:
|
||||
|
||||
INLINE void set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a);
|
||||
INLINE void set_color(const LColor &color);
|
||||
INLINE void clear_color();
|
||||
|
||||
INLINE void set_has_normals(bool flag);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user