No Description

MyObjects.h 537B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // MyObjects.h
  3. // ogamalBreakout
  4. //
  5. // Created by Osama Attia on 9/23/14.
  6. // ogamal@iastate.edu
  7. //
  8. #ifndef ogamalBreakout_MyObjects_h
  9. #define ogamalBreakout_MyObjects_h
  10. // Ball
  11. struct Ball {
  12. GLfloat xpos, ypos;
  13. GLfloat xvel, yvel;
  14. GLfloat radius;
  15. GLfloat r, g, b;
  16. };
  17. // Paddle
  18. struct Paddle {
  19. GLfloat xpos, ypos;
  20. GLfloat width, height;
  21. GLfloat r, g, b;
  22. };
  23. // Brick
  24. struct Brick {
  25. GLfloat xpos, ypos;
  26. GLfloat width, height;
  27. GLfloat r, g, b;
  28. GLint health;
  29. GLint value;
  30. };
  31. #endif