xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
函数
graphics.cc 文件参考
#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>
graphics.cc 的引用(Include)关系图:

浏览源代码.

函数

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)
 

函数说明

◆ lookAt()

xcmath::mat4f lookAt ( const xcmath::vec3f position,
const xcmath::vec3f target,
const xcmath::vec3f up 
)

◆ projection()

xcmath::mat4f projection ( float  fov,
float  aspect,
float  near_,
float  far_ 
)

在文件 graphics.cc13 行定义.

被这些函数引用 TEST().

◆ TEST() [1/2]

TEST ( GraphicsTest  ,
LookAt   
)

在文件 graphics.cc75 行定义.

引用了 lookAt().

◆ TEST() [2/2]

TEST ( GraphicsTest  ,
Projection   
)

在文件 graphics.cc57 行定义.

引用了 projection() , 以及 xcmath::radians().