-
Notifications
You must be signed in to change notification settings - Fork 5
/
draw.h
34 lines (28 loc) · 919 Bytes
/
draw.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef DRAW_H
#define DRAW_H
#include <GL/glew.h>
#include "include/boardgraph.h"
#include <string>
namespace Catan
{
namespace Draw
{
struct Pile
{
float x;
float y;
int type;
int n;
};
bool Initialize();
void Uninitialize();
void LoadAll();
void LoadPortVertices(float length, float margin);
void Render(Generate::BoardGraph& graph, float length, float radius, float margin, bool random, std::string filename);
void DrawTile(float cx, float cy, float length, float margin, int type, bool random);
void DrawChit(float cx, float cy, float radius, float margin, int num, bool random);
void DrawPort(float cx, float cy, float length, float margin, int type, int dir);
void SaveToFile(GLuint textureID, int width, int height, std::string filename);
}
}
#endif