Class PainterGPUConformance

java.lang.Object
org.jzy3d.junit.PainterGPUConformance

public class PainterGPUConformance extends Object
Verify that a painter supports the GPU resources API of IPainter (buffer objects, shaders, textures, framebuffers, queries) by drawing in its current GL context and reading back pixels. The painter must have a current GL context with a framebuffer of at least WIDTH x HEIGHT pixels. Each check prepares the context with prepare().
  • Field Details

  • Constructor Details

    • PainterGPUConformance

      public PainterGPUConformance(IPainter painter)
  • Method Details

    • checkAll

      public void checkAll()
      Run all checks.
    • prepare

      public void prepare()
      Clear in black and use a 2D projection from [-1;1] to the whole viewport.
    • vertexBufferObjectsDrawElements

      public void vertexBufferObjectsDrawElements()
    • multiDrawElementsWithOffsets

      public void multiDrawElementsWithOffsets()
    • shaderProgramWithUniform

      public void shaderProgramWithUniform()
    • texture2D

      public void texture2D()
    • framebufferAndQuery

      public void framebufferAndQuery()
    • assertNoGLError

      protected void assertNoGLError()
    • assertPixel

      protected void assertPixel(int x, int y, int r, int g, int b)