babelshift / sharpdl Goto Github PK
View Code? Open in Web Editor NEW๐น๏ธ Sharp DirectMedia Layer (XNA-like Framework for SDL)
License: MIT License
๐น๏ธ Sharp DirectMedia Layer (XNA-like Framework for SDL)
License: MIT License
The SDL2-CS library uses PInvoke to load SDL2 libraries. SDL2 is distributed in Windows as SDL2.dll, Mac as libSDL2.dylib, and Linux under varying names such as libSDL2.so or libSDL2-2.0-0.so.
This works properly under the following scenarios:
Mono uses a dllmap
algorithm to allow developers to redirect native library resolution in case of libraries not being found with standard names.
.NET Core doesn't have dllmap
abilities and instead will only search for the name you provide and slight variations such as appending lib
to the front.
While there is a new NativeLibrary class that allows developers to customize the way in which native libraries are resolved, this is only supported in .NET Core 3.0 and above. The library has yet to be added to any version of the .NET Standard, making it challenging to use in a library such as SharpDL that strives to be as broadly accessible as possible.
There's currently no license info for this project.
Dear Justin / babelshift,
It would be really good if you could post more examples. For instance, how to draw shapes and / or handle events.
Thank you in advance, Goicox
in public sealed class GameEngine : IGameEngine
//think i broke the code tags lol.
private const float fixedFramesPerSecond = 60f;
private bool isFrameRateCapped = true;
These 2 property's need to be set to public, well the fixed frames per second needs to be public, if we decided to create the renderer as such
mRenderer = mEngine.RendererFactory.CreateRenderer(mWindow, -1, RendererFlags.RendererAccelerated)
this should completely nullify the limiter (which it doesn't), however if you make that frame rate public we can set it to whatever we would like 60/122/244 etc. etc. as the moniters and whatnot get better so were not set by default to a monitor from the early 2000s lol.
Most games these days you can edit those values on the fly through in-game video menus.
Left is what it should look like: C++ using the sdl libs directly, right is what it looks like under SharpDL.
Both font sizes are set to 20 and here is the font used z3.ttf.
Dunno whats up with it to me looks like the .net library added some sort of shadowing to it which shouldent be the case.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.