34 lines
589 B
C
34 lines
589 B
C
#ifndef TYPE_H
|
|
#define TYPE_H
|
|
|
|
#include <QOpenGLFunctions>
|
|
|
|
typedef enum Biome {
|
|
Sea = 0b00001,
|
|
GrassLand = 0b00010,
|
|
Montain = 0b00100,
|
|
Desert = 0b01000,
|
|
Canyon = 0b10000,
|
|
} Biome;
|
|
|
|
typedef struct TypedVertex {
|
|
Biome biome;
|
|
GLfloat x;
|
|
GLfloat y;
|
|
GLfloat z;
|
|
GLfloat normalX;
|
|
GLfloat normalY;
|
|
GLfloat normalZ;
|
|
GLfloat height;
|
|
GLfloat temperature;
|
|
} TypedVertex;
|
|
|
|
typedef enum RenderPassType {
|
|
REFLECTION = 0x00,
|
|
REFRACTION = 0x01,
|
|
SHADOW = 0x02,
|
|
FINAL = 0x10,
|
|
} RenderPassType;
|
|
|
|
#endif // TYPE_H
|