da mario test
This commit is contained in:
parent
11e9fae640
commit
f8a7fc9a3c
4
c3d.c
4
c3d.c
|
@ -459,9 +459,9 @@ int main() {
|
||||||
Tri2D norm = (Tri2D){(Vector2){500, 50}, (Vector2){0, 0}, (Vector2){250, 500}, 0, 0, 0, GREEN};
|
Tri2D norm = (Tri2D){(Vector2){500, 50}, (Vector2){0, 0}, (Vector2){250, 500}, 0, 0, 0, GREEN};
|
||||||
|
|
||||||
bool run3d = true;
|
bool run3d = true;
|
||||||
Object3D t = ReadObjectFromFile("teapot.obj");
|
Object3D t = ReadObjectFromFile("mario.obj");
|
||||||
for (int i = 0; i < t.triangles->length; i++){
|
for (int i = 0; i < t.triangles->length; i++){
|
||||||
printf("t: %f\n", t.triangles->arr[i].a.x);
|
//printf("t: %f\n", t.triangles->arr[i].a.x);
|
||||||
TriArrayAppend(&tarr, t.triangles->arr[i]);
|
TriArrayAppend(&tarr, t.triangles->arr[i]);
|
||||||
}
|
}
|
||||||
while (!WindowShouldClose() && run3d) {
|
while (!WindowShouldClose() && run3d) {
|
||||||
|
|
Loading…
Reference in a new issue