repo.or.cz
/
Projeto-PCG.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Adicionando headers de lua
[Projeto-PCG.git]
/
geometry.h
blob
c8f94df0ef32f3cf671694bb76934be73a0a30f0
1
#ifndef GEOMETRIA_H
2
#define GEOMETRIA_H
3
#include
"SDL/SDL.h"
4
#include
"SDL/SDL_opengl.h"
5
6
struct
Ponto
{
7
double
x
,
y
;
8
};
9
10
struct
Vetor
{
11
double
x
,
y
;
12
};
13
14
class
Linha
{
15
private
:
16
Ponto vertices
[
2
];
17
public
:
18
void
desenha
();
19
Linha
(
double
x1
,
double
y1
,
double
x2
,
double
y2
);
20
Linha
(
Ponto a
,
Ponto b
) {
vertices
[
0
] =
a
;
vertices
[
1
] =
b
;}
21
};
22
23
void
drawCircle
(
double
radius
,
int
lines
);
24
25
#endif