#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...
Type: Posts; User: Charobnjak
#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...
Ok, I get that, but it still doesn't help with my problem...
I think that regular int is 32bit and long is 64. And I tried with long long but it doesn't change anything.
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...
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...
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....
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...
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...
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...
I'm not really familiar with OpenGL but I m curious if OpenGl can be used with only C, without C++?