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/cube.h

22 lines
434 B

#pragma once
#include "square.h"
/*
cubes are the basic 3D entity
*/
struct cube : public square
{
float z;
cube() : square()
{
this->z = 0;
}
cube(float x_, float y_, float z_, int radius_) : square(x_, y_, radius_)
{
this->z = z_;
}
void run(SDL_Surface* surface)
{
//SDL_Rect rect{ this->x, this->y, this->radius, this->radius };
//SDL_FillRect(surface, &rect, SDL_MapRGB(surface->format, 0xFF, 0xFF, 0xFF));
}
};