1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-26 03:17:39 +00:00

texture mode -- first commit

This commit is contained in:
Zeno Rogue
2017-12-09 02:20:10 +01:00
parent 87b6b8b372
commit ecf631976f
8 changed files with 357 additions and 34 deletions

13
hyper.h
View File

@@ -1902,6 +1902,13 @@ void drawqueue();
typedef float GLfloat;
#endif
struct textureinfo {
transmatrix M;
int texture_id;
vector<GLfloat> vertices;
vector<GLfloat> tvertices;
};
struct qpoly {
transmatrix V;
GLfloat *tab;
@@ -1910,6 +1917,7 @@ struct qpoly {
int outline;
double minwidth;
int flags;
textureinfo *tinf;
};
struct qline {
@@ -1930,7 +1938,7 @@ struct qcir {
int x, y, size;
};
enum eKind { pkPoly, pkLine, pkString, pkCircle, pkShape, pkResetModel };
enum eKind { pkPoly, pkLine, pkString, pkCircle, pkShape, pkResetModel, pkSpecial };
struct polytodraw {
eKind kind;
@@ -2300,3 +2308,6 @@ int inpair(cell *c, int colorpair);
int snake_pair(cell *c);
extern const unsigned int nestcolors[8];
extern bool texture_on;
void showTextureMenu();