コード例 #1
0
        public void CopyTexture(TextureBase dstResource, uint dstSubresource, uint dstX, uint dstY, uint dstZ, GPUTexture srcResource, uint srcSubresource)
        {
#if UNIT_TEST_COMPILANT
            throw new NotImplementedException("Unit tests, don't support methods calls. Only properties can be get or set.");
#else
            Internal_CopyTextureRegion3(unmanagedPtr, FlaxEngine.Object.GetUnmanagedPtr(dstResource), dstSubresource, dstX, dstY, dstZ, FlaxEngine.Object.GetUnmanagedPtr(srcResource), srcSubresource);
#endif
        }
コード例 #2
0
 /// <summary>
 /// Draws the texture.
 /// </summary>
 /// <param name="t">The texture to draw.</param>
 /// <param name="rect">The rectangle to draw.</param>
 /// <param name="color">The color to multiply all texture pixels.</param>
 public static void DrawTexture(TextureBase t, Rectangle rect, Color color)
 {
     Internal_DrawTexture2(FlaxEngine.Object.GetUnmanagedPtr(t), ref rect, ref color);
 }