diff options
author | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-07 19:40:28 +0000 |
---|---|---|
committer | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-07 19:40:28 +0000 |
commit | a3f11bdf0707abf7910847849554bdbfecfac833 (patch) | |
tree | a3a03baf50819b2fe1d6d3dcea1cb78170ff59c3 /o3d/plugin/idl/texture.idl | |
parent | f6ba7a52d574814030ad2b2033a3a09ef94e0dbf (diff) | |
download | chromium_src-a3f11bdf0707abf7910847849554bdbfecfac833.zip chromium_src-a3f11bdf0707abf7910847849554bdbfecfac833.tar.gz chromium_src-a3f11bdf0707abf7910847849554bdbfecfac833.tar.bz2 |
This CL adds texture.getRect
Review URL: http://codereview.chromium.org/165118
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/plugin/idl/texture.idl')
-rw-r--r-- | o3d/plugin/idl/texture.idl | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/o3d/plugin/idl/texture.idl b/o3d/plugin/idl/texture.idl index 54b705c..062fe57 100644 --- a/o3d/plugin/idl/texture.idl +++ b/o3d/plugin/idl/texture.idl @@ -218,6 +218,25 @@ namespace o3d { float[] values); %[ + Gets a rectangular area of values from a texture. + + See o3d.Texture2D.set for details on formats. + Can not be used for compressed textures. + + \param level the mip level to get. + \param x The x coordinate of the area in the texture to retrieve. + \param y The y coordinate of the area in the texture to retrieve. + \param width The width of the area to retrieve. + \param height The height of the area to retrieve. + %] + [nocpp, userglue] + float[] GetRect(int level, + int x, + int y, + int width, + int height); + + %[ Copy pixels from source bitmap to certain mip level. Scales if the width and height of source and dest do not match. @@ -340,6 +359,27 @@ namespace o3d { float[] values); %[ + Gets a rectangular area of values from a texture. + + See o3d.Texture2D.set for details on formats. + Can not be used for compressed textures. + + \param face the face to get. + \param level the mip level to get. + \param x The x coordinate of the area in the texture to retrieve. + \param y The y coordinate of the area in the texture to retrieve. + \param width The width of the area to retrieve. + \param height The height of the area to retrieve. + %] + [nocpp, userglue] + float[] GetRect(CubeFace face, + int level, + int x, + int y, + int width, + int height); + + %[ Copy pixels from source bitmap to certain mip level. Scales if the width and height of source and dest do not match. |