summaryrefslogtreecommitdiffstats
path: root/o3d/core/cross/renderer.h
diff options
context:
space:
mode:
authorericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-16 02:43:24 +0000
committerericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-16 02:43:24 +0000
commit50b8ee61c46bced3866f2646f37cbf9879d07027 (patch)
tree29a716cb570352a82dee3a0585fb02d0c5c1b4c3 /o3d/core/cross/renderer.h
parent279456e2046383387f27c48cb003efa28d5e5f32 (diff)
downloadchromium_src-50b8ee61c46bced3866f2646f37cbf9879d07027.zip
chromium_src-50b8ee61c46bced3866f2646f37cbf9879d07027.tar.gz
chromium_src-50b8ee61c46bced3866f2646f37cbf9879d07027.tar.bz2
Polish full-screen mode a bit:
* Add a just-use-the-current-display-mode flag. * Make the sample use more parts of the API. * Correct the spelling of full-screen as per Google's policy. * Check for valid mode when the user gives it to us. * Expose clearFullscreenClickRegion to JS. * Fix a typo in convolution while I'm in there. Review URL: http://codereview.chromium.org/126034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18477 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/core/cross/renderer.h')
-rw-r--r--o3d/core/cross/renderer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/o3d/core/cross/renderer.h b/o3d/core/cross/renderer.h
index 3f96456..55ec2be 100644
--- a/o3d/core/cross/renderer.h
+++ b/o3d/core/cross/renderer.h
@@ -104,6 +104,14 @@ class Renderer {
INITIALIZATION_ERROR,
};
+ // This is exposed to JavaScript, but as long as users always refer to it
+ // symbolically, it should be possible to change it without breaking anyone.
+ // NOTE: windows d3d display modes are internally implemented via adding 1 to
+ // their normal values of [0, NUM) so as not to collide with this value.
+ enum DisplayModes {
+ DISPLAY_MODE_DEFAULT = 0
+ };
+
// A StateHandler takes a param and sets or resets a render state.
class StateHandler {
public: