Переход на версию 0.3: изменение подхода к именованию сущностей, добавление, изменение и удаление ряда функций

This commit is contained in:
Andrey Pokidov 2026-01-30 19:37:49 +07:00
parent d33daf4e2d
commit f7e41645fe
87 changed files with 4580 additions and 4051 deletions

View file

@ -8,25 +8,25 @@
void test_vector2_set_values_fp32()
{
BgcVector2FP32 vector;
BGC_FP32_Vector2 vector;
print_testing_name("bgc_vector2_set_values_fp32");
print_testing_name("bgc_fp32_vector2_make");
bgc_vector2_set_values_fp32(1.0f, 2.0f, &vector);
bgc_fp32_vector2_make(1.0f, 2.0f, &vector);
if (vector.x1 != 1.0f || vector.x2 != 2.0f) {
print_testing_error("First step failed");
return;
}
bgc_vector2_set_values_fp32(-3.0f, -5.0f, &vector);
bgc_fp32_vector2_make(-3.0f, -5.0f, &vector);
if (vector.x1 != -3.0f || vector.x2 != -5.0f) {
print_testing_error("Second step failed");
return;
}
bgc_vector2_set_values_fp32(-2.0f, 2.0f, &vector);
bgc_fp32_vector2_make(-2.0f, 2.0f, &vector);
if (vector.x1 != -2.0f || vector.x2 != 2.0f) {
print_testing_error("Third step failed");
@ -40,26 +40,26 @@ void test_vector2_set_values_fp32()
void test_vector2_set_values_fp64()
{
BgcVector2FP64 vector;
BGC_FP64_Vector2 vector;
print_testing_name("bgc_vector2_set_values_fp64");
print_testing_name("bgc_fp64_vector2_make");
bgc_vector2_set_values_fp64(1.0, 2.0, &vector);
bgc_fp64_vector2_make(1.0, 2.0, &vector);
if (vector.x1 != 1.0 || vector.x2 != 2.0) {
print_testing_error("First step failed");
return;
}
bgc_vector2_set_values_fp64(-3.0, -5.0, &vector);
bgc_fp64_vector2_make(-3.0, -5.0, &vector);
if (vector.x1 != -3.0 || vector.x2 != -5.0) {
print_testing_error("Second step failed");
return;
}
bgc_vector2_set_values_fp64(-2.0, 2.0, &vector);
bgc_fp64_vector2_make(-2.0, 2.0, &vector);
if (vector.x1 != -2.0 || vector.x2 != 2.0) {
print_testing_error("Third step failed");