Переход на версию 0.3: изменение подхода к именованию сущностей, добавление, изменение и удаление ряда функций
This commit is contained in:
parent
d33daf4e2d
commit
f7e41645fe
87 changed files with 4580 additions and 4051 deletions
|
|
@ -7,7 +7,7 @@
|
|||
// ==================== FP32 ==================== //
|
||||
|
||||
static const int _TEST_FP32_VECTOR3_AMOUNT = 4;
|
||||
static const BgcVector3FP32 _TEST_FP32_VECTOR3_LIST[] = {
|
||||
static const BGC_FP32_Vector3 _TEST_FP32_VECTOR3_LIST[] = {
|
||||
{ 1.0f, 2.0f, 3.0f },
|
||||
{ -3.0f, -2.0f, -1.0f },
|
||||
{ 100.0f, -100.0f, 0.001f },
|
||||
|
|
@ -16,13 +16,13 @@ static const BgcVector3FP32 _TEST_FP32_VECTOR3_LIST[] = {
|
|||
|
||||
void test_vector3_copy_fp32()
|
||||
{
|
||||
BgcVector3FP32 vector;
|
||||
BGC_FP32_Vector3 vector;
|
||||
|
||||
print_testing_name("bgc_vector3_copy_fp32");
|
||||
print_testing_name("bgc_fp32_vector3_copy");
|
||||
|
||||
for (int i = 0; i < _TEST_FP32_VECTOR3_AMOUNT; i++) {
|
||||
|
||||
bgc_vector3_copy_fp32(&_TEST_FP32_VECTOR3_LIST[i], &vector);
|
||||
bgc_fp32_vector3_copy(&_TEST_FP32_VECTOR3_LIST[i], &vector);
|
||||
|
||||
if (vector.x1 != _TEST_FP32_VECTOR3_LIST[i].x1 ||
|
||||
vector.x2 != _TEST_FP32_VECTOR3_LIST[i].x2 ||
|
||||
|
|
@ -38,7 +38,7 @@ void test_vector3_copy_fp32()
|
|||
// ==================== FP64 ==================== //
|
||||
|
||||
static const int _TEST_FP64_VECTOR3_AMOUNT = 4;
|
||||
static const BgcVector3FP64 _TEST_FP64_VECTOR3_LIST[] = {
|
||||
static const BGC_FP64_Vector3 _TEST_FP64_VECTOR3_LIST[] = {
|
||||
{ 1.0, 2.0, 3.0 },
|
||||
{ -3.0, -2.0, -1.0 },
|
||||
{ 100.0, -100.0, 0.001 },
|
||||
|
|
@ -47,13 +47,13 @@ static const BgcVector3FP64 _TEST_FP64_VECTOR3_LIST[] = {
|
|||
|
||||
void test_vector3_copy_fp64()
|
||||
{
|
||||
BgcVector3FP64 vector;
|
||||
BGC_FP64_Vector3 vector;
|
||||
|
||||
print_testing_name("bgc_vector3_copy_fp64");
|
||||
print_testing_name("bgc_fp64_vector3_copy");
|
||||
|
||||
for (int i = 0; i < _TEST_FP64_VECTOR3_AMOUNT; i++) {
|
||||
|
||||
bgc_vector3_copy_fp64(&_TEST_FP64_VECTOR3_LIST[i], &vector);
|
||||
bgc_fp64_vector3_copy(&_TEST_FP64_VECTOR3_LIST[i], &vector);
|
||||
|
||||
if (vector.x1 != _TEST_FP64_VECTOR3_LIST[i].x1 ||
|
||||
vector.x2 != _TEST_FP64_VECTOR3_LIST[i].x2 ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue