Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1c60180

Browse files
committed
Update 013-multi-cube.rs
1 parent d663c2a commit 1c60180

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎examples/013-multi-cube.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@ fn main() {
293293
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
294294

295295
for (i, position) in CUBE_POSITIONS.iter().copied().enumerate() {
296-
let model = Mat4::from_translation(position) * Mat4::from_euler_angles(time * (1.0 + i as f32), 2.0, 3.0);
296+
let model = Mat4::from_translation(position)
297+
* Mat4::from_euler_angles(time * (1.0 + i as f32), 2.0, 3.0);
297298

298299
glUniformMatrix4fv(model_loc, 1, GL_FALSE, model.as_ptr());
299300

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /