-
-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding WIC (WindowsCodecs) support (#1674)
- Loading branch information
Showing
319 changed files
with
172,148 additions
and
2,617 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
typedef unsigned int UINT32; | ||
typedef float FLOAT; | ||
|
||
#include <Windows.h> | ||
#include <dcommon.h> | ||
#include <wincodec.h> | ||
#include <wincodecsdk.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
|
||
using System; | ||
using Silk.NET.Core.Attributes; | ||
|
||
#pragma warning disable 1591 | ||
|
||
namespace Silk.NET.Core.Win32Extras | ||
{ | ||
[Flags] | ||
[NativeName("Name", "tagADVF")] | ||
public enum ADVF : int | ||
{ | ||
[NativeName("Name", "")] | ||
None = 0, | ||
[Obsolete("Deprecated in favour of \"Nodata\"")] | ||
[NativeName("Name", "ADVF_NODATA")] | ||
AdvfNodata = 0x1, | ||
[Obsolete("Deprecated in favour of \"Primefirst\"")] | ||
[NativeName("Name", "ADVF_PRIMEFIRST")] | ||
AdvfPrimefirst = 0x2, | ||
[Obsolete("Deprecated in favour of \"Onlyonce\"")] | ||
[NativeName("Name", "ADVF_ONLYONCE")] | ||
AdvfOnlyonce = 0x4, | ||
[Obsolete("Deprecated in favour of \"Dataonstop\"")] | ||
[NativeName("Name", "ADVF_DATAONSTOP")] | ||
AdvfDataonstop = 0x40, | ||
[Obsolete("Deprecated in favour of \"AcheNohandler\"")] | ||
[NativeName("Name", "ADVFCACHE_NOHANDLER")] | ||
AdvfcacheNohandler = 0x8, | ||
[Obsolete("Deprecated in favour of \"AcheForcebuiltin\"")] | ||
[NativeName("Name", "ADVFCACHE_FORCEBUILTIN")] | ||
AdvfcacheForcebuiltin = 0x10, | ||
[Obsolete("Deprecated in favour of \"AcheOnsave\"")] | ||
[NativeName("Name", "ADVFCACHE_ONSAVE")] | ||
AdvfcacheOnsave = 0x20, | ||
[NativeName("Name", "ADVF_NODATA")] | ||
Nodata = 0x1, | ||
[NativeName("Name", "ADVF_PRIMEFIRST")] | ||
Primefirst = 0x2, | ||
[NativeName("Name", "ADVF_ONLYONCE")] | ||
Onlyonce = 0x4, | ||
[NativeName("Name", "ADVF_DATAONSTOP")] | ||
Dataonstop = 0x40, | ||
[NativeName("Name", "ADVFCACHE_NOHANDLER")] | ||
AcheNohandler = 0x8, | ||
[NativeName("Name", "ADVFCACHE_FORCEBUILTIN")] | ||
AcheForcebuiltin = 0x10, | ||
[NativeName("Name", "ADVFCACHE_ONSAVE")] | ||
AcheOnsave = 0x20, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/Core/Silk.NET.Core.Win32Extras/Enums/ApplicationType.gen.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
|
||
using System; | ||
using Silk.NET.Core.Attributes; | ||
|
||
#pragma warning disable 1591 | ||
|
||
namespace Silk.NET.Core.Win32Extras | ||
{ | ||
[NativeName("Name", "tagApplicationType")] | ||
public enum ApplicationType : int | ||
{ | ||
[NativeName("Name", "ServerApplication")] | ||
ServerApplication = 0x0, | ||
[NativeName("Name", "LibraryApplication")] | ||
LibraryApplication = 0x1, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
|
||
using System; | ||
using Silk.NET.Core.Attributes; | ||
|
||
#pragma warning disable 1591 | ||
|
||
namespace Silk.NET.Core.Win32Extras | ||
{ | ||
[NativeName("Name", "tagBIND_FLAGS")] | ||
public enum BindFlags : int | ||
{ | ||
[Obsolete("Deprecated in favour of \"Maybotheruser\"")] | ||
[NativeName("Name", "BIND_MAYBOTHERUSER")] | ||
BindMaybotheruser = 0x1, | ||
[Obsolete("Deprecated in favour of \"Justtestexistence\"")] | ||
[NativeName("Name", "BIND_JUSTTESTEXISTENCE")] | ||
BindJusttestexistence = 0x2, | ||
[NativeName("Name", "BIND_MAYBOTHERUSER")] | ||
Maybotheruser = 0x1, | ||
[NativeName("Name", "BIND_JUSTTESTEXISTENCE")] | ||
Justtestexistence = 0x2, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
|
||
using System; | ||
using Silk.NET.Core.Attributes; | ||
|
||
#pragma warning disable 1591 | ||
|
||
namespace Silk.NET.Core.Win32Extras | ||
{ | ||
[NativeName("Name", "tagCALLTYPE")] | ||
public enum CallType : int | ||
{ | ||
[Obsolete("Deprecated in favour of \"Toplevel\"")] | ||
[NativeName("Name", "CALLTYPE_TOPLEVEL")] | ||
CalltypeToplevel = 0x1, | ||
[Obsolete("Deprecated in favour of \"Nested\"")] | ||
[NativeName("Name", "CALLTYPE_NESTED")] | ||
CalltypeNested = 0x2, | ||
[Obsolete("Deprecated in favour of \"Async\"")] | ||
[NativeName("Name", "CALLTYPE_ASYNC")] | ||
CalltypeAsync = 0x3, | ||
[Obsolete("Deprecated in favour of \"ToplevelCallpending\"")] | ||
[NativeName("Name", "CALLTYPE_TOPLEVEL_CALLPENDING")] | ||
CalltypeToplevelCallpending = 0x4, | ||
[Obsolete("Deprecated in favour of \"AsyncCallpending\"")] | ||
[NativeName("Name", "CALLTYPE_ASYNC_CALLPENDING")] | ||
CalltypeAsyncCallpending = 0x5, | ||
[NativeName("Name", "CALLTYPE_TOPLEVEL")] | ||
Toplevel = 0x1, | ||
[NativeName("Name", "CALLTYPE_NESTED")] | ||
Nested = 0x2, | ||
[NativeName("Name", "CALLTYPE_ASYNC")] | ||
Async = 0x3, | ||
[NativeName("Name", "CALLTYPE_TOPLEVEL_CALLPENDING")] | ||
ToplevelCallpending = 0x4, | ||
[NativeName("Name", "CALLTYPE_ASYNC_CALLPENDING")] | ||
AsyncCallpending = 0x5, | ||
} | ||
} |
Oops, something went wrong.