Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Add OpenGLTex and OpenGLText tests

Devin Neal1e68fc48779a
diff --git a/tests/control_data/graphical_units_data/opengl/TexTest.npz b/tests/control_data/graphical_units_data/opengl/TexTest.npz
new file mode 100644
index 000000000..b25c290e9
Binary files /dev/null and b/tests/control_data/graphical_units_data/opengl/TexTest.npz differ
diff --git a/tests/control_data/graphical_units_data/opengl/TextTest.npz b/tests/control_data/graphical_units_data/opengl/TextTest.npz
new file mode 100644
index 000000000..ec1aaec87
Binary files /dev/null and b/tests/control_data/graphical_units_data/opengl/TextTest.npz differ
diff --git a/tests/test_graphical_units/test_opengl.py b/tests/test_graphical_units/test_opengl.py
index 4d49af5f9..40cb355e0 100644
--- a/tests/test_graphical_units/test_opengl.py
+++ b/tests/test_graphical_units/test_opengl.py
@@ -14,6 +14,20 @@ class CircleTest(Scene):
self.wait()
+class TexTest(Scene):
+ def construct(self):
+ tex = OpenGLTex("some tex", tex_to_color_map={"tex": RED})
+ self.add(tex)
+ self.wait()
+
+
+class TextTest(Scene):
+ def construct(self):
+ text = OpenGLText("some tex")
+ self.add(text)
+ self.wait()
+
+
MODULE_NAME = "opengl"