Comments (41)
Taking Content/*
, as I've done the initial sweep.
from fna-mghistory.
To anyone else willing to take a look at the other directories listed here, I've brewed a few one-liners that may help the effort.
https://gist.github.com/meklu/c6d1a7561ed315fbbdd5
from fna-mghistory.
Thanks, meklu - I'll check those out before I jump in here.
from fna-mghistory.
I'll take Storage
from fna-mghistory.
Quickie:
Kill trailing whitespace, or whitespace in blank lines: sed -i 's/[\t ]*$//g' *
.
Hopefully I'll get time to actually work on this tomorrow, today was very busy - and tonight just as much.
from fna-mghistory.
A good check for line length is to run the file
command on all the files and make sure they show up as ASCII text
, not ASCII text, with very long lines
.
You can use this bash script to do it for the current directory:
for f in *.cs; do file $f; done
or this to do it recursively
git ls-files . | grep '\.cs$' | xargs file $1
from fna-mghistory.
You can use this bash script to do it for the current directory:
Why not just file *.cs
?
from fna-mghistory.
I see that works too. I never tried file with a wildcard.
from fna-mghistory.
Shells in *nix expand wildcards before passing them to the command, so wildcards will work with any program that can take a list of files as input.
from fna-mghistory.
Thanks. I didn't realize the shell handled that part of the wildcards.
from fna-mghistory.
You're welcome. Shell expansion is an interesting and powerful feature, but it's good to be aware of what it's doing automagically because it means that programs/commands never see the wildcards (which is why you can't just do a mass rename with the mv command).
Now... if only I knew 1/10th as much about how git branches are supposed to work. :) Guess I'll pick it up as we go.
from fna-mghistory.
I'll take on Media
now, if you please.
from fna-mghistory.
Will take Graphics/Vertices/
when I get back tonight, while merging the region changes.
from fna-mghistory.
I'll continue working my way up the list and take Input/Touch/
.
from fna-mghistory.
Also going to be taking Graphics/
and Graphics/PackedVector/
.
from fna-mghistory.
Just pushed a large chunk of cleanup for Graphics/
: 9569acb
This cleans up all files except for the following:
- ModelBone.cs
- ModelBoneCollection.cs
- ModelEffectCollection.cs
- ModelMesh.cs
- ModelMeshCollection.cs
- ModelMeshPart.cs
- ModelMeshPartCollection.cs
- SpriteBatch.cs
- SpriteBatcher.cs
- SpriteBatchItem.cs
- SpriteFont.cs
If anyone wants to take some of these files, feel free. Everything else should be nice and clean now.
from fna-mghistory.
I can knock out Input
sometime in the next few days, if no one else wants it.
from fna-mghistory.
I'll leave Input/
unassigned for now, let me know if/when you start it and I'll mark it as assigned.
from fna-mghistory.
If I'm not too busy, I might grab Input or the rest of Graphics tomorrow night. But if I haven't responded again by the time you're ready to start it, then go for it @3vi1 . I've been really busy this week, so I might not get a chance to contribute this week.
from fna-mghistory.
Since no one else has claimed it yet, I'll take Input now.
from fna-mghistory.
That's cool. I'm going to be really tied up with my job at least until Sunday. I'll see what I can help with at that point.
from fna-mghistory.
I'll take what's left of Graphics/
from fna-mghistory.
What's the official stance on stuff like this:
// Summary:
// Gets the name of this bone.
public string Name
{
get;
set;
}
Kill the comment or let it be? And also, if it stays, change it to /* */ style?
from fna-mghistory.
I believe those are actually supposed to be XMLdoc summaries. So it should probably be this:
// <summary>Gets the name of this bone.</summary>
Though I don't know if that's 100% correct... look around the source (or possibly SDL2#'s source) and see how the XML tags are meant to work. Don't remember off the top of my head.
from fna-mghistory.
XML tags require three /// before them: http://msdn.microsoft.com/en-us/library/b2s063f7.aspx
from fna-mghistory.
The only unassigned task left is ./
. For this one, since the folder is so unbelievably massive, devs can pick out a small handful of files at a time, rather than having to take the entire folder. That might make this last goal a bit more appealing...
from fna-mghistory.
I'll start at the bottom and take:
TextInputEventArgs.cs
Threading.cs
TitleContainer.cs
Vector2.cs
Vector3.cs
Vector4.cs
from fna-mghistory.
I'll start at the top and take
BoundingBox
BoundingFrustum
BoundingSphere
Color
ContainmentType
Curve
from fna-mghistory.
Working my way up, I'll tackle ./P_-R_ tonight.
PerformanceCounter.cs
Plane.cs
PlaneIntersectionType.cs
PlayerIndex.cs
Point.cs
PreparingDeviceSettingsEventArgs.cs
Quaternion.cs
Ray.cs
Rectangle.cs
ReusableItemList.cs
from fna-mghistory.
Flibi, will you refresh my memory as to your stance on commented-out stubs?
I'm inclined to just drop the ones I see in ./Plane.cs. I don't think they offer anything in the way of documentation that can't be recreated in a minute should we find a program that actually needs them, whereas they'll sit there cluttering up the code for years if they're never implemented.
WWFD?
from fna-mghistory.
Up until now I've been swerving a bit on this, but thinking about it, you're right, we probably should remove those.
I'll double check all the old stuff when I do my second FNA pass, but from now on, go ahead and remove those bits.
from fna-mghistory.
Getting ContainmentType and CurveContinuity. Just a couple small enum files.
from fna-mghistory.
I'll continue working my way up and do ./I* - M* tonight.
IDrawable.cs
IGameComponent.cs
IGraphicsDeviceManager.cs
IUpdateable.cs
LaunchParameters.cs
MathHelper.cs
Matrix.cs
from fna-mghistory.
If you want you can add this to your current PR while you fix the current issues in that one, I'd be cool with that. Looking at that list, only Matrix seems to be the real beast in there.
from fna-mghistory.
Will do. It will probably be sometime tomorrow before I add them to the pull. I only got about halfway through Matrix as I spent half the night distracted with troubleshooting unrelated issues (Today's Ubuntu Trusty repo updates killed sound and broke KDE's 3D compositing... yippee).
from fna-mghistory.
I'll start these today. (4 of them will be really easy.)
CurveKey
CurveKeyCollection
CurveLoopType
CurveTangent
DisplayOrientation
DrawableGameComponent
FrameworkDispatcher
Game
from fna-mghistory.
We've done two passes through Matrix.cs (3vi1 and myself), if someone wants to do a third/fourth pass through that file, consider that one perpetually open. It's probably the largest file in the MonoGame project in the worst way possible.
You probably want to do a side-by-side comparison with the original while you're doing it:
https://github.com/mono/MonoGame/blob/develop/MonoGame.Framework/Matrix.cs
from fna-mghistory.
I guess all that's left is for me to take:
GameComponentCollection.cs
GameComponentCollectionEventArgs.cs
GameComponent.cs
GamePlatform.cs
GameServiceContainer.cs
GameTime.cs
GameWindow.cs
GraphicsDeviceInformation.cs
GraphicsDeviceManager.cs
I'll see if I can't knock these out this morning before taking the son to see the new Captain America movie.
Edit: missed the GameComponent files at first due to ls sorting != MonoDevelop sorting.
from fna-mghistory.
Well those went pretty quick. Once EHCP finishes what he has in progress, the root will be done!
from fna-mghistory.
We're down to the very last file in our first pass of style cleanup, and hilariously enough, it's Game.cs
. Yup!
Joe's done the pass, but I've not reviewed it yet: https://github.com/flibitijibibo/MonoGame/pull/192/files#diff-7
Will try to review this today/tomorrow, but if you want to take a look at it yourself, feel free to do so. Like Matrix, it's kind of a massive file for lots of nasty reasons (many of which I intend to fix as soon as we're done with this task).
We're so close to being done with the first wave of FNA transition tasks!
from fna-mghistory.
We finished the last task! While the code is certainly not perfect, it should be much easier to understand and edit now.
I will be adding the second wave of tasks this week.
from fna-mghistory.
Related Issues (20)
- shader normalmap not work HOT 3
- Can't run on machine without audio device HOT 9
- [OpenGL] VMware/VBox Support? HOT 7
- [MojoShader] MOJOSHADER_glSetVertexAttribDivisor causes 'System.AccessViolationException' on some computers HOT 3
- [Keyboard] Proposal for Keyboard.GetLayoutEXT() HOT 1
- Microsoft.Xna.Framework.Input.GamePad.INTERNAL_AddInstance throws "An element with the same key already exists in the dictionary" HOT 2
- Triangle color is wrong with fairly simple shader + access violation exception HOT 7
- Unable to load a texture (.PNG) from stream HOT 9
- Initialization order mishap HOT 3
- GraphicsDeviceManager never set in Game HOT 1
- GL Object Disposal Wrappers are not thread-safe HOT 3
- DynamicSoundEffectInstance behavior incompatible with XNA4 HOT 8
- OpenGL 3.2+ Core Profile support HOT 4
- Starting game in full screen bug HOT 8
- Null reference when disposing sound effect after checking sound device exists HOT 5
- [QUESTIONS] learning, using FNA HOT 3
- More spec-compliant Touch Support HOT 34
- FNA Binary Release HOT 1
- RasterizerState.MultiSampleAntiAlias not implemented HOT 8
- Set Render Target to Another Window HOT 2
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 fna-mghistory.