Show Posts

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.


Messages - RetroX

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. :/

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 worst ;)
Good 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

382
Issues Help Desk / Re: GL Lighting
« on: July 23, 2010, 09:06:50 PM »
Quote
Ism, I hate your method worse. :/
At least my method has some logic behind it.
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.

383
Proposals / Re: Code Formatting
« on: July 23, 2010, 03:36:04 PM »
And other tedious things, such as spaces between operators and if() vs. if ()

Also this:
Code: [Select]
if(stuff)
Code: [Select]
if (stuff)
Code: [Select]
if( stuff )
Code: [Select]
if ( stuff )
And this:
Code: [Select]
int main()
Code: [Select]
int main(void)

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? :/

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:
Code: [Select]
while(doSomething())
  {
  doSomethingElse();
  }
is prettier than this:
Code: [Select]
while(doSomething())
{
  doSomethingElse();
}
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. >_>

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.

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++.

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?

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.