summaryrefslogtreecommitdiffstats
path: root/gpu/demos/framework/demo.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/demos/framework/demo.h')
-rw-r--r--gpu/demos/framework/demo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/demos/framework/demo.h b/gpu/demos/framework/demo.h
index 801609b..28c8923 100644
--- a/gpu/demos/framework/demo.h
+++ b/gpu/demos/framework/demo.h
@@ -33,6 +33,10 @@ class Demo {
// a rendering context has already been created and made current.
virtual bool InitGL() = 0;
+ // Returns whether the demo is animated. Animated demos are drawn
+ // continuously. Unanimated demos are only drawn when the window is invalid.
+ virtual bool IsAnimated();
+
// This function is called by the framework to perform OpenGL rendering.
// When this function is called, it is assumed that the rendering context
// has been made current.