@NoOffset @Properties(inherit=liquidfun.class) public class b2ParticleDef extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2ParticleDef() |
b2ParticleDef(long size)
Native array allocator.
|
b2ParticleDef(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
b2Vec2 |
_position()
The world position of the particle.
|
b2ParticleDef |
_position(b2Vec2 setter) |
b2ParticleColor |
color()
The color of the particle.
|
b2ParticleDef |
color(b2ParticleColor setter) |
long |
flags()
\brief Specifies the type of particle (see #b2ParticleFlag).
|
b2ParticleDef |
flags(long setter) |
b2ParticleDef |
getPointer(long i) |
b2ParticleGroup |
group()
An existing particle group to which the particle will be added.
|
b2ParticleDef |
group(b2ParticleGroup setter) |
float |
lifetime()
Lifetime of the particle in seconds.
|
b2ParticleDef |
lifetime(float setter) |
b2ParticleDef |
position(long position) |
void |
SetColor(int r,
int g,
int b,
int a)
Set color with direct ints.
|
void |
SetPosition(float x,
float y)
Set position with direct floats
|
Pointer |
userData()
Use this to store application-specific body data.
|
b2ParticleDef |
userData(Pointer setter) |
b2Vec2 |
velocity()
The linear velocity of the particle in world co-ordinates.
|
b2ParticleDef |
velocity(b2Vec2 setter) |
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 b2ParticleDef(Pointer p)
Pointer(Pointer)
.public b2ParticleDef(long size)
Pointer.position(long)
.public b2ParticleDef()
public b2ParticleDef position(long position)
public b2ParticleDef getPointer(long i)
getPointer
in class Pointer
public void SetPosition(@Cast(value="float32") float x, @Cast(value="float32") float y)
public void SetColor(@Cast(value="int32") int r, @Cast(value="int32") int g, @Cast(value="int32") int b, @Cast(value="int32") int a)
@Cast(value="uint32") public long flags()
public b2ParticleDef flags(long setter)
@ByRef @Name(value="position") public b2Vec2 _position()
public b2ParticleDef _position(b2Vec2 setter)
public b2ParticleDef velocity(b2Vec2 setter)
@ByRef public b2ParticleColor color()
public b2ParticleDef color(b2ParticleColor setter)
@Cast(value="float32") public float lifetime()
public b2ParticleDef lifetime(float setter)
public Pointer userData()
public b2ParticleDef userData(Pointer setter)
public b2ParticleGroup group()
public b2ParticleDef group(b2ParticleGroup setter)
Copyright © 2022. All rights reserved.