From a3f11bdf0707abf7910847849554bdbfecfac833 Mon Sep 17 00:00:00 2001 From: "gman@google.com" Date: Fri, 7 Aug 2009 19:40:28 +0000 Subject: 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 --- o3d/plugin/idl/texture.idl | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'o3d/plugin/idl/texture.idl') 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. -- cgit v1.1