Panda3D
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Pixel Struct Reference

Public Member Functions

 __init__ ()
 
 __init__ (Gray fill)
 
 __init__ (Gray r, Gray g, Gray b)
 
 __init__ (const Pixel)
 
Pixel operator * (const double mult)
 
Pixel operator *= (const double mult)
 
Pixel operator - (const Pixel other)
 
Pixel operator -= (const Pixel other)
 
 operator [] (int i, Gray assign_val)
 
Gray operator [] (int i)
 
Pixel operator+ (const Pixel other)
 
Pixel operator+= (const Pixel other)
 
 output (Ostream out)
 

Static Public Member Functions

static int size ()
 

Public Attributes

Gray b
 
Gray g
 
Gray r
 

Member Function Documentation

◆ __init__() [1/4]

__init__ ( )

◆ __init__() [2/4]

__init__ ( Gray  fill)

◆ __init__() [3/4]

__init__ ( Gray  r,
Gray  g,
Gray  b 
)

◆ __init__() [4/4]

__init__ ( const  Pixel)

◆ operator *()

Pixel operator * ( const double  mult)

◆ operator *=()

Pixel operator *= ( const double  mult)

◆ operator -()

Pixel operator - ( const Pixel  other)

◆ operator -=()

Pixel operator -= ( const Pixel  other)

◆ operator []() [1/2]

operator [] ( int  i,
Gray  assign_val 
)

◆ operator []() [2/2]

Gray operator [] ( int  i)

◆ operator+()

Pixel operator+ ( const Pixel  other)

◆ operator+=()

Pixel operator+= ( const Pixel  other)

◆ output()

output ( Ostream  out)

◆ size()

static int size ( )
static

Member Data Documentation

◆ b

Gray b

◆ g

Gray g

◆ r

Gray r