Class PainterGPUConformance
java.lang.Object
org.jzy3d.junit.PainterGPUConformance
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidassertPixel(int x, int y, int r, int g, int b) voidcheckAll()Run all checks.voidvoidvoidprepare()Clear in black and use a 2D projection from [-1;1] to the whole viewport.voidvoidvoid
-
Field Details
-
WIDTH
public static final int WIDTH- See Also:
-
HEIGHT
public static final int HEIGHT- See Also:
-
painter
-
-
Constructor Details
-
PainterGPUConformance
-
-
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)
-