diff options
author | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-23 04:51:52 +0000 |
---|---|---|
committer | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-23 04:51:52 +0000 |
commit | be8fd116e295fd7ef6c75e4dd717017d68c7fd57 (patch) | |
tree | c6ef9e02c1e60d189ead67e9a7ce90f01c8da2e8 /ppapi/cpp/dev/graphics_3d_dev.h | |
parent | 79cc8d9d943c79c2e5237265591d36b884470fbf (diff) | |
download | chromium_src-be8fd116e295fd7ef6c75e4dd717017d68c7fd57.zip chromium_src-be8fd116e295fd7ef6c75e4dd717017d68c7fd57.tar.gz chromium_src-be8fd116e295fd7ef6c75e4dd717017d68c7fd57.tar.bz2 |
Added ppapi::Context3D interface. The API has already been reviewed. I am adding the new API incrementally so as not to break the demos.
Review URL: http://codereview.chromium.org/6062003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70037 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/dev/graphics_3d_dev.h')
-rw-r--r-- | ppapi/cpp/dev/graphics_3d_dev.h | 40 |
1 files changed, 9 insertions, 31 deletions
diff --git a/ppapi/cpp/dev/graphics_3d_dev.h b/ppapi/cpp/dev/graphics_3d_dev.h index 43bd0b0..dece4c0 100644 --- a/ppapi/cpp/dev/graphics_3d_dev.h +++ b/ppapi/cpp/dev/graphics_3d_dev.h @@ -6,43 +6,21 @@ #define PPAPI_CPP_DEV_GRAPHICS_3D_DEV_H_ #include "ppapi/c/dev/ppb_graphics_3d_dev.h" -#include "ppapi/c/dev/ppb_opengles_dev.h" -#include "ppapi/cpp/instance.h" -#include "ppapi/cpp/resource.h" namespace pp { -class Graphics3D_Dev : public Resource { - public: - static bool GetConfigs(int32_t* configs, int32_t config_size, - int32_t* num_config); - - static bool ChooseConfig(const int32_t* attrib_list, int32_t* configs, - int32_t config_size, int32_t* num_config); - - static bool GetConfigAttrib(int32_t config, int32_t attribute, - int32_t* value); - - static const char* QueryString(int32_t name); +class Var; - static void* GetProcAddress(const char* name); - - static uint32_t GetError(); - static const PPB_OpenGLES2_Dev* GetImplementation(); - - // Creates an is_null() Graphics3D object. - Graphics3D_Dev() {} - - Graphics3D_Dev(const Instance& instance, - int32_t config, - int32_t share_context, - const int32_t* attrib_list); +class Graphics3D_Dev { + public: + static int32_t GetConfigs(PP_Config3D_Dev* configs, + int32_t config_size, + int32_t* num_config); - bool SwapBuffers() const; + static int32_t GetConfigAttribs(PP_Config3D_Dev config, + int32_t* attrib_list); - protected: - explicit Graphics3D_Dev(PP_Resource resource_id) : Resource(resource_id) {} - static Graphics3D_Dev FromResource(PP_Resource resource_id); + static Var GetString(int32_t name); }; } // namespace pp |