diff options
Diffstat (limited to 'o3d/plugin/idl/texture.idl')
-rw-r--r-- | o3d/plugin/idl/texture.idl | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/o3d/plugin/idl/texture.idl b/o3d/plugin/idl/texture.idl index 0cd27c0..e503ab8 100644 --- a/o3d/plugin/idl/texture.idl +++ b/o3d/plugin/idl/texture.idl @@ -141,10 +141,19 @@ namespace o3d { Returns a RenderSurface object associated with a mip_level of a texture. \param mip_level The mip-level of the surface to be returned. - \param pack The pack in which the surface will reside. \return The RenderSurface object. %] - RenderSurface? GetRenderSurface(int mip_level, Pack pack); + RenderSurface? GetRenderSurface(int mip_level); + + %[ + Returns a RenderSurface object associated with a mip_level of a texture. + + \param mip_level The mip-level of the surface to be returned. + \param pack This parameter is no longer used. The surface exists as long as + the texture it came from exists. + \return The RenderSurface object. + %] + [userglue] RenderSurface? GetRenderSurface(int mip_level, Pack pack); // TODO: Add Get, GetRect. %[ @@ -236,6 +245,11 @@ namespace o3d { o3d::Bitmap* bitmap) { self->SetFromBitmap(*bitmap); } + o3d::RenderSurface* userglue_method_GetRenderSurface(o3d::Texture2D* self, + int mip_level, + o3d::Pack* pack) { + return self->GetRenderSurface(mip_level); + } %} %[ @@ -354,9 +368,21 @@ namespace o3d { \param face The cube face from which to extract the surface. \param mip_level The mip-level of the surface to be returned. - \param pack The pack in which the surface will reside. \return The RenderSurface object. %] + RenderSurface? GetRenderSurface(CubeFace face, int mip_level); + + %[ + Returns a RenderSurface object associated with a given cube face and + mip_level of a texture. + + \param face The cube face from which to extract the surface. + \param mip_level The mip-level of the surface to be returned. + \param pack This parameter is no longer used. The surface exists as long as + the texture it came from exists. + \return The RenderSurface object. + %] + [userglue] RenderSurface? GetRenderSurface(CubeFace face, int mip_level, Pack pack); %[ @@ -515,6 +541,13 @@ namespace o3d { dest_x, dest_y, dest_width, dest_height); } + o3d::RenderSurface* userglue_method_GetRenderSurface( + o3d::TextureCUBE* self, + o3d::TextureCUBE::CubeFace face, + int mip_level, + o3d::Pack* pack) { + return self->GetRenderSurface(face, mip_level); + } %} }; // TextureCUBE |