@NoOffset @Properties(inherit=liquidfun.class) public class b2Draw extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
e_aabbBit
enum b2Draw::
|
static int |
e_centerOfMassBit
enum b2Draw::
|
static int |
e_jointBit
enum b2Draw::
|
static int |
e_pairBit
enum b2Draw::
|
static int |
e_particleBit
enum b2Draw::
|
static int |
e_shapeBit
enum b2Draw::
|
Constructor and Description |
---|
b2Draw() |
b2Draw(long size)
Native array allocator.
|
b2Draw(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
AppendFlags(long flags)
Append flags to the current flags.
|
void |
ClearFlags(long flags)
Clear flags from the current flags.
|
void |
DrawCircle(b2Vec2 center,
float radius,
b2Color color)
Draw a circle.
|
void |
DrawParticles(b2Vec2 centers,
float radius,
b2ParticleColor colors,
int count)
Draw a particle array
|
void |
DrawPolygon(b2Vec2 vertices,
int vertexCount,
b2Color color)
Draw a closed polygon provided in CCW order.
|
void |
DrawSegment(b2Vec2 p1,
b2Vec2 p2,
b2Color color)
Draw a line segment.
|
void |
DrawSolidCircle(b2Vec2 center,
float radius,
b2Vec2 axis,
b2Color color)
Draw a solid circle.
|
void |
DrawSolidPolygon(b2Vec2 vertices,
int vertexCount,
b2Color color)
Draw a solid closed polygon provided in CCW order.
|
void |
DrawTransform(b2Transform xf)
Draw a transform.
|
long |
GetFlags()
Get the drawing flags.
|
b2Draw |
getPointer(long i) |
b2Draw |
position(long position) |
void |
SetFlags(long flags)
Set the drawing flags.
|
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 static final int e_shapeBit
public static final int e_jointBit
public static final int e_aabbBit
public static final int e_pairBit
public static final int e_centerOfMassBit
public static final int e_particleBit
public b2Draw(Pointer p)
Pointer(Pointer)
.public b2Draw(long size)
Pointer.position(long)
.public b2Draw()
public b2Draw getPointer(long i)
getPointer
in class Pointer
public void AppendFlags(@Cast(value="uint32") long flags)
public void ClearFlags(@Cast(value="uint32") long flags)
@Virtual(value=true) public void DrawPolygon(@Const b2Vec2 vertices, @Cast(value="int32") int vertexCount, @Const @ByRef b2Color color)
@Virtual(value=true) public void DrawSolidPolygon(@Const b2Vec2 vertices, @Cast(value="int32") int vertexCount, @Const @ByRef b2Color color)
@Virtual(value=true) public void DrawCircle(@Const @ByRef b2Vec2 center, @Cast(value="float32") float radius, @Const @ByRef b2Color color)
@Virtual(value=true) public void DrawSolidCircle(@Const @ByRef b2Vec2 center, @Cast(value="float32") float radius, @Const @ByRef b2Vec2 axis, @Const @ByRef b2Color color)
@Virtual(value=true) public void DrawParticles(@Const b2Vec2 centers, @Cast(value="float32") float radius, @Const b2ParticleColor colors, @Cast(value="int32") int count)
@Virtual(value=true) public void DrawSegment(@Const @ByRef b2Vec2 p1, @Const @ByRef b2Vec2 p2, @Const @ByRef b2Color color)
@Virtual(value=true) public void DrawTransform(@Const @ByRef b2Transform xf)
xf
- a transform.Copyright © 2022. All rights reserved.