format
This commit is contained in:
parent
8c8d9fbf0c
commit
c094eb0514
6
window.c
6
window.c
@ -353,7 +353,7 @@ void draw(void) {
|
|||||||
// JUPITER
|
// JUPITER
|
||||||
memcpy(nmv, mvMat, sizeof nmv); /* copie mvMat dans nmv */
|
memcpy(nmv, mvMat, sizeof nmv); /* copie mvMat dans nmv */
|
||||||
draw_object(nmv, projMat, _planet[4], _a/(12 * 365.2425f), 0, 1, 30.0f, 1, 0, (1/9.7f)*12, _r/0.416f, -0.031f, 1);
|
draw_object(nmv, projMat, _planet[4], _a/(12 * 365.2425f), 0, 1, 30.0f, 1, 0, (1/9.7f)*12, _r/0.416f, -0.031f, 1);
|
||||||
|
|
||||||
memcpy(cpy, nmv, sizeof cpy);
|
memcpy(cpy, nmv, sizeof cpy);
|
||||||
|
|
||||||
// Io
|
// Io
|
||||||
@ -625,7 +625,7 @@ void key(int keycode) {
|
|||||||
for (i = 0; i < 18; ++i) {
|
for (i = 0; i < 18; ++i) {
|
||||||
enableSurfaceOption(_moon[i], SO_USE_TEXTURE);
|
enableSurfaceOption(_moon[i], SO_USE_TEXTURE);
|
||||||
if (i < 9)
|
if (i < 9)
|
||||||
enableSurfaceOption(_planet[i], SO_USE_TEXTURE);
|
enableSurfaceOption(_planet[i], SO_USE_TEXTURE);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
disableSurfaceOption(_sun, SO_USE_TEXTURE);
|
disableSurfaceOption(_sun, SO_USE_TEXTURE);
|
||||||
@ -650,7 +650,7 @@ void key(int keycode) {
|
|||||||
for (i = 0; i < 18; ++i) {
|
for (i = 0; i < 18; ++i) {
|
||||||
disableSurfaceOption(_moon[i], SO_USE_COLOR);
|
disableSurfaceOption(_moon[i], SO_USE_COLOR);
|
||||||
if (i < 9)
|
if (i < 9)
|
||||||
disableSurfaceOption(_planet[i], SO_USE_COLOR);
|
disableSurfaceOption(_planet[i], SO_USE_COLOR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user