-
-
Notifications
You must be signed in to change notification settings - Fork 454
[3.0] Update SDL and ClangSharp #2570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Exanite
wants to merge
31
commits into
develop/3.0
Choose a base branch
from
feature/update-sdl
base: develop/3.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
d7b0a5e
Update SDL submodule
Exanite 7a897bc
Update ClangSharp.PInvokeGenerator
Exanite eb3c578
Add comment on where the SDL Linux dependency list comes from
Exanite 4a925ba
Update dependency list
Exanite 4688456
Disable building SDL tests
Exanite dc21675
Don't build for ios armv7s
Exanite 7756e45
Set CMAKE_LIBRARY_ARCHITECTURE and remove pkg-config settings
Exanite cec6067
Install the architecture specific version of each compile dependency
Exanite a2d1440
Fix apt-get commands
Exanite 94b28ed
Fix incorrect architecture code (should be armhf instead of arm)
Exanite 32edf45
Enable ports repository
Exanite 1078201
Forgot a sudo
Exanite 453d8a0
Use tee instead of cat due to sudo only applying to cat and not the s…
Exanite 9d29d82
Don't hardcode the release codename
Exanite 5dbbfb2
Oops
Exanite 1f87a94
Update existing ubuntu.sources file to specify the architecture to fi…
Exanite 59c8d51
Change the ubuntu.source update command to be idempotent
Exanite 79669d7
Add the pkg config lines back
Exanite 03adbed
Fix missing sudo again
Exanite bf3883f
Use amd64_arm64 when calling vcvarsall instead of arm64
Exanite ada9687
Update native binaries for bf3883f79d37d307b64e64e839537547124e36ca
dotnet-bot 3053e41
Empty commit to trigger experimental packages
Exanite d5c877d
Update native binaries for 3053e417d91ba7618874ddc165de347fb277e54c
dotnet-bot 1c16a52
Update native binaries for d5c877d510b6af0467ec510e0c545c80bc0be6dd
dotnet-bot 5acd54c
Update native binaries for 1c16a528fb1c2dcb9e364e103e2a4515a0989cef
dotnet-bot 7b212c3
Update native binaries for 5acd54ceb1d8e777582e0c4fe7726a3bf0fe9064
dotnet-bot d2d864a
Add license header to OpenAL example
Exanite c2a9772
Add basic SDL example
Exanite 8e3cfd7
Prefix the project names with the library name
Exanite 6d54862
Decide to not prefix the folders since the rest of the codebase doesn't
Exanite 77ebc55
Update SDL bindings
Exanite File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains hidden or 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 hidden or 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 hidden or 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
Submodule sdl
updated
1645 files
File renamed without changes.
This file contains hidden or 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 hidden or 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,42 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| using Silk.NET.SDL; | ||
|
|
||
| if (!Sdl.Init(Sdl.InitVideo)) | ||
| { | ||
| throw new Exception($"SDL failed to initialize: {Sdl.GetError().ReadToString()}"); | ||
| } | ||
|
|
||
| var window = Sdl.CreateWindow("Silk.NET.SDL - Hello Window", 800, 600, Sdl.WindowResizable); | ||
| if (window == nullptr) | ||
| { | ||
| throw new Exception("Failed to create window"); | ||
| } | ||
|
|
||
| try | ||
| { | ||
| var renderer = Sdl.CreateRenderer(window, nullptr); | ||
| { | ||
| var shouldRun = true; | ||
| while (shouldRun) | ||
| { | ||
| var e = default(Event); | ||
| Sdl.PollEvent(e.AsRef()); | ||
|
|
||
| if (e.Type == (uint)EventType.Quit) | ||
| { | ||
| shouldRun = false; | ||
| } | ||
|
|
||
| Sdl.SetRenderDrawColor(renderer, 0, 255, 0, 255); | ||
| Sdl.RenderClear(renderer); | ||
| Sdl.RenderPresent(renderer); | ||
| } | ||
| } | ||
| Sdl.DestroyWindow(window); | ||
| } | ||
| finally | ||
| { | ||
| Sdl.Quit(); | ||
| } |
14 changes: 14 additions & 0 deletions
14
examples/CSharp/SDL/Tutorial001.HelloWindow/SDL.Tutorial001.HelloWindow.csproj
This file contains hidden or 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,14 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|
|
||
| <PropertyGroup> | ||
| <OutputType>Exe</OutputType> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\..\..\..\sources\SDL\SDL\Silk.NET.SDL.csproj" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This folder doesn't exist on Ubuntu and the include, lib, and bin folders instead have the following format:
Setting CMAKE_LIBRARY_ARCHITECTURE lets CMake find these automatically.