www.pudn.com > 3DmaxSLoader.rar > TriList.cpp


// TriList.cpp: implementation of the CTriList class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#include "stdafx.h" 
#include "3DSLoader.h" 
#include "TriList.h" 
 
#ifdef _DEBUG 
#undef THIS_FILE 
static char THIS_FILE[]=__FILE__; 
#define new DEBUG_NEW 
#endif 
 
////////////////////////////////////////////////////////////////////// 
// Construction/Destruction 
////////////////////////////////////////////////////////////////////// 
 
CTriList::CTriList() 
{ 
	free = 0; 
	numobjects = 0; 
	maxobjects = 100; 
} 
 
CTriList::~CTriList() 
{ 
	for (int i=0; i drawGL(); 
	}	 
} 
 
 
 
void CTriList::Init() 
{ 
	free = 0; 
	numobjects = 0; 
	maxobjects = 100; 
} 
 
void CTriList::doAfterMath() 
{ 
	for (int i=0; i applyNormals(); 
 
	} 
} 
 
void CTriList::removeAllObjects() 
{ 
	for (int i=0; i getName(objname); 
		if(strcmp(name, objname) == 0) return objects[i]; 
	} 
	 
	return NULL; 
}