GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
GameApi::MatrixApi Class Reference

#include <GameApi.hh>

Public Member Functions

IMPORT MatrixApi (Env &e)
IMPORT M identity ()
IMPORT M transpose (M m)
IMPORT M xrot (float rot)
IMPORT M yrot (float rot)
IMPORT M zrot (float rot)
IMPORT M trans (float x, float y, float z)
IMPORT M trans (V vec)
IMPORT M scale (float sx, float sy, float sz)
IMPORT M projection (float z_min)
IMPORT M perspective_projection (float dist)
IMPORT M perspective (float fovy, float aspect, float near, float far)
IMPORT M ortho (float left, float right, float bottom, float top, float near, float far)
IMPORT M inverse (M m1)
IMPORT M mult (M m1, M m2)
IMPORT M rotate_around_axis (V v, float angle)
IMPORT M rotate_around_axis (PT point, V v, float angle)
IMPORT M keep_rotation (M m)
IMPORT PT mult (PT point, M matrix)

Constructor & Destructor Documentation

◆ MatrixApi()

EXPORT GameApi::MatrixApi::MatrixApi ( Env & e)
Here is the caller graph for this function:

Member Function Documentation

◆ identity()

EXPORT GameApi::M GameApi::MatrixApi::identity ( )

◆ inverse()

EXPORT GameApi::M GameApi::MatrixApi::inverse ( M m1)

◆ keep_rotation()

EXPORT GameApi::M GameApi::MatrixApi::keep_rotation ( M m)

◆ mult() [1/2]

EXPORT GameApi::M GameApi::MatrixApi::mult ( M m1,
M m2 )

◆ mult() [2/2]

EXPORT GameApi::PT GameApi::MatrixApi::mult ( PT point,
M matrix )

◆ ortho()

EXPORT GameApi::M GameApi::MatrixApi::ortho ( float left,
float right,
float bottom,
float top,
float near,
float far )

◆ perspective()

EXPORT GameApi::M GameApi::MatrixApi::perspective ( float fovy,
float aspect,
float near,
float far )

◆ perspective_projection()

IMPORT M GameApi::MatrixApi::perspective_projection ( float dist)

◆ projection()

IMPORT M GameApi::MatrixApi::projection ( float z_min)

◆ rotate_around_axis() [1/2]

IMPORT M GameApi::MatrixApi::rotate_around_axis ( PT point,
V v,
float angle )

◆ rotate_around_axis() [2/2]

IMPORT M GameApi::MatrixApi::rotate_around_axis ( V v,
float angle )

◆ scale()

EXPORT GameApi::M GameApi::MatrixApi::scale ( float sx,
float sy,
float sz )

◆ trans() [1/2]

EXPORT GameApi::M GameApi::MatrixApi::trans ( float x,
float y,
float z )
Here is the caller graph for this function:

◆ trans() [2/2]

IMPORT M GameApi::MatrixApi::trans ( V vec)

◆ transpose()

EXPORT GameApi::M GameApi::MatrixApi::transpose ( M m)

◆ xrot()

EXPORT GameApi::M GameApi::MatrixApi::xrot ( float rot)

◆ yrot()

EXPORT GameApi::M GameApi::MatrixApi::yrot ( float rot)

◆ zrot()

EXPORT GameApi::M GameApi::MatrixApi::zrot ( float rot)

The documentation for this class was generated from the following files: