Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: examples/spinning_cube/spinning_cube.h

Issue 1416133002: Use MGLGetProcAddress to access OpenGL functions (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Initialize members in the constructor Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: examples/spinning_cube/spinning_cube.h
diff --git a/examples/spinning_cube/spinning_cube.h b/examples/spinning_cube/spinning_cube.h
index 03529701d4609c4099f2b2a9b6e2d6432b5ac81a..500a3089b5a8ec4c2a1c7e231d98fe3654923c13 100644
--- a/examples/spinning_cube/spinning_cube.h
+++ b/examples/spinning_cube/spinning_cube.h
@@ -13,6 +13,8 @@ namespace examples {
class SpinningCube {
public:
+ class GLInterface;
jamesr 2015/10/21 23:28:55 this can be private (or even better a separate typ
Petr Hosek 2015/10/21 23:40:33 Done.
+
SpinningCube();
~SpinningCube();
@@ -42,6 +44,7 @@ class SpinningCube {
bool initialized_;
uint32_t width_;
uint32_t height_;
+ scoped_ptr<GLInterface> gl_;
scoped_ptr<GLState> state_;
float fling_multiplier_;
int direction_;

Powered by Google App Engine
This is Rietveld 408576698