by admin

Disabling vsync in OpenGL using GLX

November 10, 2014 in C, Code Snippets, gpu, OpenGL, Programming, Source Code, Tips & Tricks by admin

openglQuick code snippet about disabling VSync with GLX, using glXSwapIntervalEXT, glXSwapIntervalMESA or glXSwapIntervalSGI  functions.

For more information ,follow this link.
Read the rest of this entry →

by admin

Pre-defined Compiler Macros

September 20, 2014 in C, C++, Programming, Source Code, Tips & Tricks by admin

c++C and C++ compilers automatically define certain macros that can be used to check for compiler or operating system features. This is useful when writing portable software.

This link goes to a wiki page where subpages pages  list various pre-defined compiler macros that can be used to identify standards, compilers, operating systems, hardware architectures, and even basic run-time libraries at compile-time.

 

Skip to toolbar