Search:

Type: Posts; User: Ayreon

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    6,679

    Oh dear... That's exactly it, I was looking in...

    Oh dear... That's exactly it, I was looking in the wrong function!!
    My apologies!

    I have these same variables in a similar function below this function, after fixing the first warning I forgot...
  2. Replies
    3
    Views
    6,679

    warning: variable set but not used

    I get the following warnings during compile:
    jacobian.c: In function ‘dF2_di’:
    jacobian.c:71:25: warning: variable ‘Dr2’ set but not used [-Wunused-but-set-variable]
    jacobian.c:71:14: warning:...
  3. Replies
    27
    Views
    6,709

    @Laserlight: I tried this and it seems to work. I...

    @Laserlight: I tried this and it seems to work. I just got in trouble now with one of the variables which is an array.
    @tabstop: Tried this too, but must have had problems somewhere else for it did...
  4. Replies
    27
    Views
    6,709

    So for example I would need a function that...

    So for example I would need a function that creates M, which is m1+m2, and also returns it. But then every time I call this function in stead of calling a global variable M, it would have to...
  5. Replies
    27
    Views
    6,709

    Then where does this value go, so that all other...

    Then where does this value go, so that all other files can see it?
  6. Replies
    27
    Views
    6,709

    Wouldn't that mean that every time a function in...

    Wouldn't that mean that every time a function in one of the other .c files uses one of the variables, that it needs to call a function that creates this variable? That's exactly what I am trying to...
  7. Replies
    27
    Views
    6,709

    Ok, now i'm getting a multiple definition error....

    Ok, now i'm getting a multiple definition error. This might be due to the inclusion of the .h files in several .c files, but if I don't do that it tells me the variables I want to use are not...
  8. Replies
    27
    Views
    6,709

    In my many attempts to fix my code I might have...

    In my many attempts to fix my code I might have tried this already, but I was also using static and extern all over the place.
    Now all I have in my header file is (just an example):
    double x;

    in...
  9. Replies
    27
    Views
    6,709

    Control over variables inside a header file

    My code is spread out over several .c files and their respective header files. I have one header file (without a .c file), which contains the definitions of some variables I wish to use in all other...
  10. Replies
    11
    Views
    5,343

    You know, i did have a feeling I was making...

    You know, i did have a feeling I was making things too complicated like this, but I didn't know another method. But I'll think about vector projection in the form of dot products and such, that might...
  11. Replies
    11
    Views
    5,343

    Thanks for that. That might help :).

    Thanks for that. That might help :).
  12. Replies
    11
    Views
    5,343

    The ball is supposed to bounce of this...

    The ball is supposed to bounce of this line/surface. What it does, is slide along it, as if this surface attracts the ball. But, when the ball has a certain velocity, and I give the ball a little...
  13. Replies
    11
    Views
    5,343

    This: (12.0+tan(alpha)*(xpos-33.0)) +...

    This:
    (12.0+tan(alpha)*(xpos-33.0)) + R_ball/cos(alpha)
    Is a line of an inclined surface.

    If the y position of the ball is < or = this line then:
    add this to the x velocity component:...
  14. Replies
    11
    Views
    5,343

    I'm sorry, I didn't think of that. I thought you...

    I'm sorry, I didn't think of that. I thought you could just assume all those angles and stuf are correct.
    I think the problem lies in something else than the mathematics, since it will work when the...
  15. Replies
    11
    Views
    5,343

    Slope collision and openGL

    I've got a pinball machine (a very lame one, but the point is to make it work as an assignment). I made the collisions with the sides and the top arch work, but i'm having trouble with two slopes at...
  16. Meanwhile I got around the flashing screen...

    Meanwhile I got around the flashing screen problem by going into 'game mode'. This mode puts it in full screen, and it works.
    It has worked for quite some time by now, but i thought i'd let people...
  17. This is the drawing code: void progDisplay...

    This is the drawing code:



    void progDisplay (void)
    {

    /* Clear the redering window */
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  18. Actually I'm not sure what I'm doing. I copied...

    Actually I'm not sure what I'm doing. I copied the buffer method from an example program. But the only thing different in my program is the stuff I draw (Just a couple of lines).
  19. OpenGL screen still flashes with double buffer

    I'm trying to draw a moving object in an openGL window. The problem is that even without anything moving yet, the screen flashes like crazy and it uses my cpu for about 95%. I already used double...
  20. Replies
    3
    Views
    3,493

    Thanks vart, that was the problem :). Needed a...

    Thanks vart, that was the problem :). Needed a fresh pair of eyes apparently.
  21. Replies
    3
    Views
    3,493

    My loop within loop won't work

    I made a loop which reads from some lines a file.
    It works fine but now I want the loop within another loop.

    Once I remove the now commented loop in this code, it doen't show the printf anymore:...
  22. Replies
    87
    Views
    56,436

    No it compiled fine, that's not why I asked. I'm...

    No it compiled fine, that's not why I asked. I'm just used to defining functions before the main. This may actually be a nice way to put all the function details behind the program so that I won't...
  23. Replies
    87
    Views
    56,436

    Thanks! Why is Gotoxy() not defined in one...

    Thanks!



    Why is Gotoxy() not defined in one piece above the main, why this method?



    Yeah, those are really interesting! Though red ones are the coolest.... ;)
  24. Replies
    87
    Views
    56,436

    Ah, you know it too :p. Thanks for the struct...

    Ah, you know it too :p.

    Thanks for the struct tip. I'll try using that.
    I hope I can make that SetConsoleCursorPosition work. It's not really an important thing for my program, but it's fun :)....
  25. Replies
    18
    Views
    4,169

    I'm not sure I understand what you mean by that,...

    I'm not sure I understand what you mean by that, I'm not marrying C :). I am open to suggestions for using other languages(The one you just mentioned looks handy), but not right now, because I've...
Results 1 to 25 of 79
Page 1 of 4 1 2 3 4