Texture demo in C