2 minute read.
A more recent vim feature is :term, the ability to have a terminal
inside vim. This super useful feature now allows you to switch between
your code and asynchroneously run compile commands very easily.
Since I use Visual C++ on Windows, I need to run vcvarsall.bat in
my console …
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 …