xcal
基于 C++23 的现代图形渲染引擎
|
#include <gtest/gtest.h>
#include <cstddef>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <iostream>
#include <xcmath/xcmath.hpp>
#include <xcmath/utils/show.hpp>
函数 | |
xcmath::mat4f | projection (float fov, float aspect, float near_, float far_) |
xcmath::mat4f | lookAt (const xcmath::vec3f &position, const xcmath::vec3f &target, const xcmath::vec3f &up) |
TEST (GraphicsTest, Projection) | |
TEST (GraphicsTest, LookAt) | |
xcmath::mat4f lookAt | ( | const xcmath::vec3f & | position, |
const xcmath::vec3f & | target, | ||
const xcmath::vec3f & | up | ||
) |
xcmath::mat4f projection | ( | float | fov, |
float | aspect, | ||
float | near_, | ||
float | far_ | ||
) |
在文件 graphics.cc 第 13 行定义.
被这些函数引用 TEST().
TEST | ( | GraphicsTest | , |
LookAt | |||
) |
在文件 graphics.cc 第 75 行定义.
引用了 lookAt().
TEST | ( | GraphicsTest | , |
Projection | |||
) |
在文件 graphics.cc 第 57 行定义.
引用了 projection() , 以及 xcmath::radians().