You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
threedee/stuff/objects/entityList3D.h

19 lines
281 B

#pragma once
#include <vector>
#include "SDL.h"
#include "cube.h"
/*
entityList3D is the 3D entity container class
*/
class entityList3D : public std::vector<cube*>
{
public:
void run(SDL_Renderer* renderer)
{
for (cube* entity : *this)
{
entity->run(renderer);
}
}
};