diff options
author | chai <chaifix@163.com> | 2019-12-08 00:23:50 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-12-08 00:23:50 +0800 |
commit | 3df29dc54c509c983dc8a0e23eab4160d48144f2 (patch) | |
tree | d8c5287c9979e731e373e7a1481aadd79d3f071b /src/example/example_dot.c | |
parent | 8e684dc0c76708e3174f005aebcaabc144b85500 (diff) |
+clipping
Diffstat (limited to 'src/example/example_dot.c')
-rw-r--r-- | src/example/example_dot.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/example/example_dot.c b/src/example/example_dot.c deleted file mode 100644 index 0a88084..0000000 --- a/src/example/example_dot.c +++ /dev/null @@ -1,36 +0,0 @@ -#include "example.h" -#include "../core/rasterizer.h" - -Vec3 pos = { 0, 0, 2 }, target = { 0,0,-1 }, up = { 0, 1, 0 }; - -float dot[] = { 0, 0, -2 }; - -void onloaddot(void* data) { - -} - -void oneventdot(void* data) { - SDL_Event* e = (SDL_Event*)data; -} - -void onupdatedot(void*data) { - uint dt = *(uint*)data; - ssr_matrixmode(MATRIX_VIEW); - ssr_lookat(&pos, &target, &up); - ssr_matrixmode(MATRIX_PROJECTION); -} - -float j = 0; - -void ondrawdot(void*data) { - ssr_clearcolor(0xffffffff); - - //for (int i = -50; i < 200; ++i) { - // ssr_putpoint(i * sin(j += 0.1f), 300 * cos(j), ssr_color(0xff, 0, 0xff, 0)); - //} - - ssrR_putline(-100, 0, 100, 200, 0xffff0000); - -// printf("%u\n", (UINT_MAX * (double)0.5F)); - -} |