build
Win_x86
Crow.userprefs
-Debug
packages
*.nupkg
*.user
.vs/
/GOLib.suo
/tmp
-/bin/*
-/obj/*
-/GOLib.userprefs
-/Tests/obj/*
-CrowIDE/obj
-Crow/obj
-/Tests/bin/*
-/UnitTest/obj
-/UnitTest/bin
-MonoDevelop.GOLib/bin/
-MonoDevelop.GOLib/build/
-MonoDevelop.GOLib/obj/
-Tests/Tests.sln
-Tests/Tests.userprefs
-src/GraphicObjects/Panel.cs
-src/GraphicObjects/VerticalWrappingWidget.cs
-src/GraphicObjects/HorizontalWrappingWidget.cs
+bin
+obj
//Background = "vgradient|0:DimGrey|1:Black";
//Background = "Transparent";
Foreground = "LightGrey";
- //MouseEnter = "{Background=SteelBlue;}";
- //MouseLeave = "{Background=Transparent;}";
+ MouseEnter = "{Background=SteelBlue;}";
+ MouseLeave = "{Background=Transparent;}";
//MouseEnter = "{Background = vgradient|0:SteelBlue|1:Jet;Foreground=White;}";
//MouseLeave = "{Foreground=LightGrey;Background=Transparent;}";
SelectionBackground = "Transparent";
ctx.Arc (mousePos.X, mousePos.Y, 3.5, 0, Math.PI * 2.0);
ctx.LineWidth = 0.5;
ctx.Stroke ();
- ctx.Translate (-0.5, -0.5);
+ ctx.Translate (-1.0, -1.0);
ctx.Arc (mousePos.X, mousePos.Y, 3.5, 0, Math.PI * 2.0);
ctx.SetSourceColor (Color.White);
ctx.Stroke ();
// Author:
// Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
//
-// Copyright (c) 2018 jp
+// Copyright (c) 2018-2019 jp
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// THE SOFTWARE.
using System;
using System.Text;
-using Crow;
-namespace vkvg
-{
+namespace vkvg {
public class Context: IDisposable
{
public void ClosePath () {
NativeMethods.vkvg_close_path (handle);
}
-
-// public void Rectangle (float x, float y, float width, float height){
-// NativeMethods.vkvg_rectangle ();
-// }
public void MoveTo (PointD p){
NativeMethods.vkvg_move_to (handle, (float)p.X, (float)p.Y);
}
// Author:
// Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
//
-// Copyright (c) 2013-2017 Jean-Philippe Bruyère
+// Copyright (c) 2013-2019 Jean-Philippe Bruyère
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// Author:
// Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
//
-// Copyright (c) 2018 jp
+// Copyright (c) 2018-2019 Jean-Philippe Bruyère
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
internal static extern void vkvg_pattern_destroy (IntPtr pat);
[DllImport (libvkvg, CallingConvention=CallingConvention.Cdecl)]
- internal static extern void vkvg_patter_add_color_stop (IntPtr pat, float offset, float r, float g, float b, float a);
+ internal static extern void vkvg_pattern_add_color_stop (IntPtr pat, float offset, float r, float g, float b, float a);
[DllImport (libvkvg, CallingConvention=CallingConvention.Cdecl)]
internal static extern void vkvg_pattern_set_extend (IntPtr pat, Extend extend);
[DllImport (libvkvg, CallingConvention=CallingConvention.Cdecl)]
// Author:
// Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
//
-// Copyright (c) 2019 jp
+// Copyright (c) 2019 Jean-Philippe Bruyère
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
}
public void AddColorStop (float offset, float r, float g, float b, float a = 1f) {
- NativeMethods.vkvg_patter_add_color_stop (handle, offset, r, g, b, a);
+ NativeMethods.vkvg_pattern_add_color_stop (handle, offset, r, g, b, a);
}
public void AddColorStop (float offset, Crow.Color c) {
- NativeMethods.vkvg_patter_add_color_stop (Handle, offset, (float)c.R, (float)c.G, (float)c.B, (float)c.A);
+ NativeMethods.vkvg_pattern_add_color_stop (Handle, offset, (float)c.R, (float)c.G, (float)c.B, (float)c.A);
}
#region IDisposable implementation
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project Sdk="Microsoft.NET.Sdk">
+ <Import Project="$(SolutionDir)netfx.props" />
<PropertyGroup>
- <OutputType>Exe</OutputType>
- <TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
- <OutputPath>$(SolutionDir)build\$(Configuration)\samples\</OutputPath>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{1F18E74F-BCC9-481C-8888-89D81CBB30BE}</ProjectGuid>
+ <TargetFrameworks>net471;netstandard2.0</TargetFrameworks>
+ <OutputPath>$(SolutionDir)build\$(Configuration)\</OutputPath>
+ <OutputType>Exe</OutputType>
+ <RepositoryUrl>https://github.com/jpbruyere/Crow</RepositoryUrl>
+ <License>https://opensource.org/licenses/MIT</License>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ <EnableDefaultNoneItems>false</EnableDefaultNoneItems>
<ReleaseVersion>0.8.0</ReleaseVersion>
</PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <DefineConstants>DEBUG</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <Optimize>true</Optimize>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Compile Include="*.cs" />
+
+ <ItemGroup Condition="$(TargetFramework.StartsWith('net4'))">
+ <Reference Include="System" />
+ </ItemGroup>
+
+ <ItemGroup>
+ <ProjectReference Include="..\..\Crow\Crow.csproj" />
+ </ItemGroup>
+
+ <ItemGroup>
+ <Datas Include="..\data\**\*.*">
+ <Link>data\%(RecursiveDir)%(Filename)%(Extension)</Link>
+ </Datas>
<EmbeddedResource Include="ui\**\*.*">
<LogicalName>HelloWorld.%(Filename)%(Extension)</LogicalName>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="Newtonsoft.Json">
- <HintPath>..\..\packages\Newtonsoft.Json.12.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
- </Reference>
- <Reference Include="glTFLoader">
- <HintPath>..\..\packages\glTF2Loader.1.1.3-alpha\lib\net35\glTFLoader.dll</HintPath>
- </Reference>
- <Reference Include="System.Numerics.Vectors">
- <HintPath>..\..\packages\System.Numerics.Vectors.4.6.0-preview4.19212.13\lib\net46\System.Numerics.Vectors.dll</HintPath>
- </Reference>
- <Reference Include="mscorlib" />
- <Reference Include="System.Numerics" />
- <Reference Include="System.Runtime.CompilerServices.Unsafe">
- <HintPath>..\..\packages\System.Runtime.CompilerServices.Unsafe.4.6.0-preview4.19212.13\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
- </Reference>
- <Reference Include="VK">
- <HintPath>..\..\packages\Vulkan.0.1.2.6\lib\netstandard2.0\VK.dll</HintPath>
- </Reference>
- <Reference Include="CVKL-dotnet">
- <HintPath>..\..\packages\CVKL.0.1.2\lib\netstandard2.0\CVKL-dotnet.dll</HintPath>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\Crow\Crow.csproj">
- <Project>{C2980F9B-4798-4C05-99E2-E174810F7C7B}</Project>
- <Name>Crow</Name>
- </ProjectReference>
- </ItemGroup>
+ </EmbeddedResource>
+ </ItemGroup>
<ItemGroup>
- <None Include="packages.config" />
+ <PackageReference Include="CVKL" Version="0.1.3-beta" />
</ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
-</Project>
+</Project>
\ No newline at end of file
-using System;
-using System.Threading;
-using Crow;
-using CVKL;
-using VK;
+using Crow;
namespace HelloWorld
{
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="CVKL" version="0.1.2" targetFramework="net471" />
- <package id="glTF2Loader" version="1.1.3-alpha" targetFramework="net471" />
- <package id="Newtonsoft.Json" version="12.0.2" targetFramework="net471" />
- <package id="System.Numerics.Vectors" version="4.6.0-preview4.19212.13" targetFramework="net471" />
- <package id="System.Runtime.CompilerServices.Unsafe" version="4.6.0-preview4.19212.13" targetFramework="net471" />
- <package id="Vulkan" version="0.1.2.6" targetFramework="net471" />
-</packages>
\ No newline at end of file