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.AlphaEnv Struct Reference

Public Member Functions

 AlphaEnv (BUInt24 value)
 
 AlphaEnv (uint value)
 

Static Public Member Functions

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

Public Attributes

Bin24 _data
 

Properties

TevSwapSel RSwap [get, set]
 
TevSwapSel TSwap [get, set]
 
AlphaArg SelD [get, set]
 
AlphaArg SelC [get, set]
 
AlphaArg SelB [get, set]
 
AlphaArg SelA [get, set]
 
Bias Bias [get, set]
 
bool Clamp [get, set]
 
TevScale Shift [get, set]
 
TevAlphaRegID Dest [get, set]
 
TevAlphaOp Operation [get, set]
 

Constructor & Destructor Documentation

◆ AlphaEnv() [1/2]

BrawlLib.Wii.Graphics.AlphaEnv.AlphaEnv ( BUInt24  value)
inline
343 {
344 _data = value;
345 }
Bin24 _data
Definition: BP.cs:352

◆ AlphaEnv() [2/2]

BrawlLib.Wii.Graphics.AlphaEnv.AlphaEnv ( uint  value)
inline
348 {
349 _data = value;
350 }

Member Function Documentation

◆ operator AlphaEnv() [1/3]

static implicit BrawlLib.Wii.Graphics.AlphaEnv.operator AlphaEnv ( BUInt24  val)
inlinestatic
338 {
339 return new AlphaEnv(val);
340 }
AlphaEnv(BUInt24 value)
Definition: BP.cs:342

◆ operator AlphaEnv() [2/3]

static implicit BrawlLib.Wii.Graphics.AlphaEnv.operator AlphaEnv ( int  val)
inlinestatic
323 {
324 return new AlphaEnv((uint) val);
325 }

◆ operator AlphaEnv() [3/3]

static implicit BrawlLib.Wii.Graphics.AlphaEnv.operator AlphaEnv ( uint  val)
inlinestatic
328 {
329 return new AlphaEnv(val);
330 }

◆ operator BUInt24()

static implicit BrawlLib.Wii.Graphics.AlphaEnv.operator BUInt24 ( AlphaEnv  val)
inlinestatic
333 {
334 return val._data;
335 }

◆ operator int()

static implicit BrawlLib.Wii.Graphics.AlphaEnv.operator int ( AlphaEnv  val)
inlinestatic
313 {
314 return val._data;
315 }

◆ operator uint()

static implicit BrawlLib.Wii.Graphics.AlphaEnv.operator uint ( AlphaEnv  val)
inlinestatic
318 {
319 return val._data;
320 }

Member Data Documentation

◆ _data

Bin24 BrawlLib.Wii.Graphics.AlphaEnv._data

Property Documentation

◆ Bias

Bias BrawlLib.Wii.Graphics.AlphaEnv.Bias
getset
403 {
404 get => _data[16, 2] == 3 ? Bias.Zero : (Bias) _data[16, 2];
405 set
406 {
407 if (_data[16, 2] == 3)
408 {
409 return;
410 }
411
412 _data[16, 2] = (int) value;
413 }
414 }
Bias Bias
Definition: BP.cs:403

◆ Clamp

bool BrawlLib.Wii.Graphics.AlphaEnv.Clamp
getset
418 {
419 get => _data[19];
420 set => _data[19] = value;
421 }

◆ Dest

TevAlphaRegID BrawlLib.Wii.Graphics.AlphaEnv.Dest
getset
438 {
439 get => (TevAlphaRegID) _data[22, 2];
440 set => _data[22, 2] = (int) value;
441 }
TevAlphaRegID
Definition: Enum.cs:167

◆ Operation

TevAlphaOp BrawlLib.Wii.Graphics.AlphaEnv.Operation
getset
444 {
445 get => _data[16, 2] == 3 ? (TevAlphaOp) (((_data[18] ? 1 : 0) | (_data[20, 2] << 1)) + 8) :
446 _data[18] ? TevAlphaOp.Subtract : TevAlphaOp.Add;
447 set
448 {
449 _data[18] = ((ushort) value & 1) != 0;
450 if (value <= TevAlphaOp.Subtract)
451 {
452 _data[16, 2] = 0;
453 _data[20, 2] = 0;
454 }
455 else
456 {
457 _data[16, 2] = 3;
458 _data[20, 2] = ((ushort) value >> 1) & 3;
459 }
460 }
461 }
TevAlphaOp
Definition: Enum.cs:193

◆ RSwap

TevSwapSel BrawlLib.Wii.Graphics.AlphaEnv.RSwap
getset
367 {
368 get => (TevSwapSel) _data[0, 2];
369 set => _data[0, 2] = (int) value;
370 }
TevSwapSel
Definition: Enum.cs:247

◆ SelA

AlphaArg BrawlLib.Wii.Graphics.AlphaEnv.SelA
getset
397 {
398 get => (AlphaArg) _data[13, 3];
399 set => _data[13, 3] = (int) value;
400 }
AlphaArg
Definition: Enum.cs:103

◆ SelB

AlphaArg BrawlLib.Wii.Graphics.AlphaEnv.SelB
getset
391 {
392 get => (AlphaArg) _data[10, 3];
393 set => _data[10, 3] = (int) value;
394 }

◆ SelC

AlphaArg BrawlLib.Wii.Graphics.AlphaEnv.SelC
getset
385 {
386 get => (AlphaArg) _data[7, 3];
387 set => _data[7, 3] = (int) value;
388 }

◆ SelD

AlphaArg BrawlLib.Wii.Graphics.AlphaEnv.SelD
getset
379 {
380 get => (AlphaArg) _data[4, 3];
381 set => _data[4, 3] = (int) value;
382 }

◆ Shift

TevScale BrawlLib.Wii.Graphics.AlphaEnv.Shift
getset
424 {
425 get => _data[16, 2] == 3 ? TevScale.MultiplyBy1 : (TevScale) _data[20, 2];
426 set
427 {
428 if (_data[16, 2] == 3)
429 {
430 return;
431 }
432
433 _data[20, 2] = (int) value;
434 }
435 }
TevScale
Definition: Enum.cs:255

◆ TSwap

TevSwapSel BrawlLib.Wii.Graphics.AlphaEnv.TSwap
getset
373 {
374 get => (TevSwapSel) _data[2, 2];
375 set => _data[2, 2] = (int) value;
376 }

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