00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef OST_GFX_GL_HELPER_HH
00024 #define OST_GFX_GL_HELPER_HH
00025
00026
00027
00028
00029
00030 #ifdef OST_GFX_GLEXT_INCLUDE_HH
00031 #error gl_helper.hh must be included before any occurence of glext_include.hh
00032 #endif
00033 #ifdef OST_GFX_GL_INCLUDE_HH
00034 #error gl_helper.hh must be included before any occurence of gl_include.hh
00035 #endif
00036 #include <ost/geom/vec3.hh>
00037
00038 #include "glext_include.hh"
00039 #include "gl_include.hh"
00040
00041 inline void glVertex3v(double* v){
00042 glVertex3dv(v);
00043 }
00044
00045
00046
00047 inline void glVertex3v(const double* v){
00048 glVertex3dv(v);
00049 }
00050
00051
00052
00053 inline void glVertex3v(float* v){
00054 glVertex3fv(v);
00055 }
00056
00057
00058 inline void glVertex3v(const float* v){
00059 glVertex3fv(v);
00060 }
00061
00062 inline void glVertex3(const geom::Vec3& v)
00063 {
00064 glVertex3v(&v[0]);
00065 }
00066
00067 inline void glMultMatrix(float* v) {
00068 glMultMatrixf(v);
00069 }
00070
00071 inline void glMultMatrix(double* v) {
00072 glMultMatrixd(v);
00073 }
00074
00075 inline void glNormal3v(double* v){
00076 glNormal3dv(v);
00077 }
00078
00079 inline void glNormal3v(float* v){
00080 glNormal3fv(v);
00081 }
00082
00083 inline void glTexCoord2v(float* v){
00084 glTexCoord2fv(v);
00085 }
00086
00087 inline void glTexCoord2v(double* v){
00088 glTexCoord2dv(v);
00089 }
00090
00091
00092 inline void glGetv(GLenum pname, double* v){
00093 glGetDoublev(pname, v);
00094 }
00095
00096 inline void glGetv(GLenum pname, float* v){
00097 glGetFloatv(pname, v);
00098 }
00099
00100
00101 inline void glLoadMatrix(float* arr) {
00102 glLoadMatrixf(arr);
00103 }
00104
00105 inline void glLoadMatrix(double* arr) {
00106 glLoadMatrixd(arr);
00107 }
00108
00109
00110 #endif