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

Public Member Functions

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

Static Public Member Functions

static int size ()
 

Public Attributes

Gray b
 
Gray g
 
Gray r
 

Member Function Documentation

◆ __init__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( Gray  r,
Gray  g,
Gray  b 
)

◆ operator*()

Pixel operator* ( double  mult)

◆ operator*=()

Pixel operator*= ( double  mult)

◆ operator+()

Pixel operator+ ( const Pixel  other)

◆ operator+=()

Pixel operator+= ( const Pixel  other)

◆ 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)

◆ output()

output ( Ostream  out)

◆ size()

static int size ( )
static

Member Data Documentation

◆ b

Gray b

◆ g

Gray g

◆ r

Gray r