openMSX
Functions
gl_transform_Test.cc File Reference
#include "gl_transform.hh"
#include <cassert>
#include <iostream>
Include dependency graph for gl_transform_Test.cc:

Go to the source code of this file.

Functions

template<int N, typename T >
void print (const vecN< N, T > &x)
 
template<int M, int N, typename T >
void print (const matMxN< M, N, T > &A)
 
bool approxEq (float x, float y)
 
bool approxEq (const vec4 &x, const vec4 &y)
 
bool approxEq (const mat4 &x, const mat4 &y)
 
int main ()
 
void test_scale (float x, float y, float z, mat4 &A)
 
void test_scale (mat4 &A, float x, float y, float z, mat4 &B)
 
void test_translate (float x, float y, float z, mat4 &A)
 
void test_translate (mat4 &A, float x, float y, float z, mat4 &B)
 
void test_rotate (float a, float x, float y, float z, mat4 &A)
 
void test_ortho (float l, float r, float b, float t, float n, float f, mat4 &A)
 
void test_frustum (float l, float r, float b, float t, float n, float f, mat4 &A)
 

Function Documentation

◆ approxEq() [1/3]

bool approxEq ( float  x,
float  y 
)

Definition at line 27 of file gl_transform_Test.cc.

◆ approxEq() [2/3]

bool approxEq ( const vec4 x,
const vec4 y 
)

Definition at line 31 of file gl_transform_Test.cc.

◆ approxEq() [3/3]

bool approxEq ( const mat4 x,
const mat4 y 
)

Definition at line 35 of file gl_transform_Test.cc.

◆ main()

int main ( )

Definition at line 40 of file gl_transform_Test.cc.

References gl::scale().

◆ print() [1/2]

template<int N, typename T >
void print ( const vecN< N, T > &  x)

Definition at line 8 of file gl_transform_Test.cc.

◆ print() [2/2]

template<int M, int N, typename T >
void print ( const matMxN< M, N, T > &  A)

Definition at line 15 of file gl_transform_Test.cc.

◆ test_frustum()

void test_frustum ( float  l,
float  r,
float  b,
float  t,
float  n,
float  f,
mat4 A 
)

Definition at line 229 of file gl_transform_Test.cc.

References gl::frustum().

◆ test_ortho()

void test_ortho ( float  l,
float  r,
float  b,
float  t,
float  n,
float  f,
mat4 A 
)

Definition at line 224 of file gl_transform_Test.cc.

References gl::ortho().

◆ test_rotate()

void test_rotate ( float  a,
float  x,
float  y,
float  z,
mat4 A 
)

Definition at line 219 of file gl_transform_Test.cc.

◆ test_scale() [1/2]

void test_scale ( float  x,
float  y,
float  z,
mat4 A 
)

Definition at line 201 of file gl_transform_Test.cc.

◆ test_scale() [2/2]

void test_scale ( mat4 A,
float  x,
float  y,
float  z,
mat4 B 
)

Definition at line 205 of file gl_transform_Test.cc.

◆ test_translate() [1/2]

void test_translate ( float  x,
float  y,
float  z,
mat4 A 
)

Definition at line 210 of file gl_transform_Test.cc.

◆ test_translate() [2/2]

void test_translate ( mat4 A,
float  x,
float  y,
float  z,
mat4 B 
)

Definition at line 214 of file gl_transform_Test.cc.