Comments (6)
I have written the first tutorial in the wiki. Check it out. It is pretty much the same as in SFML
from dsfml.
Looks very nice! I do have a comment though. It might not be necessary to have the "Failed Opening X" messages printed to the screen since SFML's error messaged would be printed as well. Do you want to keep that in there?
I also have a question about programming style. I've never been one for the auto keyword, but I see others use it all the time. Is this generally used in D? Am I just going to have to deal with this guy? :P
from dsfml.
Well I am not a D style expert, but I have seen people using it a lot too. And it is convenient when the type can be inferred. It is usually used when you declare a variable and use a constructor / generic function. It is there so you don't have to type the type twice. I use it a lot when I use the std.conv
's to
function. And I do like this:
auto my_int = to!int("123");
Now I remember that I watched recently one presentation for D from D conference and it was recommended to use this style. I found it, if you are interested see slide 37.
An ok I will remove those "Failed" messages.
from dsfml.
Maybe it's just me then? I'll make a post about it in the D forums and get their opinion. I'm kind of curious now.
from dsfml.
I think we should go ahead and use the code style you used in your short example tutorial for all code in the future tutorials as that seems to be what I was told to do when I asked the D forums about it. I guess auto = someConstructor();
seems to be the "standard" for the language.
On a side note, I posted a short tutorial yesterday on building SFML and CSFML in 32 bits so that's one more tutorial! I think I want to expand it to give some more information on building CSFML since there doesn't seem to be any real tutorial out there for the CSFML building process.
from dsfml.
All tutorials on sfml's website (with the exception of a few building tutorials) are on dsfml's website.
http://jebbs.github.io/DSFML/tutorials.html
from dsfml.
Related Issues (20)
- Allow build.d to produce debug libraries
- Revert to using Time instead of Duration
- Update some documentation to say 'struct' or 'interface' instead of 'class'
- Transform class is missing some overloads
- Complete ddox documentation is not built with dub
- Redirecting err doesn't work
- build.d is gross
- CI should build static libraries
- Deprecate using string/char and wstring/wchar when interfacing with SFML HOT 2
- Remove string/char and wstring/wchar usage from DSFML
- SoundRecorder segfault
- Outdated Dub Version? HOT 3
- DSFML linking errors HOT 1
- sfImage_copyImage wrong coordinates swapped
- Linker error (Offset FF584H Record Type 0091) when --build=profile HOT 1
- error: ‘setUpVector’ is not a member of ‘sf::Listener’ HOT 15
- Rename EventType to just Type
- Add send method to TcpSocket class that returns number of bytes sent
- keyboard input crashing macOS HOT 1
- window.d (113,2) Error undefined identifier WindowHandle
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsfml.