Package dev.gothickit.zenkit.msh
Class NativeMesh
java.lang.Object
dev.gothickit.zenkit.msh.NativeMesh
- All Implemented Interfaces:
CacheableObject<CachedMesh>,Mesh,NativeObject
-
Method Summary
Modifier and TypeMethodDescription@NotNull AxisAlignedBoundingBox@NotNull CachedMeshcache()static @Nullable MeshfromNativeHandle(com.sun.jna.Pointer handle) @NotNull com.sun.jna.PointerbooleanisCached()lightMap(long i) long@Nullable Materialmaterial(long i) long@NotNull Stringname()@NotNull OrientedBoundingBox@Nullable Polygonpolygon(long i) longpolygons()Vec3f @NotNull []@NotNull CalendarVertex @NotNull []vertices()
-
Method Details
-
fromNativeHandle
@Contract("null -> null; !null -> new") @Nullable public static @Nullable Mesh fromNativeHandle(com.sun.jna.Pointer handle) -
sourceDate
- Specified by:
sourceDatein interfaceMesh
-
name
-
boundingBox
- Specified by:
boundingBoxin interfaceMesh
-
orientedBoundingBox
- Specified by:
orientedBoundingBoxin interfaceMesh
-
materialCount
public long materialCount()- Specified by:
materialCountin interfaceMesh
-
material
-
materials
-
positions
-
vertices
-
lightMapCount
public long lightMapCount()- Specified by:
lightMapCountin interfaceMesh
-
lightMap
-
lightMaps
-
polygonCount
public long polygonCount()- Specified by:
polygonCountin interfaceMesh
-
polygon
-
polygons
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedMesh>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedMesh>
-
getNativeHandle
@NotNull public @NotNull com.sun.jna.Pointer getNativeHandle()- Specified by:
getNativeHandlein interfaceNativeObject
-