コード例 #1
0
        public static RenderStatesMarshal MarshalRenderStates(this RenderStates States)
        {
            var marshal = new RenderStatesMarshal();

            marshal.BlendMode = States.BlendMode;
            marshal.Transform = States.Transform;
            marshal.Texture   = States.Texture?.CPointer ?? IntPtr.Zero;
            marshal.Shader    = States.Shader?.CPointer ?? IntPtr.Zero;

            return(marshal);
        }
コード例 #2
0
 private static extern void DrawRenderTexture(IntPtr Pointer, IntPtr RenderTexturePointer, ref RenderStatesMarshal RenderStates);
コード例 #3
0
 private static extern void DrawRenderWindow(IntPtr Pointer, IntPtr RenderWindowPointer, ref RenderStatesMarshal RenderStates);