mirror of https://github.com/kurisufriend/threedee
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.
19 lines
387 B
19 lines
387 B
#pragma once
|
|
#include "vector3.h"
|
|
#include "SDL.h"
|
|
#include <iostream>
|
|
struct camera
|
|
{
|
|
vector3 position;
|
|
vector3 rotation;
|
|
camera(vector3 position_, vector3 rotation_)
|
|
{
|
|
this->position = position_;
|
|
this->rotation = rotation_;
|
|
}
|
|
void run(SDL_Renderer* renderer)
|
|
{
|
|
//ray3D ray = ray3D::trace(vector3(0, 0, -10), vector3(0, 0, 1));
|
|
//std::cout << ray.dist << std::endl;
|
|
}
|
|
}; |