A tiny software raymarcher that attempts to render "n-dimension" manofold insertions as an image appearing to be a non-euclidean 3-dimensional space. Written for the uqcs hackathon 2020. This repo is a mirror of:
https://github.com/ailrst/blackpink
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
778 B
37 lines
778 B
|
|
/** |
|
* File for common shit used across files that doesnt have something. |
|
*/ |
|
#include <stdlib.h> |
|
#include <stdio.h> |
|
#include <math.h> |
|
#include <stdbool.h> |
|
#include <SDL2/SDL_events.h> |
|
#include <SDL2/SDL_render.h> |
|
#include <SDL2/SDL_video.h> |
|
#include <stdio.h> |
|
#include <SDL2/SDL.h> |
|
#include <SDL2/SDL_scancode.h> |
|
#include <stdlib.h> |
|
|
|
#include "colours.h" |
|
#include "types.h" |
|
#include "vect.h" |
|
#include "math.h" |
|
#include "queue.h" |
|
|
|
#ifndef MIAINH |
|
#define MIAINH |
|
|
|
extern struct object white_sphere; |
|
|
|
extern SDL_Renderer *ren; |
|
|
|
void sdlb_set_colour(struct colour col); |
|
|
|
void sdlb_draw_col_pixel(struct colour col, int x, int y); |
|
|
|
extern struct object *scene_object; |
|
extern int keyboardstate[322]; // 322 is the number of SDLK_DOWN events |
|
extern struct camera *camera; |
|
#endif
|
|
|