Package org.lwjgl.system
Class Struct
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
- Direct Known Subclasses:
- ChunkHooks, CLBufferRegion, CLBusAddressAMD, CLDeviceTopologyAMD, CLImageDesc, CLImageFormat, CLMemEXTHostPtr, CLMotionEstimationDescINTEL, DEVMODE, DISPLAY_DEVICE, EGLClientPixmapHI, GLFWGammaRamp, GLFWImage, GLFWVidMode, GLXStereoNotifyEventEXT, GLYPHMETRICSFLOAT, GPU_DEVICE, JAWT, JAWTDrawingSurface, JAWTDrawingSurfaceInfo, JAWTRectangle, JAWTWin32DrawingSurfaceInfo, JAWTX11DrawingSurfaceInfo, MONITORINFOEX, MSG, NFDPathSet, NVGColor, NVGGlyphPosition, NVGLUFramebuffer, NVGPaint, NVGTextRow, ObjCMethodDescription, ObjCPropertyAttribute, OVRDetectResult, OVRErrorInfo, OVREyeRenderDesc, OVRFovPort, OVRGraphicsLuid, OVRHmdDesc, OVRInitParams, OVRInputState, OVRLayerEyeFov, OVRLayerEyeMatrix, OVRLayerHeader, OVRLayerQuad, OVRLayerUnion, OVRMatrix4f, OVRMirrorTextureDesc, OVRPosef, OVRPoseStatef, OVRQuatf, OVRRecti, OVRSessionStatus, OVRSizei, OVRTextureSwapChainDesc, OVRTimewarpProjectionDesc, OVRTrackerDesc, OVRTrackerPose, OVRTrackingState, OVRVector2f, OVRVector2i, OVRVector3f, OVRViewScaleDesc, ParShapesMesh, PIXELFORMATDESCRIPTOR, POINT, POINTFLOAT, POINTL, RECT, STBIIOCallbacks, STBRPContext, STBRPNode, STBRPRect, STBTTAlignedQuad, STBTTBakedChar, STBTTFontinfo, STBTTPackContext, STBTTPackedchar, STBTTPackRange, STBTTVertex, STBVorbisAlloc, STBVorbisInfo, TOUCHINPUT, Visual, VkAllocationCallbacks, VkApplicationInfo, VkAttachmentDescription, VkAttachmentReference, VkBindSparseInfo, VkBufferCopy, VkBufferCreateInfo, VkBufferImageCopy, VkBufferMemoryBarrier, VkBufferViewCreateInfo, VkClearAttachment, VkClearColorValue, VkClearDepthStencilValue, VkClearRect, VkClearValue, VkCommandBufferAllocateInfo, VkCommandBufferBeginInfo, VkCommandBufferInheritanceInfo, VkCommandPoolCreateInfo, VkComponentMapping, VkComputePipelineCreateInfo, VkCopyDescriptorSet, VkDebugMarkerMarkerInfoEXT, VkDebugMarkerObjectNameInfoEXT, VkDebugMarkerObjectTagInfoEXT, VkDebugReportCallbackCreateInfoEXT, VkDescriptorBufferInfo, VkDescriptorImageInfo, VkDescriptorPoolCreateInfo, VkDescriptorPoolSize, VkDescriptorSetAllocateInfo, VkDescriptorSetLayoutBinding, VkDescriptorSetLayoutCreateInfo, VkDeviceCreateInfo, VkDeviceQueueCreateInfo, VkDispatchIndirectCommand, VkDisplayModeCreateInfoKHR, VkDisplayModeParametersKHR, VkDisplayModePropertiesKHR, VkDisplayPlaneCapabilitiesKHR, VkDisplayPlanePropertiesKHR, VkDisplayPresentInfoKHR, VkDisplayPropertiesKHR, VkDisplaySurfaceCreateInfoKHR, VkDrawIndexedIndirectCommand, VkDrawIndirectCommand, VkEventCreateInfo, VkExtensionProperties, VkExtent2D, VkExtent3D, VkFenceCreateInfo, VkFormatProperties, VkFramebufferCreateInfo, VkGraphicsPipelineCreateInfo, VkImageBlit, VkImageCopy, VkImageCreateInfo, VkImageFormatProperties, VkImageMemoryBarrier, VkImageResolve, VkImageSubresource, VkImageSubresourceLayers, VkImageSubresourceRange, VkImageViewCreateInfo, VkInstanceCreateInfo, VkLayerProperties, VkMappedMemoryRange, VkMemoryAllocateInfo, VkMemoryBarrier, VkMemoryHeap, VkMemoryRequirements, VkMemoryType, VkOffset2D, VkOffset3D, VkPhysicalDeviceFeatures, VkPhysicalDeviceLimits, VkPhysicalDeviceMemoryProperties, VkPhysicalDeviceProperties, VkPhysicalDeviceSparseProperties, VkPipelineCacheCreateInfo, VkPipelineColorBlendAttachmentState, VkPipelineColorBlendStateCreateInfo, VkPipelineDepthStencilStateCreateInfo, VkPipelineDynamicStateCreateInfo, VkPipelineInputAssemblyStateCreateInfo, VkPipelineLayoutCreateInfo, VkPipelineMultisampleStateCreateInfo, VkPipelineRasterizationStateCreateInfo, VkPipelineRasterizationStateRasterizationOrderAMD, VkPipelineShaderStageCreateInfo, VkPipelineTessellationStateCreateInfo, VkPipelineVertexInputStateCreateInfo, VkPipelineViewportStateCreateInfo, VkPresentInfoKHR, VkPushConstantRange, VkQueryPoolCreateInfo, VkQueueFamilyProperties, VkRect2D, VkRenderPassBeginInfo, VkRenderPassCreateInfo, VkSamplerCreateInfo, VkSemaphoreCreateInfo, VkShaderModuleCreateInfo, VkSparseBufferMemoryBindInfo, VkSparseImageFormatProperties, VkSparseImageMemoryBind, VkSparseImageMemoryBindInfo, VkSparseImageMemoryRequirements, VkSparseImageOpaqueMemoryBindInfo, VkSparseMemoryBind, VkSpecializationInfo, VkSpecializationMapEntry, VkStencilOpState, VkSubmitInfo, VkSubpassDependency, VkSubpassDescription, VkSubresourceLayout, VkSurfaceCapabilitiesKHR, VkSurfaceFormatKHR, VkSwapchainCreateInfoKHR, VkVertexInputAttributeDescription, VkVertexInputBindingDescription, VkViewport, VkWin32SurfaceCreateInfoKHR, VkWriteDescriptorSet, VkXlibSurfaceCreateInfoKHR, WINDOWPLACEMENT, WNDCLASSEX, XSetWindowAttributes, XVisualInfo, XXH32Canonical, XXH64Canonical
public abstract class Struct extends Pointer.Default implements NativeResource
Base class of all struct implementations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description void
clear()
Zeroes-out the struct data.void
free()
Frees the struct allocation.abstract int
sizeof()
Returns thesizeof(struct)
.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Method Detail
-
sizeof
public abstract int sizeof()
Returns thesizeof(struct)
.
-
clear
public void clear()
Zeroes-out the struct data.
-
free
public void free()
Frees the struct allocation.This method should not be used if the memory backing this struct is not owned by the struct.
- Specified by:
free
in interfaceNativeResource
-
-