@NoOffset @Properties(inherit=liquidfun.class) public class b2ParticleColor extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2ParticleColor() |
b2ParticleColor(b2Color color)
Constructor that initializes the above four elements with the value of
the b2Color object.
|
b2ParticleColor(long size)
Native array allocator.
|
b2ParticleColor(Pointer p)
Pointer cast constructor.
|
b2ParticleColor(short r,
short g,
short b,
short a)
Constructor with four elements: r (red), g (green), b (blue), and a
(opacity).
|
Modifier and Type | Method and Description |
---|---|
short |
a() |
b2ParticleColor |
a(short setter) |
b2ParticleColor |
add(b2ParticleColor color)
Add two colors.
|
b2ParticleColor |
addPut(b2ParticleColor color)
Add two colors.
|
short |
b() |
b2ParticleColor |
b(short setter) |
boolean |
equals(b2ParticleColor color)
Compare this color with the specified color.
|
short |
g() |
b2ParticleColor |
g(short setter) |
b2Color |
GetColor()
Used internally to convert the value of b2Color.
|
b2ParticleColor |
getPointer(long i) |
boolean |
IsZero()
True when all four color elements equal 0.
|
void |
Mix(b2ParticleColor mixColor,
int strength)
Mix mixColor with this color using strength to control how much of
mixColor is mixed with this color and vice versa.
|
static void |
MixColors(b2ParticleColor colorA,
b2ParticleColor colorB,
int strength)
Mix colorA with colorB using strength to control how much of
colorA is mixed with colorB and vice versa.
|
b2ParticleColor |
multiply(float s)
Scales r, g, b, a members by s returning the modified b2ParticleColor.
|
b2ParticleColor |
multiply(short s)
Scales r, g, b, a members by s returning the modified b2ParticleColor.
|
b2ParticleColor |
multiplyPut(float s)
Multiplies r, g, b, a members by s where s is a value between 0.0
and 1.0.
|
b2ParticleColor |
multiplyPut(short s)
Scales r, g, b, a members by s where s is a value between 0 and 255.
|
b2ParticleColor |
position(long position) |
b2ParticleColor |
put(b2ParticleColor color)
Assign a b2ParticleColor to this instance.
|
short |
r() |
b2ParticleColor |
r(short setter) |
void |
Set(b2Color color)
Initializes the object with the value of the b2Color.
|
void |
Set(short r_,
short g_,
short b_,
short a_)
Sets color for current object using the four elements described above.
|
b2ParticleColor |
subtract(b2ParticleColor color)
Subtract a color from this color returning the result.
|
b2ParticleColor |
subtractPut(b2ParticleColor color)
Subtract a color from this color.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public b2ParticleColor(Pointer p)
Pointer(Pointer)
.public b2ParticleColor(long size)
Pointer.position(long)
.public b2ParticleColor()
public b2ParticleColor(@Cast(value="uint8") short r, @Cast(value="uint8") short g, @Cast(value="uint8") short b, @Cast(value="uint8") short a)
public b2ParticleColor position(long position)
public b2ParticleColor getPointer(long i)
getPointer
in class Pointer
@Cast(value="bool") public boolean IsZero()
public void Set(@Cast(value="uint8") short r_, @Cast(value="uint8") short g_, @Cast(value="uint8") short b_, @Cast(value="uint8") short a_)
public void Set(@Const @ByRef b2Color color)
@ByRef @Name(value="operator =") public b2ParticleColor put(@Const @ByRef b2ParticleColor color)
@ByRef @Name(value="operator *=") public b2ParticleColor multiplyPut(@Cast(value="float32") float s)
@ByRef @Name(value="operator *=") public b2ParticleColor multiplyPut(@Cast(value="uint8") short s)
@ByVal @Name(value="operator *") public b2ParticleColor multiply(@Cast(value="float32") float s)
@ByVal @Name(value="operator *") public b2ParticleColor multiply(@Cast(value="uint8") short s)
@ByRef @Name(value="operator +=") public b2ParticleColor addPut(@Const @ByRef b2ParticleColor color)
@ByVal @Name(value="operator +") public b2ParticleColor add(@Const @ByRef b2ParticleColor color)
@ByRef @Name(value="operator -=") public b2ParticleColor subtractPut(@Const @ByRef b2ParticleColor color)
@ByVal @Name(value="operator -") public b2ParticleColor subtract(@Const @ByRef b2ParticleColor color)
@Cast(value="bool") @Name(value="operator ==") public boolean equals(@Const @ByRef b2ParticleColor color)
public void Mix(b2ParticleColor mixColor, @Cast(value="const int32") int strength)
public static void MixColors(b2ParticleColor colorA, b2ParticleColor colorB, @Cast(value="const int32") int strength)
public b2ParticleColor r(short setter)
public b2ParticleColor g(short setter)
public b2ParticleColor b(short setter)
public b2ParticleColor a(short setter)
Copyright © 2022. All rights reserved.