Package dev.gothickit.zenkit.msh
Class NativePolygon
java.lang.Object
dev.gothickit.zenkit.msh.NativePolygon
- All Implemented Interfaces:
CacheableObject<CachedPolygon>,Polygon,NativeObject
-
Method Summary
Modifier and TypeMethodDescription@NotNull CachedPolygoncache()booleanstatic @Nullable PolygonfromNativeHandle(com.sun.jna.Pointer handle, @NotNull NativeMesh mesh) @NotNull com.sun.jna.PointerbooleanbooleanisCached()intbooleanlod()intbytebooleanoccluder()booleanoutdoor()int @NotNull []booleanportal()int @NotNull []booleansector()shortboolean
-
Method Details
-
fromNativeHandle
@Contract("null, _ -> null; !null, _ -> new") @Nullable public static @Nullable Polygon fromNativeHandle(com.sun.jna.Pointer handle, @NotNull @NotNull NativeMesh mesh) -
materialIndex
public int materialIndex()- Specified by:
materialIndexin interfacePolygon
-
lightMapIndex
public int lightMapIndex()- Specified by:
lightMapIndexin interfacePolygon
-
positionIndices
public int @NotNull [] positionIndices()- Specified by:
positionIndicesin interfacePolygon
-
polygonIndices
public int @NotNull [] polygonIndices()- Specified by:
polygonIndicesin interfacePolygon
-
portal
public boolean portal() -
occluder
public boolean occluder() -
sector
public boolean sector() -
shouldRelight
public boolean shouldRelight()- Specified by:
shouldRelightin interfacePolygon
-
outdoor
public boolean outdoor() -
ghostOccluder
public boolean ghostOccluder()- Specified by:
ghostOccluderin interfacePolygon
-
dynamicallyLit
public boolean dynamicallyLit()- Specified by:
dynamicallyLitin interfacePolygon
-
lod
public boolean lod() -
normalAxis
public byte normalAxis()- Specified by:
normalAxisin interfacePolygon
-
sectorIndex
public short sectorIndex()- Specified by:
sectorIndexin interfacePolygon
-
getNativeHandle
@NotNull public @NotNull com.sun.jna.Pointer getNativeHandle()- Specified by:
getNativeHandlein interfaceNativeObject
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedPolygon>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedPolygon>
-