ajout frustum

This commit is contained in:
StratiX0
2024-04-03 10:19:37 +02:00
parent fd0ae3aa25
commit bbb31b1161
10 changed files with 313 additions and 128 deletions

View File

@@ -1,4 +1,5 @@
#include "Modellistclass.h"
#include "modellistclass.h"
ModelListClass::ModelListClass()
{
@@ -19,17 +20,15 @@ ModelListClass::~ModelListClass()
void ModelListClass::Initialize(int numModels)
{
int i;
// Store the number of models.
m_modelCount = numModels;
// Store the number of models.
m_modelCount = numModels;
// Create a list array of the model information.
m_ModelInfoList = new ModelInfoType[m_modelCount];
// Seed the random generator with the current time.
srand((unsigned int)time(NULL));
// Seed the random generator with the current time.
srand((unsigned int)time(NULL));
// Go through all the models and randomly generate the position.
for (i = 0; i < m_modelCount; i++)
@@ -66,4 +65,4 @@ void ModelListClass::GetData(int index, float& positionX, float& positionY, floa
positionY = m_ModelInfoList[index].positionY;
positionZ = m_ModelInfoList[index].positionZ;
return;
}
}