commit | 8ca6db920bdb15381f09cdb58d797123e8165ef6 | [log] [tgz] |
---|---|---|
author | Petr Hosek <phosek@chromium.org> | Wed Oct 21 16:54:58 2015 -0700 |
committer | Petr Hosek <phosek@chromium.org> | Wed Oct 21 16:54:58 2015 -0700 |
tree | ce2f2f5e531b266d1eb4d5efdc8996ac7f2c9f2c | |
parent | 22d06f31aa7ba8213d97168c33856ddd602fbd1c [diff] [blame] |
Use MGLGetProcAddress to access OpenGL functions Rather than calling GL functions directly, use MGLGetProcAddress to retrieve the functions dynamically at runtime. BUG= https://github.com/domokit/mojo/issues/396 R=jamesr@chromium.org Review URL: https://codereview.chromium.org/1416133002 .
diff --git a/examples/spinning_cube/spinning_cube.h b/examples/spinning_cube/spinning_cube.h index 0352970..e493c0b 100644 --- a/examples/spinning_cube/spinning_cube.h +++ b/examples/spinning_cube/spinning_cube.h
@@ -11,6 +11,8 @@ namespace examples { +class GLInterface; + class SpinningCube { public: SpinningCube(); @@ -42,6 +44,7 @@ bool initialized_; uint32_t width_; uint32_t height_; + scoped_ptr<GLInterface> gl_; scoped_ptr<GLState> state_; float fling_multiplier_; int direction_;