BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
BrawlLib.Wii.Graphics.KSel Struct Reference

Public Member Functions

 KSel (ColorChannel xrb, ColorChannel xga, TevKColorSel kc0, TevKAlphaSel ka0, TevKColorSel kc1, TevKAlphaSel ka1)
 
 KSel (uint value)
 

Static Public Member Functions

static implicit operator int (KSel val)
 
static implicit operator uint (KSel val)
 
static implicit operator KSel (int val)
 
static implicit operator KSel (uint val)
 
static implicit operator BUInt24 (KSel val)
 
static implicit operator KSel (BUInt24 val)
 

Public Attributes

Bin24 _data
 

Properties

ColorChannel XRB [get, set]
 
ColorChannel XGA [get, set]
 
TevKColorSel KCSel0 [get, set]
 
TevKAlphaSel KASel0 [get, set]
 
TevKColorSel KCSel1 [get, set]
 
TevKAlphaSel KASel1 [get, set]
 

Constructor & Destructor Documentation

◆ KSel() [1/2]

BrawlLib.Wii.Graphics.KSel.KSel ( ColorChannel  xrb,
ColorChannel  xga,
TevKColorSel  kc0,
TevKAlphaSel  ka0,
TevKColorSel  kc1,
TevKAlphaSel  ka1 
)
inline
729 {
730 _data =
731 ((uint) xrb << 0) |
732 ((uint) xga << 2) |
733 ((uint) kc0 << 4) |
734 ((uint) ka0 << 9) |
735 ((uint) kc1 << 14) |
736 ((uint) ka1 << 19);
737 }
Bin24 _data
Definition: BP.cs:745

◆ KSel() [2/2]

BrawlLib.Wii.Graphics.KSel.KSel ( uint  value)
inline
741 {
742 _data = value;
743 }

Member Function Documentation

◆ operator BUInt24()

static implicit BrawlLib.Wii.Graphics.KSel.operator BUInt24 ( KSel  val)
inlinestatic
718 {
719 return val._data;
720 }

◆ operator int()

static implicit BrawlLib.Wii.Graphics.KSel.operator int ( KSel  val)
inlinestatic
698 {
699 return val._data;
700 }

◆ operator KSel() [1/3]

static implicit BrawlLib.Wii.Graphics.KSel.operator KSel ( BUInt24  val)
inlinestatic
723 {
724 return new KSel(val);
725 }
KSel(ColorChannel xrb, ColorChannel xga, TevKColorSel kc0, TevKAlphaSel ka0, TevKColorSel kc1, TevKAlphaSel ka1)
Definition: BP.cs:727

◆ operator KSel() [2/3]

static implicit BrawlLib.Wii.Graphics.KSel.operator KSel ( int  val)
inlinestatic
708 {
709 return new KSel((uint) val);
710 }

◆ operator KSel() [3/3]

static implicit BrawlLib.Wii.Graphics.KSel.operator KSel ( uint  val)
inlinestatic
713 {
714 return new KSel(val);
715 }

◆ operator uint()

static implicit BrawlLib.Wii.Graphics.KSel.operator uint ( KSel  val)
inlinestatic
703 {
704 return val._data;
705 }

Member Data Documentation

◆ _data

Bin24 BrawlLib.Wii.Graphics.KSel._data

Property Documentation

◆ KASel0

TevKAlphaSel BrawlLib.Wii.Graphics.KSel.KASel0
getset
773 {
774 get => (TevKAlphaSel) _data[9, 5];
775 set => _data[9, 5] = (int) value;
776 }
TevKAlphaSel
Definition: Enum.cs:342

◆ KASel1

TevKAlphaSel BrawlLib.Wii.Graphics.KSel.KASel1
getset
785 {
786 get => (TevKAlphaSel) _data[19, 5];
787 set => _data[19, 5] = (int) value;
788 }

◆ KCSel0

TevKColorSel BrawlLib.Wii.Graphics.KSel.KCSel0
getset
767 {
768 get => (TevKColorSel) _data[4, 5];
769 set => _data[4, 5] = (int) value;
770 }
TevKColorSel
Definition: Enum.cs:376

◆ KCSel1

TevKColorSel BrawlLib.Wii.Graphics.KSel.KCSel1
getset
779 {
780 get => (TevKColorSel) _data[14, 5];
781 set => _data[14, 5] = (int) value;
782 }

◆ XGA

ColorChannel BrawlLib.Wii.Graphics.KSel.XGA
getset
761 {
762 get => (ColorChannel) _data[2, 2];
763 set => _data[2, 2] = (int) value;
764 }
ColorChannel
Definition: Enum.cs:75

◆ XRB

ColorChannel BrawlLib.Wii.Graphics.KSel.XRB
getset
755 {
756 get => (ColorChannel) _data[0, 2];
757 set => _data[0, 2] = (int) value;
758 }

The documentation for this struct was generated from the following file: