summaryrefslogtreecommitdiff
path: root/src/example/example_dot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/example/example_dot.c')
-rw-r--r--src/example/example_dot.c36
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));
-
-}