After getting the X-th virus on my computer (with Windows XP Professional), I decided to start using Ubuntu 11.04. I like it pretty much, although I’m still a bit irritated by the sudo-stuff.
I spent a lot of time trying to figure out how to install my C …
I recently found a tutorial on back-face culling. It means telling
OpenGL not to draw invisible faces (faces on the back side ;) ) of a
mesh, which does speed up the rendering a lot.
I was looking for something like this after I increased the height of
the world in Mineshooter …
Okay, here is some code for mouselook with SDL…
struct {
int x, y;
//In this case: the position where the mouse is held at
bool trap; //flag for holding mouse at one place
} mouse;
void MouseMotion(){
/* Set x and y to the current mouse position */
int x, y;
SDL_GetMouseState(&x …