A heap-allocated texture class for a console renderer
getHeight and getWidth should be const.

int getWidth() const { return width; }
int getHeight() const { return height; }


Your destructor does not properly delete the pixels pointer.  Since you allocate it with new[] you need to use delete[].

delete [] pixels;


You're storing your textures in column-major order.  Depending on how you access them, this can cause performance issues with caching.  For example, in the constructor, when you copy in the initial texture values you jump thru memory (one byte every width bytes) rather than reading it sequentially (where x would be the inner loop).

Then there's the inevitable question of why you're using manual memory management, rather than using vector.