Krig Game Engine
Functions | Variables
api_camera.cpp File Reference

Krig Game Engine Lua Scripting API - Camera. More...

Functions

Vector4 get_frustum_plane (int)
 

Variables

const luaL_reg krigCameraLib []
 

Detailed Description

Krig Game Engine Lua Scripting API - Camera.

Camera focused API functionality.

Function Documentation

◆ get_frustum_plane()

Vector4 get_frustum_plane ( int  )

Return the definition of the specified plane as a list containing: A, B, C and D, where: Ax + By + Cz + D = 0.

Parameters
intplane number (0-6), where: 0 - left, 1 - right, 2 - down, 3 - up, 4 - far, and 5 - near.
Returns
Vector4 - definition of plane.

Variable Documentation

◆ krigCameraLib

const luaL_reg krigCameraLib[]
Initial value:
= {
{"get_frustum_plane", get_frustum_plane},
{NULL, NULL}
}
Vector4 get_frustum_plane(int)