Canvas that supports to be drawn on using OpenGL.AWTVKCanvas, you can create a generic canvas.
With that canvas, use AWTVK.create(Canvas, VkInstance) with it,
and it will return a surface handle. To draw, override Canvas.paint(Graphics)
(need not call super.paint(g)). Other helpful utilities exist in AWTVK.
NOTE: Before the canvas can be passed into AWTVK.create(Canvas, VkInstance),
it must have a peer{{cn}}, and that can be forced by calling Window.pack().GLData.robustness is true and GLData.loseContextOnReset is true then this specifies whether a graphics reset only affects the current application and no other
application in the system.Graphics.clearRect(int, int, int, int)
calls.VkPhysicalDevice in a command queue of the specified queueFamiliy.AWTGLCanvas.VkInstance on behalf of which to create the surface on an AWT Canvas.GLData.robustness is true then this specifies whether a GL_LOSE_CONTEXT_ON_RESET_ARB reset notification is sent, as described by GL_ARB_robustness.Graphics object that delegates to it.Graphics2D object that delegates to it.Canvas needs to paint itself.Canvas needs to paint itself.AWTGLCanvas.PlatformVKCanvas.AWTVK API.AWTVKCanvas.PlatformGLCanvas.PlatformVKCanvas.AWTVK API.PlatformVKCanvas.AWTVK API.instance field and returns this object.AWTGLCanvas whose context objects should be shared with the context created using this GLData.AWTVK API.Copyright © 2016–2024 LWJGLX. All rights reserved.