canvas.h 583 B

12345678910111213141516171819202122
  1. #ifndef CANVAS_H
  2. #define CANVAS_H
  3. #include "SDL.h"
  4. struct Canvas{
  5. Canvas(int w, int h, int px, int pi, Uint32 * buf1, float * buf2)
  6. : mWidth(w), mHeight(h), mPixelCount(px),
  7. mPitch(pi),mBuffer(buf1), mDBuffer(buf2)
  8. {}
  9. int mWidth;
  10. int mHeight;
  11. int mPixelCount;
  12. int mPitch;
  13. //Represents the pixel data buffer
  14. Uint32 *mBuffer; //FIX THIS AT SOME POINT
  15. //Represents the depth data buffer
  16. float *mDBuffer;
  17. };
  18. #endif