Пример #1
0
int main()
{
    int Error = 0;

    Error += test_vec3_ctor();
    Error += test_vec3_operators();
    Error += test_vec3_size();
    Error += test_vec3_swizzle3_2();
    Error += test_vec3_swizzle3_3();
    Error += test_vec3_swizzle_partial();
    Error += test_vec3_swizzle_operators();
    Error += test_vec3_swizzle_functions();
    Error += test_operator_increment();

    return Error;
}
int main()
{
	int Error = 0;

	glm::vec3 v;
	assert(v.length() == 3);

	Error += test_vec3_ctor();
	Error += test_vec3_operators();
	Error += test_vec3_size();
	Error += test_vec3_swizzle3_2();
	Error += test_vec3_swizzle3_3();
	Error += test_vec3_swizzle_partial();
	Error += test_vec3_swizzle_operators();
	Error += test_vec3_swizzle_functions();
	Error += test_operator_increment();

	return Error;
}
Пример #3
0
int main()
{
	int Error = 0;

	Error += test_vec1_ctor();
	Error += test_vec2_ctor();
	Error += test_vec3_ctor();
	Error += test_vec4_ctor();
	Error += test_mat2x2_ctor();
	Error += test_mat2x3_ctor();
	Error += test_mat2x4_ctor();
	Error += test_mat3x2_ctor();
	Error += test_mat3x3_ctor();
	Error += test_mat3x4_ctor();
	Error += test_mat4x2_ctor();
	Error += test_mat4x3_ctor();
	Error += test_mat4x4_ctor();
	Error += test_quat_ctor();

	return Error;
}