17 lines
475 B
C
17 lines
475 B
C
|
#pragma once
|
||
|
|
||
|
#include "glm.hpp"
|
||
|
#include "ext.hpp"
|
||
|
|
||
|
namespace Core
|
||
|
{
|
||
|
glm::mat4 createPerspectiveMatrix(float zNear = 0.1f, float zFar = 100.0f);
|
||
|
|
||
|
// position - pozycja kamery
|
||
|
// forward - wektor "do przodu" kamery (jednostkowy)
|
||
|
// up - wektor "w gore" kamery (jednostkowy)
|
||
|
// up i forward musza byc ortogonalne!
|
||
|
glm::mat4 createViewMatrix(glm::vec3 position, glm::vec3 forward, glm::vec3 up);
|
||
|
|
||
|
glm::mat4 createViewMatrixQuat(glm::vec3 position, glm::quat rotation);
|
||
|
}
|