Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
graphics_3d.h
Go to the documentation of this file.
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef PPAPI_CPP_GRAPHICS_3D_H_
6 #define PPAPI_CPP_GRAPHICS_3D_H_
7 
8 #include <stdint.h>
9 
10 #include "ppapi/c/ppb_graphics_3d.h"
11 #include "ppapi/cpp/resource.h"
12 
15 namespace pp {
16 
17 class CompletionCallback;
18 class InstanceHandle;
19 
21 class Graphics3D : public Resource {
22  public:
24  Graphics3D();
25 
67  Graphics3D(const InstanceHandle& instance,
68  const int32_t attrib_list[]);
69 
85  //
90  Graphics3D(const InstanceHandle& instance,
91  const Graphics3D& share_context,
92  const int32_t attrib_list[]);
93 
95  ~Graphics3D();
96 
126  int32_t GetAttribs(int32_t attrib_list[]) const;
127 
139  int32_t SetAttribs(const int32_t attrib_list[]);
140 
152  int32_t ResizeBuffers(int32_t width, int32_t height);
153 
190  int32_t SwapBuffers(const CompletionCallback& cc);
191 };
192 
193 } // namespace pp
194 
195 #endif // PPAPI_CPP_GRAPHICS_3D_H_
int32_t ResizeBuffers(int32_t width, int32_t height)
This class represents a 3D rendering context in the browser.
Definition: graphics_3d.h:21
Definition: completion_callback.h:26
Graphics3D()
Default constructor for creating an is_null() Graphics3D object.
Definition: instance_handle.h:44
int32_t SwapBuffers(const CompletionCallback &cc)
int32_t GetAttribs(int32_t attrib_list[]) const
int32_t SetAttribs(const int32_t attrib_list[])
A reference counted module resource.
Definition: resource.h:20
~Graphics3D()
Destructor.