Rendering Text!

I some­how feel hap­py about fi­nal­ly be­ing able to ren­der Text ;)image0

I’m us­ing the Freetype Li­brary and OpenGL. I thought about us­ing SDL TTF, but some­how I end­ed up de­cid­ing on this :)

This post was im …

Now using Ubuntu!

Af­ter get­ting the X-th virus on my com­put­er (with Win­dows XP Pro­fes­sion­al), I de­cid­ed to start us­ing Ubun­tu 11.04. I like it pret­ty much, al­though I’m still a bit ir­ri­tat­ed by …

back-face culling

I re­cent­ly found a tu­to­ri­al on back-face culling. It means telling OpenGL not to draw in­vis­i­ble faces (faces on the back side ;) ) of a mesh, which does speed up the ren­der­ing a lot.

I was look­ing for some­thing …

Mouselook and SDL - Code

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 …
« newer articles | page 25 | older articles »