7 #include "ppapi/c/pp_errors.h"
17 template <>
const char* interface_name<PPB_Graphics3D_1_0>() {
18 return PPB_GRAPHICS_3D_INTERFACE_1_0;
28 if (has_interface<PPB_Graphics3D_1_0>()) {
37 if (has_interface<PPB_Graphics3D_1_0>()) {
49 if (!has_interface<PPB_Graphics3D_1_0>())
50 return PP_ERROR_NOINTERFACE;
52 return get_interface<PPB_Graphics3D_1_0>()->
GetAttribs(
58 if (!has_interface<PPB_Graphics3D_1_0>())
59 return PP_ERROR_NOINTERFACE;
61 return get_interface<PPB_Graphics3D_1_0>()->
SetAttribs(
67 if (!has_interface<PPB_Graphics3D_1_0>())
68 return PP_ERROR_NOINTERFACE;
75 if (!has_interface<PPB_Graphics3D_1_0>())
76 return PP_ERROR_NOINTERFACE;
78 return get_interface<PPB_Graphics3D_1_0>()->
SwapBuffers(
void PassRefFromConstructor(PP_Resource resource)
int32_t ResizeBuffers(int32_t width, int32_t height)
const PP_CompletionCallback & pp_completion_callback() const
This class represents a 3D rendering context in the browser.
Graphics3D()
Default constructor for creating an is_null() Graphics3D object.
int32_t SwapBuffers(const CompletionCallback &cc)
int32_t GetAttribs(int32_t attrib_list[]) const
PP_Resource pp_resource() const
int32_t SetAttribs(const int32_t attrib_list[])
PP_Instance pp_instance() const