This repository has been archived on 2024-08-01. You can view files and clone it, but cannot push or open issues or pull requests.
CreepTea-Vita/precalcs.h

34 lines
677 B
C
Raw Normal View History

2020-10-24 07:02:45 +03:00
#define pi 3.14151693
#define rang 128
#define rang2 256
#define d2r 180.0/pi
#define Twidth 128
#define Theight 128
#define shl_theight 7
#define blob_width 128
#define blob_height 128
#define nstars 256
typedef struct ColorRGB
{
unsigned char r;
unsigned char g;
unsigned char b;
} ColorRGB;
void MakeColors(unsigned short cols[], ColorRGB c0, ColorRGB c1, int n0, int n1);
void MakeSines(int sines[], int n, float freq, float hght1, float hght2);
void SetColors();
void precalcs();
void DrawText_(int xtp, int ytp, int cn, char *text, int bpp, unsigned short *vram);
void InitRadialBitmap1();
void InitRadialBitmap2();