This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 »
376
Issues Help Desk / Re: screw angle()
« on: July 24, 2010, 06:50:03 pm »
So, in other words, add the range on after performing that calculation if it's negative?
That won't work. :/
That won't work. :/
377
Issues Help Desk / Re: GL Lighting
« on: July 24, 2010, 06:48:31 pm »And then of course... some monitors can rotate, if the worst comes to the worstGood luck rotating my bigass CRT and getting anything out of that.
378
Issues Help Desk / screw angle()
« on: July 24, 2010, 01:21:49 pm »Code: [Select]
inline int makerange(double value, double min, double max) { return fmod(value,abs(max-min))+std::min(min,max); }
How can I make this work for negative numbers without using while?
379
Issues Help Desk / Re: GL Lighting
« on: July 24, 2010, 12:04:19 pm »
Well, my screen is 1200 pixels high, and I can scroll six lines at once. So, it doesn't really matter for me.
380
Issues Help Desk / Re: GL Lighting
« on: July 24, 2010, 09:33:59 am »The braces are aligned.if() {
}
vs.
if()
{
}
Symmetry.
381
Proposals / Re: Code Formatting
« on: July 23, 2010, 09:08:43 pm »
spacing around if/while is good because they're not functions
most people space && and || no matter what but I don't space anything else; that should be an option as well
most people space && and || no matter what but I don't space anything else; that should be an option as well
382
Issues Help Desk / Re: GL Lighting
« on: July 23, 2010, 09:06:50 pm »All of the methods have logic except for the double indent. It's just that I find yours annoying because it has no symmetry on the braces.QuoteIsm, I hate your method worse. :/At least my method has some logic behind it.
384
Issues Help Desk / Re: GL Lighting
« on: July 23, 2010, 02:30:49 pm »
Ism, I hate your method worse. :/
Although what's the worst is 8-space tabs.
And now that we're talking about programming styles, is there anyone who has the slightest idea about what the problem that I'm having is? :/
Although what's the worst is 8-space tabs.
And now that we're talking about programming styles, is there anyone who has the slightest idea about what the problem that I'm having is? :/
385
Issues Help Desk / Re: GL Lighting
« on: July 22, 2010, 12:41:16 pm »I'm fairly sure you're the only person in the world who thinks that this:Almost every programmer that I know codes like the first one except for the ones here. Although, I kind of agree with you, I've been stuck like this for a long time. >_>Code: [Select]while(doSomething())
is prettier than this:
{
doSomethingElse();
}Code: [Select]while(doSomething())
{
doSomethingElse();
}
386
Issues Help Desk / Re: GL Lighting
« on: July 20, 2010, 09:54:51 am »
I updated the file.
I made a header with typedefs for SFML classes for my ease of use. I forgot that I included them, and I updated the file to take them out.
.cc and .hh are completely standard C++ file extensions. .h isn't even a C++ extension; .hpp is. .c and .h can be used for C++, but it's not common.
And score_under, how is the indentation messed up? It's two spaces, and I specifically checked for tabs to make sure that it would remain constant.
I made a header with typedefs for SFML classes for my ease of use. I forgot that I included them, and I updated the file to take them out.
.cc and .hh are completely standard C++ file extensions. .h isn't even a C++ extension; .hpp is. .c and .h can be used for C++, but it's not common.
And score_under, how is the indentation messed up? It's two spaces, and I specifically checked for tabs to make sure that it would remain constant.
387
Issues Help Desk / Re: GL Lighting
« on: July 19, 2010, 08:27:38 pm »
I forgot that I used my header for it. :/
It should compile, now.
And .cc is C++.
It should compile, now.
And .cc is C++.
388
Issues Help Desk / GL Lighting
« on: July 19, 2010, 07:35:57 pm »
I could spend several hours looking across the internet to find an answer to my question, but maybe someone here knows an answer.
http://dl.dropbox.com/u/6125077/other/gltest.tar.gz
Why isn't the lighting working?
Is it SFML, or is my code wrong?
http://dl.dropbox.com/u/6125077/other/gltest.tar.gz
Why isn't the lighting working?
Is it SFML, or is my code wrong?
389
Off-Topic / Re: I made a rectangle that MOVES!
« on: July 16, 2010, 05:46:06 pm »
I prefer a reference that's organised into a tutorial. I can always look up a function list. :/
390
General ENIGMA / Re: Pixel-Perfect Collision by default ? Box2D
« on: July 16, 2010, 08:08:25 am »What is the status of collisions? Luda never posts.I believe that he decided to stop working on colligma.