Search:

Type: Posts; User: Josh@Dreamland

Search: Search took 0.01 seconds.

  1. Thread: fmod()

    by Josh@Dreamland
    Replies
    13
    Views
    74,402

    O___o Those guys certainly put a lot of work...

    O___o

    Those guys certainly put a lot of work into what they do.

    Hm. I think I'm comfortable with my one liner, if they're about the same speed. It's the only math function I actually need,...
  2. Thread: fmod()

    by Josh@Dreamland
    Replies
    13
    Views
    74,402

    Yep. So I guess in the end all that really...

    Yep. So I guess in the end all that really matters that it's working, and it's working pretty fast.

    Though I can't see much difference between compilers, the code is actually for a large...
  3. Thread: fmod()

    by Josh@Dreamland
    Replies
    13
    Views
    74,402

    Either way, gentlemen (!!) Putting the C Bible...

    Either way, gentlemen (!!)

    Putting the C Bible down, and looking at what I'm actually adding to the struct (which I'm actually coding in C++ anyway), this is what I'm leaving it as:


    double ...
  4. Thread: fmod()

    by Josh@Dreamland
    Replies
    13
    Views
    74,402

    Hahaha. My syntax derivatives often generate that...

    Hahaha. My syntax derivatives often generate that kind of reply.

    And also, I can tell you and show you what's gonna happen. The memory is already allocated for that double, and thanks to the left...
  5. Thread: fmod()

    by Josh@Dreamland
    Replies
    13
    Views
    74,402

    Ah. I set the optimization as high as it would...

    Ah. I set the optimization as high as it would go.

    Mine: 0.000000 ms
    STDC: 16.000000 ms

    So I guess that is likely a cause.

    Either way, as common sense dictates, I'm going to stick with my...
  6. Thread: fmod()

    by Josh@Dreamland
    Replies
    13
    Views
    74,402

    fmod()

    Well, I was working on a structure for my own data type, when it came time to do modulus.

    I was talking to a friend of mine, who recommended fmod() from math.h, but he told me it was painfully...
  7. Replies
    4
    Views
    2,294

    I suppose. But another game on that site, hit the...

    I suppose. But another game on that site, hit the monkey, I think it was. You have to move the mouse within the window to hit it. Having outside callback would enable better tracking altogether.

    I...
  8. Replies
    4
    Views
    2,294

    I'll show you a game I ran into long ago where...

    I'll show you a game I ran into long ago where complete tracking of this may have been for the best. To cheat it, hit control-alt-delete, drag the window to where the mouse hovers over the start...
  9. Where are you getting the list you need to load...

    Where are you getting the list you need to load into memory? OR When are you adding to the list?

    You could create a function that mallocs a new array of the first array's size +1, then copy the...
  10. Replies
    4
    Views
    2,294

    Running into trouble with GLUT.

    So I've been using GLUT as my window power for OpenGL, in some huge project I'm working on.

    Two problems I have run into thus far:

    1) GLUT doesn't give mouse motion callback outside the...
Results 1 to 10 of 10