defines.h

Go to the documentation of this file.
00001 /* --
00002 OpenFX version 2.x - Modelling, Animation and Rendering Package
00003 -- */
00004 
00005 /* file DEFINES.H   include with defines for external texture functions */
00006 /* location:        in folder TEXTURES
00007 
00008 /*****************************************************************\
00009   This file contains defines that enable meaningful local names to
00010   be used when calling functions in the Renderers external shader
00011   structure. Note the use of Windows Local memory allocation.
00012   Wave_Sources is an array of 10 vectors for ripple like effects.
00013 
00014   It is also very important that all "double" are equated to "float"
00015   the Renderer uses "float" type real numbers in all calcuations.
00016   The Modeler and Animator use true "double" real numbers.
00017 \*****************************************************************/
00018 
00019 #define double float         /* The Renderer uses FLOAT real numbers */
00020 typedef double vector[3];
00021 
00022 #include "../common/mem.h"     /* dynamic mem allocation */
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)

Generated on Sun Apr 27 14:20:14 2014 for OpenFX by  doxygen 1.5.6