Search:

Type: Posts; User: Charobnjak

Search: Search took 0.00 seconds.

  1. Replies
    13
    Views
    6,783

    #include #include ...

    #include <stdio.h>
    #include <sys/time.h>

    longlong getTime(){
    struct timeval tv;
    gettimeofday(&tv, NULL);
    return tv.tv_sec*1000000l+tv.tv_usec;
    }
    long getTimeDiff(long long...
  2. Replies
    13
    Views
    6,783

    Ok, I get that, but it still doesn't help with my...

    Ok, I get that, but it still doesn't help with my problem...
  3. Replies
    13
    Views
    6,783

    I think that regular int is 32bit and long is 64....

    I think that regular int is 32bit and long is 64. And I tried with long long but it doesn't change anything.
  4. Replies
    13
    Views
    6,783

    Problem with gettimeofday()

    Hi,

    I have a problem with measuring time in C. I needed the precision to the millisecond or nanosecond so I used the function gettimeofday() from sys/time.h. The code is following:


    #include...
  5. Replies
    4
    Views
    2,470

    Thanks for the advices :) I really appreciate...

    Thanks for the advices :)

    I really appreciate it since I just recently started learning openGL, even tho I have been learning C for quite some time now, I haven't done any major projects or...
  6. Replies
    4
    Views
    2,470

    Thanks, that did the work :) Also, a reply to...

    Thanks, that did the work :)

    Also, a reply to your tip: no, it's not my first GL program, a have been learning it for some time and I though to experiment a little before I continue the tutorial....
  7. Replies
    4
    Views
    2,470

    OpenGL problem

    I have a problem with an openGL app I wrote. The window doesn't update/refresh, I don't know if it's just my comp acting silly or something is wrong with my code, it does update when I minimize and...
  8. Replies
    7
    Views
    1,821

    I think you misunderstood me, but so did I...

    I think you misunderstood me, but so did I misunderstood the tutorial. What I meant was the format into what you load the image( I mentioned the class). I misunderstood the tutorial and though that...
  9. Replies
    7
    Views
    1,821

    Thanks a lot for the reply. Sorry but I will have...

    Thanks a lot for the reply. Sorry but I will have to bother you with another question: I have started learning OpenGL on OpenGL Video Tutorial - Home but I came to the section for textures and there...
  10. Replies
    7
    Views
    1,821

    OpenGl and C

    I'm not really familiar with OpenGL but I m curious if OpenGl can be used with only C, without C++?
Results 1 to 10 of 10