#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <math.h>
#include <iostream>
using namespace UT::Literal;
namespace HDK_Sample {
#if !defined(WIN32)
template <VEX_Precision PREC>
static void
drand_Evaluate(int, void *argv[], void *)
{
}
#endif
template <VEX_Precision PREC>
static void
time_Evaluate(int, void *argv[], void *)
{
}
template <VEX_Precision PREC>
class gamma_Table
{
public:
gamma_Table()
{
}
~gamma_Table()
{
}
};
template <VEX_Precision PREC> static void *
gamma_Init()
{
static gamma_Table<PREC> theTable;
return &theTable;
}
template <VEX_Precision PREC> static void
gamma_Cleanup(
void *
data)
{
}
template <VEX_Precision PREC>
static void
gamma_Evaluate(int, void *argv[], void *data)
{
gamma_Table<VEX_32> *
table = (gamma_Table<VEX_32> *)data;
*result = table->evaluate(*value);
}
template <VEX_Precision PREC>
static void
{
for (int i = 0; i < argc; i++)
{
if (argv[i].myArray)
continue;
switch (argv[i].myType)
{
std::cout <<
" int " << *(
const VEXint<PREC> *)argv[i].myArg <<
'\n';
break;
std::cout <<
" float " << *(
const VEXfloat<PREC> *)argv[i].myArg <<
'\n';
break;
std::cout << " string " << *(const char *)argv[i].myArg << '\n';
break;
default:
break;
}
}
}
}
using namespace HDK_Sample;
void
{
#if !defined(WIN32)
drand_Evaluate<VEX_32>,
drand_Evaluate<VEX_64>,
nullptr,nullptr,
nullptr,nullptr);
#endif
time_Evaluate<VEX_32>,
time_Evaluate<VEX_64>,
nullptr,nullptr,
nullptr,nullptr,
gamma_Evaluate<VEX_32>,
gamma_Evaluate<VEX_64>,
gamma_Init<VEX_32>,
gamma_Init<VEX_64>,
gamma_Cleanup<VEX_32>,
gamma_Cleanup<VEX_64>);
myprint_Evaluate<VEX_32>,
myprint_Evaluate<VEX_64>,
nullptr,nullptr,
nullptr,nullptr,
}