#include "DisplayPatch.h"
#include "DisplayTexture.h"
#include "DisplayMaterial.h"
#include "DisplayLink.h"
#include "DisplayShape.h"
{
DisplayString(
"Patch Name: ", (
char *) pNode->
GetName());
DisplayMetaDataConnections(lPatch);
const char* lSurfaceModes[] = { "Raw", "Low No Normals", "Low", "High No Normals", "High" };
DisplayString(
" Surface Mode: ", lSurfaceModes[lPatch->
GetSurfaceMode()]);
for (i = 0; i < lControlPointsCount; i++)
{
DisplayInt(" Control Point ", i);
Display3DVector(" Coordinates: ", lControlPoints[i]);
DisplayDouble(" Weight: ", lControlPoints[i][3]);
}
const char* lPatchTypes[] = { "Bezier", "Bezier Quadric", "Cardinal", "B-Spline", "Linear" };
DisplayString(
" Patch U Type: ", lPatchTypes[lPatch->
GetPatchUType()]);
DisplayInt(
" U Count: ", lPatch->
GetUCount());
DisplayString(
" Patch V Type: ", lPatchTypes[lPatch->
GetPatchVType()]);
DisplayInt(
" V Count: ", lPatch->
GetVCount());
DisplayInt(
" U Step: ", lPatch->
GetUStep());
DisplayInt(
" V Step: ", lPatch->
GetVStep());
DisplayString("");
DisplayTexture(lPatch);
DisplayMaterial(lPatch);
DisplayLink(lPatch);
DisplayShape(lPatch);
}