Jump to content

  • Log In with Google      Sign In   
  • Create Account

santa01

Member Since 16 May 2012
Offline Last Active Oct 25 2013 02:00 AM

Posts I've Made

In Topic: how is the depth range changed between NDC and depth buffer

31 May 2013 - 09:18 AM

So where did the change happened ?

When the fragment processing (and sorting with depth test enabled) happens. see glDepthRange().


In Topic: Close file sooner or later?

22 February 2013 - 04:52 AM

I'd recommend sooner, Damian Conway - Perl Best Practices also recommend such approach, I guess its valid for other languages too. The only option for not releasing any resource (after its not required any more) is when the release process itself consumes much resources. For instance any garbage collector delays memory releasing because it could be cpu and time consuming.

 

 

What if the file is not closed until the very end?

 

for example any unhanded exception will probably halt your program and any buffered data won't be flushed to a file.


In Topic: SDL + OpenGL V-Sync

06 February 2013 - 11:49 AM

Do you suggest using SDL 1.3.0?

 

It will be a good start smile.png As proanim@ mentioned its now 2.0 and should be cloned/compiled from mercurial repo.


In Topic: SDL + OpenGL V-Sync

06 February 2013 - 06:17 AM

glXSwapIntervalEXT is not crossplatform, for win you should call wglSwapIntervalEXT. Also, if I am not mistaken, for glXSwapIntervalEXT you should link against libX11 as -lX11

 

Also you can look at this post: http://forums.libsdl.org/viewtopic.php?p=24220&sid=a85c51359b9040234fece5114e1d5787#24220


In Topic: GLUT or native window?

06 February 2013 - 06:06 AM

Hi, i'm starting this topic to ask what is best GLUT or native window to use with OpenGL?

 

GLUT. Its easier, its cross platform. Believe me, if WinAPI is something you can handle with MSDN opened, X11 is hell.


PARTNERS