File:  [Tom Morton FrontierVM] / frontvm / hardware / fe2.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:57:15 2018 UTC (8 years, 2 months ago) by root
Branches: frontvm, MAIN
CVS tags: frontvm2-20061120, frontvm-20040517, HEAD
Tom Morton

#ifndef _FE2_H
#define _FE2_H

/* Do not use directly - they are just locations in STRam */
extern unsigned long logscreen, logscreen2, physcreen, physcreen2;
/* Use these instead. They read the value */
#define LOGSCREEN	(STRam + STMemory_ReadLong (logscreen))
#define LOGSCREEN2	(STRam + STMemory_ReadLong (logscreen2))
#define PHYSCREEN	(STRam + STMemory_ReadLong (physcreen))
#define PHYSCREEN2	(STRam + STMemory_ReadLong (physcreen2))

struct Point {
	float x, y;
};

/* Returns new xpos */
int DrawStr (int xpos, int ypos, int col, unsigned char *str, bool shadowed);
void DrawTriangle (int Ax, int Ay, int Bx, int By, int Cx, int Cy, int col);
void DrawPoly (struct Point *pt, int len, int col);

#endif /* _FE2_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.