Skip to content

Commit

Permalink
Adds more fancy colors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikskuh committed Jul 30, 2020
1 parent fa17cee commit ae93e4f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 4 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,10 @@ pub fn build(b: *std.build.Builder) !void {
});

make_unsigned_apk.step.dependOn(&aarch64_exe.step);
// make_unsigned_apk.step.dependOn(&arm_exe.step);
// // make_unsigned_apk.step.dependOn(&x86_exe.step);
// make_unsigned_apk.step.dependOn(&x86_64_exe.step);
make_unsigned_apk.step.dependOn(&arm_exe.step);
make_unsigned_apk.step.dependOn(&x86_64_exe.step);

// make_unsigned_apk.step.dependOn(&x86_exe.step);

const unpack_apk = b.addSystemCommand(&[_][]const u8{
"unzip",
Expand Down
9 changes: 8 additions & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,14 @@ pub const AndroidApp = struct {
self.egl_init = false;
}

c.glClearColor(0.0, 0.0, 0.0, 1.0);
const t = @intToFloat(f32, loop) / 100.0;

c.glClearColor(
0.5 + 0.5 * std.math.sin(t + 0.0),
0.5 + 0.5 * std.math.sin(t + 1.0),
0.5 + 0.5 * std.math.sin(t + 2.0),
1.0,
);
c.glClear(c.GL_COLOR_BUFFER_BIT);

c.glUseProgram(program);
Expand Down

0 comments on commit ae93e4f

Please sign in to comment.