PageRenderTime 317ms CodeModel.GetById 100ms app.highlight 3ms RepoModel.GetById 124ms app.codeStats 0ms

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