예제 #1
0
파일: ext_vec1.cpp 프로젝트: YOU-i-Labs/glm
int main()
{
	int Error = 0;

	Error += test_vec1_size();
	Error += test_vec1_ctor();
	Error += test_bvec1_ctor();
	Error += test_vec1_operators();
	Error += test_vec1_operator_increment();
	Error += test_constexpr();
	
	return Error;
}
int main()
{
	int Error = 0;

	glm::vec1 v;
	assert(v.length() == 1);

	Error += test_vec1_size();
	Error += test_vec1_ctor();
	Error += test_vec1_operators();
	Error += test_vec1_operator_increment();
	
	return Error;
}
int main()
{
    int Error = 0;

    glm::vec1 v;
    assert(v.length() == 1);

#	ifdef GLM_META_PROG_HELPERS
    assert(glm::vec1::components == glm::vec1().length());
    assert(glm::vec1::components == 1);
#	endif

    Error += test_vec1_size();
    Error += test_vec1_ctor();
    Error += test_vec1_operators();
    Error += test_vec1_operator_increment();

    return Error;
}
예제 #4
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;
}