Noise

Typedefs

typedef struct SDL_Renderer SDL_Renderer
typedef struct SDL_Texture SDL_Texture
namespace tnt
namespace pcg

Functions

SDL_Texture *staticNoise(SDL_Renderer *ren, int w, int h)

Create a texture with some random noise on it.

Parameters
  • ren: The renderer where the texture should be drawed.

  • w: The width of the texture.

  • h: The height of the texture.