Top Description Inners Constructors Methods
org.lwjgl.util.meshoptimizer

public abstract Class MeshoptAllocate

extends Callback
implements MeshoptAllocateI
Class Inheritance
All Implemented Interfaces
org.lwjgl.util.meshoptimizer.MeshoptAllocateI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.util.meshoptimizer.MeshoptAllocate.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the setAllocator method.

Type


void * (*invoke) (
    size_t size
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
MeshoptAllocate(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static MeshoptAllocate

Returns:

the new MeshoptAllocate
create
(long functionPointer)

Creates a MeshoptAllocate instance from the specified function pointer.

public static MeshoptAllocate
create(MeshoptAllocateI instance)

Creates a MeshoptAllocate instance that delegates to the specified MeshoptAllocateI instance.

public static MeshoptAllocate
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

MeshoptAllocateback to summary
protected MeshoptAllocate()
MeshoptAllocateback to summary
pack-priv MeshoptAllocate(long functionPointer)

Method Detail

createback to summary
public static MeshoptAllocate create(long functionPointer)

Creates a MeshoptAllocate instance from the specified function pointer.

Returns:MeshoptAllocate

the new MeshoptAllocate

createback to summary
public static MeshoptAllocate create(MeshoptAllocateI instance)

Creates a MeshoptAllocate instance that delegates to the specified MeshoptAllocateI instance.

createSafeback to summary
public static MeshoptAllocate createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.util.meshoptimizer back to summary

private final Class MeshoptAllocate.Container

extends MeshoptAllocate
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final MeshoptAllocateI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, MeshoptAllocateI delegate)

Method Summary

Modifier and TypeMethod and Description
public long
Inherited from org.lwjgl.util.meshoptimizer.MeshoptAllocate:
createcreatecreateSafe

Field Detail

delegateback to summary
private final MeshoptAllocateI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, MeshoptAllocateI delegate)

Method Detail

invokeback to summary
public long invoke(long size)

Implements org.lwjgl.util.meshoptimizer.MeshoptAllocateI.invoke.

Annotations
@Override