Sha256: 4f01d1168e8af09cd151060ec1f44150696c83d465ee7336abe3b7a5be177806

Contents?: true

Size: 533 Bytes

Versions: 21

Compression:

Stored size: 533 Bytes

Contents

#include <glm/glm.hpp>

int test_float_size()
{
	return
		sizeof(glm::float_t) != sizeof(glm::lowp_float) &&
		sizeof(glm::float_t) != sizeof(glm::mediump_float) && 
		sizeof(glm::float_t) != sizeof(glm::highp_float);
}

int test_float_precision()
{
	return (
		sizeof(glm::lowp_float) <= sizeof(glm::mediump_float) && 
		sizeof(glm::mediump_float) <= sizeof(glm::highp_float)) ? 0 : 1;
}

int test_vec2()
{
	return 0;
}

int main()
{
	int Error = 0;

	Error += test_float_size();
	Error += test_float_precision();

	return Error;
}

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pixo-0.1.0 ext/pixo/ext/glm/test/core/core_type_float.cpp