00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #define double float
00020 typedef double vector[3];
00021
00022 #include "../common/mem.h"
00023
00024 #define nNoise(x,y,z,r) (lpEVI->fp_sNoise(x,y,z,r))
00025 #define sTurbulence(x,y,z,r) (lpEVI->fp_sTurbulence(x,y,z,r))
00026 #define Cycloidal(v,r) (lpEVI->fp_Cycloidal(v,r))
00027 #define vNoise(v,x,y,z) (lpEVI->fp_vNoise(v,x,y,z))
00028 #define vTurbulence(r,x,y,z) (lpEVI->fp_vTurbulence(r,x,y,z))
00029 #define normalize(v) (lpEVI->fp_normalize(v))
00030 #define Wave_Sources (lpEVI->fp_Wave_Sources)
00031 #define UseSingleShaderProgram(id) (lpEVI->fp_UseSingleShaderProgram(id))
00032 #define LoadAndCompileShader(n) (lpEVI->fp_LoadAndCompileShader(n))
00033 #define UnloadCompiledShader(n) (lpEVI->fp_UnloadCompiledShader(n))
00034 #define SetUniformInteger(i,n,v) (lpEVI->fp_SetUniformInteger(i,n,v))
00035 #define SetUniformVariable(i,n,v) (lpEVI->fp_SetUniformVariable(i,n,v))
00036 #define SetUniformVector(i,n,a,b,c) (lpEVI->fp_SetUniformVector(i,n,a,b,c))
00037 #define SetUniformVector2(i,n,a,b) (lpEVI->fp_SetUniformVector2(i,n,a,b))
00038 #define SetUniformMatrix3(i,n,m) (lpEVI->fp_SetUniformMatrix3(i,n,m))
00039 #define SetUniformMatrix4(i,n,m) (lpEVI->fp_SetUniformMatrix4(i,n,m))
00040 #define SetAttributeInteger(i,n,v) (lpEVI->fp_SetAttributeInteger(i,n,v))
00041 #define SetAttributeVariable(i,n,v) (lpEVI->fp_SetAttributeVariable(i,n,v))
00042 #define SetAttributeVector(i,n,a,b,c) (lpEVI->fp_SetAttributeVector(i,n,a,b,c))
00043 #define SetAttributeVectorID(i,l,a,b,c) (lpEVI->fp_SetAttributeVectorID(i,l,a,b,c))
00044 #define BindAttributeVector(i,n,l) (lpEVI->fp_BindAttributeVector(i,n,l))
00045 #define GetAttibuteLocation(i,n) (lpEVI->fp_GetAttibuteLocation(i,n))
00046
00047 #define DrawShadedPolygons(k,s,p,a,Nf,Fp,Nv,Vp) (lpEVI->fp_DrawShaderPolygons(k,s,p,a,Nf,Fp,Nv,Vp))
00048
00049 #define tAxis_n (*(lpEVI->fp_axis_n))
00050 #define tAxis_o (*(lpEVI->fp_axis_o))
00051 #define tAxis_u (*(lpEVI->fp_axis_u))
00052 #define tAxis_v (*(lpEVI->fp_axis_v))
00053 #define tAxis_unorm (*(lpEVI->fp_axis_unorm))
00054 #define tAxis_vnorm (*(lpEVI->fp_axis_vnorm))
00055 #define tAxis_u_length (*(lpEVI->u_length))
00056 #define tAxis_v_length (*(lpEVI->v_length))
00057 #define tAxis_tr (lpEVI->tr) // pointer to 4 x 4 arrays
00058 #define tAxis_itr (lpEVI->itr)
00059 #define tGLshaderID (lpEVI->GLshaderID)
00060 #define tmatpass (lpEVI->fp_matpass)
00061 #define tpass (lpEVI->fp_pass)
00062 #define tprogID (lpEVI->fp_progID)
00063 #define tattrloc (lpEVI->fp_attrloc)
00064 #define tNface (lpEVI->fp_Nface)
00065 #define tMainFp (lpEVI->fp_MainFp)
00066 #define tNvert (lpEVI->fp_Nvert)
00067 #define tMainVp (lpEVI->fp_MainVp)
00068 #define tFullSat (lpEVI->fp_FullSat)