summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/graphics_3d.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/cpp/graphics_3d.h')
-rw-r--r--ppapi/cpp/graphics_3d.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/ppapi/cpp/graphics_3d.h b/ppapi/cpp/graphics_3d.h
new file mode 100644
index 0000000..aaa6d08
--- /dev/null
+++ b/ppapi/cpp/graphics_3d.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PPAPI_CPP_GRAPHICS_3D_H_
+#define PPAPI_CPP_GRAPHICS_3D_H_
+
+#include "ppapi/c/ppb_graphics_3d.h"
+#include "ppapi/cpp/resource.h"
+
+namespace pp {
+
+class CompletionCallback;
+class Instance;
+class Var;
+
+class Graphics3D : public Resource {
+ public:
+ // Creates an is_null() Graphics3D_Dev object.
+ Graphics3D();
+
+ Graphics3D(const Instance& instance,
+ const Graphics3D& share_context,
+ const int32_t* attrib_list);
+
+ ~Graphics3D();
+
+ int32_t GetAttribs(int32_t* attrib_list) const;
+ int32_t SetAttribs(int32_t* attrib_list);
+
+ int32_t ResizeBuffers(int32_t width, int32_t height);
+
+ int32_t SwapBuffers(const CompletionCallback& cc);
+};
+
+} // namespace pp
+
+#endif // PPAPI_CPP_GRAPHICS_3D_H_
+