Skip to content

Commit 2c71055

Browse files
committed
fixed example
1 parent 9c2be63 commit 2c71055

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/example_proj_mat_builder.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ int main()
1515
float fov = 0;
1616
float near = 0;
1717
float far = 0;
18-
float viewPortWidth = 0;
19-
float viewPortHeight = 0;
18+
float view_port_width = 0;
19+
float view_port_height = 0;
2020

2121
std::print("Enter camera fov: ");
2222
std::cin >> fov;
@@ -28,13 +28,13 @@ int main()
2828
std::cin >> far;
2929

3030
std::print("Enter camera screen width: ");
31-
std::cin >> viewPortWidth;
31+
std::cin >> view_port_width;
3232

3333
std::print("Enter camera screen height: ");
34-
std::cin >> viewPortHeight;
34+
std::cin >> view_port_height;
3535

3636
const auto mat =
37-
omath::opengl_engine::CalcPerspectiveProjectionMatrix(fov, viewPortWidth / viewPortHeight, near, far);
37+
omath::opengl_engine::calc_perspective_projection_matrix(fov, view_port_width / view_port_height, near, far);
3838

39-
std::print("{}", mat.ToString());
39+
std::print("{}", mat.to_string());
4040
};

0 commit comments

Comments
 (0)