diff options
author | yux@google.com <yux@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-15 01:07:36 +0000 |
---|---|---|
committer | yux@google.com <yux@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-15 01:07:36 +0000 |
commit | 128ff759facb55e3c0c1326e97c00b325ac3f484 (patch) | |
tree | 868fda83a815ac414abac1466091faced5bc3eb1 /o3d/plugin/idl/texture.idl | |
parent | 267088ffb702c649bfd2c1123f1f9c3f391b69d2 (diff) | |
download | chromium_src-128ff759facb55e3c0c1326e97c00b325ac3f484.zip chromium_src-128ff759facb55e3c0c1326e97c00b325ac3f484.tar.gz chromium_src-128ff759facb55e3c0c1326e97c00b325ac3f484.tar.bz2 |
expose bitmap in js.
Review URL: http://codereview.chromium.org/150058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20700 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/plugin/idl/texture.idl')
-rw-r--r-- | o3d/plugin/idl/texture.idl | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/o3d/plugin/idl/texture.idl b/o3d/plugin/idl/texture.idl index 014f77e..6207e9f 100644 --- a/o3d/plugin/idl/texture.idl +++ b/o3d/plugin/idl/texture.idl @@ -186,6 +186,25 @@ namespace o3d { int source_width, float[] values); + %[ + Copy pixels from source bitmap to certain mip level. + Scales if the width and height of source and dest do not match. + + \param source_img source bitmap which would be drawn. + \param source_x x-coordinate of the starting pixel in the source image. + \param source_y y-coordinate of the starting pixel in the source image. + \param source_width width of the source image to draw. + \param source_height Height of the source image to draw. + \param dest_x x-coordinate of the starting pixel in the dest image. + \param dest_y y-coordinate of the starting pixel in the dest image. + \param dest_width width of the dest image. + \param dest_height height of the dest image. + \param dest_mip on which mip level the sourceImg would be drawn. + %] + void DrawImage(Bitmap source_img, int source_x, int source_y, + int source_width, int source_height, + int dest_x, int dest_y, + int dest_width, int dest_height, int dest_mip); [verbatim=cpp_glue] %{ void SetRectCheck(o3d::Texture2D* self, @@ -426,6 +445,28 @@ coordinates. \return The RenderSurface object. %] RenderSurface? GetRenderSurface(CubeFace face, int mip_level, Pack pack); + + %[ + Copy pixels from source bitmap to certain mip level. + Scales if the width and height of source and dest do not match. + + \param source_img source bitmap which would be drawn. + \param source_x x-coordinate of the starting pixel in the source image. + \param source_y y-coordinate of the starting pixel in the source image. + \param source_width width of the source image to draw. + \param source_height Height of the source image to draw. + \param dest_x x-coordinate of the starting pixel in the dest image. + \param dest_y y-coordinate of the starting pixel in the dest image. + \param dest_width width of the dest image. + \param dest_height height of the dest image. + \param face on which face the sourceImg would be drawn. + \param dest_mip on which mip level the sourceImg would be drawn. + %] + void DrawImage(Bitmap source_img, int source_x, int source_y, + int source_width, int source_height, + int dest_x, int dest_y, + int dest_width, int dest_height, + CubeFace face, int dest_mip); }; // TextureCUBE } // namespace o3d |