1 #include "..\include\raMain.h" 7 srand((
unsigned int)time(NULL));
9 m_pFeaturePointsVariable = NULL;
10 for(
int i = 0; i < 3 * nPoints; i++)
13 m_pFeaturePoints[i] = 0;
18 m_pCoefficientsVariable = NULL;
19 m_Coefficients[3] = 0;
20 m_Coefficients[2] = 0;
21 m_Coefficients[1] = 1;
22 m_Coefficients[0] = -1;
29 GetVariableByName(
"g_FeaturePoints" )->AsVector();
30 m_pFeaturePointsVariable->SetFloatVectorArray(m_pFeaturePoints, 0, nPoints);
33 GetVariableByName(
"g_Coefficients")->AsScalar();
40 m_pCoefficientsVariable->SetFloatArray(m_Coefficients, 0, 4);
47 m_Coefficients[1] =
raGetRandFloat(-m_Coefficients[3]-m_Coefficients[2], 1.0f);
48 m_Coefficients[0] =
raGetRandFloat(-m_Coefficients[3]-m_Coefficients[2]-m_Coefficients[1], 1.0f);
ID3DX11Effect * m_pEffect
RAPI float raGetRandFloat(float min, float max)
raCMaterial(raSmartPointer< raDirectX > dx)