/opengles/src/Utils.h

http://ftk.googlecode.com/ · C Header · 57 lines · 13 code · 9 blank · 35 comment · 0 complexity · 953f1190ac3685299ee1b41aecdfcc96 MD5 · raw file

  1. #ifndef EGL_UTILS_H
  2. #define EGL_UTILS_H 1
  3. // ==========================================================================
  4. //
  5. // Utils.h Helper functions for 3D Rendering Library
  6. //
  7. // --------------------------------------------------------------------------
  8. //
  9. // 09-14-2004 Hans-Martin Will initial version
  10. //
  11. // --------------------------------------------------------------------------
  12. //
  13. // Copyright (c) 2004, Hans-Martin Will. All rights reserved.
  14. //
  15. // Redistribution and use in source and binary forms, with or without
  16. // modification, are permitted provided that the following conditions are
  17. // met:
  18. //
  19. // * Redistributions of source code must retain the above copyright
  20. // notice, this list of conditions and the following disclaimer.
  21. // * Redistributions in binary form must reproduce the above copyright
  22. // notice, this list of conditions and the following disclaimer in the
  23. // documentation and/or other materials provided with the distribution.
  24. //
  25. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  26. // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  27. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  28. // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  29. // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
  30. // OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  31. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  32. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  33. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  34. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  35. // THE POSSIBILITY OF SUCH DAMAGE.
  36. //
  37. // ==========================================================================
  38. #include "OGLES.h"
  39. #include "GLES/gl.h"
  40. #include "FractionalColor.h"
  41. #include "linalg.h"
  42. namespace EGL {
  43. void CopyVector(const Vec3D & vector, GLfixed *params);
  44. void CopyVector(const Vec4D & vector, GLfixed *params);
  45. void CopyColor(const FractionalColor & color, GLfixed *params);
  46. void CopyMatrix(const Matrix4x4& matrix, GLfixed *params);
  47. }
  48. #endif //ndef EGL_UTILS_H