public void ReadPixels(TextureCube texture, int level, TextureCubeFace cubeFace, int dx, int dy, int sx, int sy, int sw, int sh) { this.CheckUpdate(); int errorCode = PsmGraphicsContext.ReadPixels2(this.handle, texture.handle, level, cubeFace, dx, dy, sx, sy, sw, sh); if (errorCode != 0) { Error.ThrowNativeException(errorCode); } }
/// <summary>Creates a copy of a cube texture</summary> /// <param name="texture">Cube texture</param> /// <remarks>Creates a copy of a cube texture. The 2 cube textures will then share unmanaged resources. When Dispose() is called for all copies, the shared unmanaged resources will be freed.</remarks> protected TextureCube(TextureCube texture) : base(texture) { }
/// <summary>Sets a value to the structure representing the rendering result storage destination</summary> /// <param name="texture">Cube texture (release when NULL)</param> /// <param name="level">Texture mipmap level (from 0 to LevelCount-1)</param> /// <param name="cubeFace">Cube texture cube surface</param> public void Set(TextureCube texture, int level, TextureCubeFace cubeFace) { this.Buffer = texture; this.Level = level; this.CubeFace = cubeFace; }
/// <summary>Creates a structure representing the rendering result storage destination</summary> /// <param name="texture">Cube texture (release when NULL)</param> /// <param name="level">Texture mipmap level (from 0 to LevelCount-1)</param> /// <param name="cubeFace">Cube texture cube surface</param> public RenderTarget(TextureCube texture, int level, TextureCubeFace cubeFace) { this.Buffer = texture; this.Level = level; this.CubeFace = cubeFace; }
/// <summary>Sets the color storage destination (for the cube textures)</summary> /// <param name="texture">Cube texture (release when NULL)</param> /// <param name="level">Mipmap level (0 to LevelCount-1)</param> /// <param name="cubeFace">Cube surface</param> /// <remarks>Sets the cube textures to the color storage destination. The texture must be created by specifying the Renderable option.</remarks> public void SetColorTarget(TextureCube texture, int level, TextureCubeFace cubeFace) { this.SetColorTarget(new RenderTarget(texture, level, cubeFace)); }